hi
1. should not (ever) install amber with sudo.
2. May be trying to export LD_LIBRARY_PATH?
export LD_LIBRARY_PATH=/path/to/your/gfortran/lib:$LD_LIBRARY_PATH
it's good idea to post gcc/gfortran versions here.
If above won't help, try a google solution here:
https://www.google.com/webhp?sourceid=chrome-instant&rlz=1C5CHFA_enUS734US734&ion=1&espv=2&ie=UTF-8#q=cannot+find+lgfortran&*
good luck.
Hai
On Fri, Mar 17, 2017 at 11:42 AM, Kanin Wichapong <kanin.wichapong.gmail.com
> wrote:
> Dear Amber users,
>
> I try to install Amber16 on my computer, ubuntu 16.04 with GeForce GTX480.
> For the first step only normal installation;
>
> *./configure gnu*
>
> Testing mixed C/Fortran compilation:
>
> gcc -fPIC -DSYSV -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -c -o testp.c.o
> testp.c
>
> gfortran -fPIC -O0 -c -o testp.f.o testp.f
>
> gcc -fPIC -DSYSV -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp
> testp.c.o testp.f.o -lgfortran -w
>
> OK
>
> everything is going fine and I got the config.h file without any error
> messages. However, during installation I get this error messages;
>
> *source amber.sh*
>
> *sudo make install*
>
> /usr/bin/ld: cannot find -lgfortran
>
> collect2: ld returned 1 exit status
>
> Makefile_at:47: recipe for target 'cpptraj' failed
>
> make[4]: *** [cpptraj] Error 1
>
> make[4]: Leaving directory
> '/home/kanin/Softwares/AMBER16/amber16/AmberTools/src/cpptraj/src'
>
> Makefile_at:20: recipe for target 'serial' failed
>
> make[3]: *** [serial] Error 2
>
> make[3]: Leaving directory
> '/home/kanin/Softwares/AMBER16/amber16/AmberTools/src/cpptraj'
>
> Makefile:465: recipe for target 'cpptraj' failed
>
> make[2]: *** [cpptraj] Error 2
>
> make[2]: Leaving directory
> '/home/kanin/Softwares/AMBER16/amber16/AmberTools/src'
>
> Makefile:17: recipe for target 'serial' failed
>
> make[1]: *** [serial] Error 2
>
> make[1]: Leaving directory
> '/home/kanin/Softwares/AMBER16/amber16/AmberTools/src'
>
> Makefile:7: recipe for target 'install' failed
>
> make: *** [install] Error 2
>
> Any suggestions to solve this problems. Thank you in advance for any
> suggestions.
>
>
> Best Regards,
>
> Kanin Wichapong
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri Mar 17 2017 - 09:30:02 PDT