[SOLVED] problem in installing abinit in ubuntu

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
Amal Giri
Posts: 9
Joined: Tue Mar 01, 2011 5:00 am

[SOLVED] problem in installing abinit in ubuntu

Post by Amal Giri » Sat Apr 09, 2011 9:41 pm

Respected All,
I use ubuntu operating system in my pc. For compiling abinit-6.4.3, I have downloaded the abinit-6.4.3.tar.gz and extracted the abinit-6.4.3 file.
Then entering in the above directory I have followed the "./configure" step and there is no any problem.
In the step "make" the last is like following:

Keywords to use for test directory (automated sets of tests) :

tests_min Minimal set of tests (fast, seq, and vX with X=1..6)
tests_min4 Minimal set of tests, 4 threads at once

tests_acc Test accuracy
(=tests_min+gwdp+tutorial/tutorespfn+
bigdft/etsf_io/fox/libxc/netcdf/wannier90)
tests_acc4 Test accuracy, running 4 threads at once

tests_bench Test accuracy+cpu for benchmarks (with a report)
tests_speed Test cpu for benchmarks (quick, with a report)

The description of more detailed testing possibilities can be obtained from
'make help_dev' or 'make dev'. In particular, note the following actions :

(1) to test abinit on many different specific platforms :
tests_paral

(2) to test only the features as bigdft, gw, paw, or tddft :
tests_bigdft
tests_gw (all seq GW tests, except tutorial#gw_1 and gw_9, too long)
tests_paw
tests_tddft

==============================================================================
make[3]: Leaving directory `/home/amal/abinit-6.4.3/tests'
make[2]: Leaving directory `/home/amal/abinit-6.4.3/tests'
make[2]: Entering directory `/home/amal/abinit-6.4.3'
make[2]: Leaving directory `/home/amal/abinit-6.4.3'
make[1]: Leaving directory `/home/amal/abinit-6.4.3'


and in the final step "make install" the last part is like :

make[2]: Entering directory `/home/amal/abinit-6.4.3/src/95_drive'
make[3]: Entering directory `/home/amal/abinit-6.4.3/src/95_drive'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/amal/abinit-6.4.3/src/95_drive'
make[2]: Leaving directory `/home/amal/abinit-6.4.3/src/95_drive'
Making install in 98_main
make[2]: Entering directory `/home/amal/abinit-6.4.3/src/98_main'
make[3]: Entering directory `/home/amal/abinit-6.4.3/src/98_main'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c abinetcdf abinit aim anaddb band2eps conducti cut3d fftprof lwf mrgddb mrggkk mrgscr newsp optic ujdet macroave '/usr/local/bin'
/usr/bin/install: cannot create regular file `/usr/local/bin/abinetcdf': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/abinit': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/aim': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/anaddb': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/band2eps': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/conducti': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/cut3d': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/fftprof': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/lwf': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/mrgddb': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/mrggkk': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/mrgscr': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/newsp': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/optic': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/ujdet': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/macroave': Permission denied
make[3]: *** [install-binPROGRAMS] Error 1
make[3]: Leaving directory `/home/amal/abinit-6.4.3/src/98_main'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/amal/abinit-6.4.3/src/98_main'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/amal/abinit-6.4.3/src'
make: *** [install-recursive] Error 1


I can't understand where I am making mistake.
Are those steps I have followed wrong or anything else?
Please help me with suggestion what I should do to install it.

User avatar
Alain_Jacques
Posts: 279
Joined: Sat Aug 15, 2009 9:34 pm
Location: Université catholique de Louvain - Belgium

Re: problem in compiling abinit in ubuntu

Post by Alain_Jacques » Sat Apr 09, 2011 11:36 pm

Hi Amal,

On Linux, /usr/local is writable only by root so if you want to install Abinit there, you have to install it as root. On recent ubuntu, do a

Code: Select all

sudo make install
Enter your password and you shouldn't have permission errors anymore.

Kind regards,

Alain

Amal Giri
Posts: 9
Joined: Tue Mar 01, 2011 5:00 am

Re: problem in compiling abinit in ubuntu

Post by Amal Giri » Sun Apr 10, 2011 8:11 am

Respected Mr.Alain,

Thank you for your kind help.
Now it works.

With
Best Heartfelt Regards
Amal

Locked