AMBER Archive (2008)

Subject: Re: AMBER: compilation problem

From: Vlad Cojocaru (Vlad.Cojocaru_at_eml-r.villa-bosch.de)
Date: Tue Sep 02 2008 - 05:16:13 CDT


Hi John,

You do not have g77 installed on your system. I assume you have a newer
operating system in which the default gcc is 4.3. g77 was scrapped
starting with this version of gcc. But you can use gfortran (the default
fortran compiler of gcc 4.3) to compile amber tools 1.2. it worked fine
for me...

Which OS do you have? If you have Debian or an rpm based Linux system
gfortran needs to be installed separately from gcc ...Usually the
configure script looks for gfrotran after not finding g77. In your case
it doesn't do so. Its probable that you also don't have gfortran installed.

of course you can also install an older version of gcc and use its g77
if you want to .... But as I said it worked for me with gfortran ...

Cheers
vlad

john smith wrote:
> Here is the output when I run the configure_at
>
> bash-3.00# ./configure_at solaris_cc
> Setting AMBERHOME to /disk3/software/amber10
>
> Mopac and resp will be compiled with g77
>
> Testing the C compiler:
> cc -fnostd -o testp testp.c
> cc: Warning: illegal option -fnostd
> OK
>
> Testing the g77 compiler:
> g77 -O0 -fno-second-underscore -o testp testp.f
> ./configure_at: g77: not found
> ./configure_at: ./testp: not found
> Unable to compile a Fortran program using g77 -O0 -fno-second-underscore
> We will be unable to compile mopac or resp
>
> Testing /usr/ccs/bin/lex:
> OK
>
> Configuring netcdf; (may be time-consuming)
>
> NETCDF configure succeeded.
>
> The configuration file, config.h, was successfully created.
>
> bash-3.00# make -f makefile_at
> bash: make: command not found
>
> **************************************************************************
>
> bash-3.00# ./configure_at -opteron solaris_cc
> Setting AMBERHOME to /disk3/software/amber10
>
> Mopac and resp will be compiled with g77
>
> Testing the C compiler:
> cc -xarch=amd64a -fnostd -o testp testp.c
> cc: Warning: -xarch=amd64a is deprecated, use -m64 -xarch=sse2a instead
> cc: Warning: illegal option -fnostd
> OK
>
> Testing the g77 compiler:
> g77 -O0 -fno-second-underscore -o testp testp.f
> ./configure_at: g77: not found
> ./configure_at: ./testp: not found
> Unable to compile a Fortran program using g77 -O0 -fno-second-underscore
> We will be unable to compile mopac or resp
>
> Testing /usr/ccs/bin/lex:
> OK
>
> Configuring netcdf; (may be time-consuming)
>
> NETCDF configure succeeded.
>
> The configuration file, config.h, was successfully created.
>
> bash-3.00# make -f makefile_at
> bash: make: command not found
>
> *************************************************************************
> I dont understand where the error is.
>

-- 
----------------------------------------------------------------------------
Dr. Vlad Cojocaru

EML Research gGmbH Schloss-Wolfsbrunnenweg 33 69118 Heidelberg

Tel: ++49-6221-533266 Fax: ++49-6221-533298

e-mail:Vlad.Cojocaru[at]eml-r.villa-bosch.de

http://projects.villa-bosch.de/mcm/people/cojocaru/

---------------------------------------------------------------------------- EML Research gGmbH Amtgericht Mannheim / HRB 337446 Managing Partner: Dr. h.c. Klaus Tschira Scientific and Managing Director: Prof. Dr.-Ing. Andreas Reuter http://www.eml-r.org ----------------------------------------------------------------------------

----------------------------------------------------------------------- The AMBER Mail Reflector To post, send mail to amber_at_scripps.edu To unsubscribe, send "unsubscribe amber" (in the *body* of the email) to majordomo_at_scripps.edu