Hello,
-lgfortran searches for "libgfortran.a". Look for that file. Also, what
does
gfortran --version
and
gcc --version
return? Are they the same version? What OS are you running on? I'm
assuming the nab tests did not pass?
All the best,
Jason
On Thu, Jul 15, 2010 at 11:30 AM, Xinfu Xia <xinfu.x.xia.gsk.com> wrote:
> Experts,
>
> I am having the same problem and need a fix.
>
> I have successfully passed configure phase. I failed in the make phase in
> nss dir. So I drill into nss dir to repeat the failed step.
>
>
> =============================================================================================
> stvsxhn02c01b01> echo $LD_LIBRARY_PATH
> :/usr/lib
> stvsxhn02c01b01> ls -l /usr/lib/libgfortran*
> lrwxrwxrwx 1 root root 20 Jul 15 14:49 /usr/lib/libgfortran.so ->
> libgfortran.so.1.0.0
> lrwxrwxrwx 1 root root 20 Mar 13 17:18 /usr/lib/libgfortran.so.0 ->
> libgfortran.so.0.0.0
> -rwxr-xr-x 1 root root 359660 Dec 10 2009 /usr/lib/libgfortran.so.0.0.0
> lrwxrwxrwx 1 root root 20 Mar 13 17:18 /usr/lib/libgfortran.so.1 ->
> libgfortran.so.1.0.0
> -rwxr-xr-x 1 root root 478692 Dec 10 2009 /usr/lib/libgfortran.so.1.0.0
> lrwxrwxrwx 1 root root 27 Jul 15 14:49 /usr/lib/libgfortranpreview.so
> -> libgfortranpreview.so.0.0.0
> lrwxrwxrwx 1 root root 27 Mar 13 17:18
> /usr/lib/libgfortranpreview.so.0 -> libgfortranpreview.so.0.0.0
> -rwxr-xr-x 1 root root 306748 Dec 10 2009
> /usr/lib/libgfortranpreview.so.0.0.0
> stvsxhn02c01b01> /dev/shm/amber11/bin/nab -o matextract matextract.o
> /usr/bin/ld: cannot find -lgfortran
> collect2: ld returned 1 exit status
> cc failed!
> stvsxhn02c01b01> /dev/shm/amber11/bin/nab -help
> gcc: unrecognized option `-help'
> /usr/bin/ld: cannot find -lgfortran
> collect2: ld returned 1 exit status
> cc failed!
> stvsxhn02c01b01>
>
> =======================================================================================
>
> It seems to me, the complied nab program invokes cc which invokes
> /usr/bin/ld without passing proper $LD_LIBRARY_PATH to it.
>
> Thanks
>
> Xinfu Xia
> GlaxoSmithKline
> 5 Moore Drive
> Durham, NC 27709
> (919) 483-9305
>
>
>
>
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
--
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Thu Jul 15 2010 - 09:00:04 PDT