Page 1 of 1

Make Error 2 netcdf

Posted: Mon May 16, 2011 10:51 pm
by ykipouros
Hello all,

I've been trying to install abinit on a 6core, AMD, Ubuntu 11.04 64 bit machine, but have run in to a few problems. Luckily there are some very helpful posts on this forum that have helped me quite a bit so far, but I've finally run into an error I can't really seem to get by, despite the fact it seems like it's pretty common.

I've downloaded all the plugins, and placed them in ~/.abinit/tarballs.

To configure, I used the command:

Code: Select all

export LD_LIBRARY_PATH=/opt/openmpi-1.4.3/lib
./configure --prefix=/opt/abinit-6.6.3 --enable-mpi=yes --with-mpi-prefix=/opt/openmpi-1.4.3


Which produces this log file: http://myweb.dal.ca/yn843798/config.log

Then I did:

Code: Select all

sudo su
make -j6


and get

Code: Select all

configure: finding C compiler
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/home/xxxx/Downloads/abinit-6.6.3/plugins/netcdf/netcdf-4.1.1':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[4]: *** [configure-stamp] Error 1
make[4]: Leaving directory `/home/xxxx/Downloads/abinit-6.6.3/plugins/netcdf'
make[3]: *** [package-ready] Error 2
make[3]: Leaving directory `/home/xxxx/Downloads/abinit-6.6.3/plugins/netcdf'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/xxxx/Downloads/abinit-6.6.3/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/xxxx/Downloads/abinit-6.6.3'
make: *** [all] Error 2


I'd prefer not to disable any plugins, unless they are not difficult to install later if/when I need them.

Thanks in advance for your help!

Re: Make Error 2 netcdf

Posted: Thu May 19, 2011 10:11 pm
by pouillon
The build of NetCDF does not allow for a parallel make. To circumvent this, you can use the following command instead:

Code: Select all

make multi multi_nprocs=6

Re: Make Error 2 netcdf

Posted: Fri May 20, 2011 10:11 pm
by ykipouros
Thanks, works perfectly now.