Dear users,
i have some troubles during installtion V_sim with abinit-6.12.3.
The procedure i used as following
firstly, i compile abinit with --with-trio-flavor=none --enable-bindings prefix=DIR, the installtion works well.
then, i compile V_sim with --with-openbabel --with-xsf --with-abinit=DIr --with-netcdf-include=DIR --with-netcdf-libdir=DIR --with-libxc=DIR --with-etsf-io-include=DIR --with-etsf-io-libdir=DIR, DIR represent the dictory of these code respectively.
at last, i get the following warning:
configure: WARNING: ABINIT support has been disabled since ETSF_IO is not available.
i think the netcdf, libxc and estf-io have been installed appropriately.
i also attach my config.log file.
Any suggestions will be appreciate~
Zhang
How to compile V_sim with abinit plugin-in? [SOLVED]
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.
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.
-
- Posts: 46
- Joined: Thu Sep 15, 2011 7:13 am
How to compile V_sim with abinit plugin-in?
- Attachments
-
- config.log
- config.log
- (108.34 KiB) Downloaded 259 times
Phd student
Phys Department
Shanghai JiaoTong university, Shanghai, China
Phys Department
Shanghai JiaoTong university, Shanghai, China
- Alain_Jacques
- Posts: 279
- Joined: Sat Aug 15, 2009 9:34 pm
- Location: Université catholique de Louvain - Belgium
Re: How to compile V_sim with abinit plugin-in? [SOLVED]
Hi Zhang,
Reading your confg.log file ...
etsf-io detection failed ... at least because linking with netcdf is wrong: netcdff is only the fortran interface, correct linking needs the reference to the main library i.e. -lnetcdf, and the -L path is missing. So you have to tell configure to link netcdf with -lnetcdf (because abinit fallback netcdf has a combined library, no need to call the netcdff interface) and probably append the path to LD_LIBRARY_PATH environment variable.
Kind regards,
Alain'
Reading your confg.log file ...
configure:26653: gfortran -o conftest -g -O2 -I/home/xiaole/ABINIT/abinit-7.0.5/fallbacks/sources/etsf_io-1.0.4/include/gcc -L/home/xiaole/ABINIT/abinit-7.0.5/fallbacks/sources/etsf_io-1.0.4/lib conftest.f90 -letsf_io -lnetcdff >&5
/usr/bin/ld: cannot find -lnetcdff
collect2: error: ld returned 1 exit status
configure:26653: $? = 1
configure: failed program was:
|
| program main
| use etsf_io
etsf-io detection failed ... at least because linking with netcdf is wrong: netcdff is only the fortran interface, correct linking needs the reference to the main library i.e. -lnetcdf, and the -L path is missing. So you have to tell configure to link netcdf with -lnetcdf (because abinit fallback netcdf has a combined library, no need to call the netcdff interface) and probably append the path to LD_LIBRARY_PATH environment variable.
Kind regards,
Alain'
-
- Posts: 46
- Joined: Thu Sep 15, 2011 7:13 am
Re: How to compile V_sim with abinit plugin-in?
Dear Alain,
Thank you , i will have a try
Thank you , i will have a try
Phd student
Phys Department
Shanghai JiaoTong university, Shanghai, China
Phys Department
Shanghai JiaoTong university, Shanghai, China