Re: [AMBER] AmberTools 1.4 from Amber11 on MACOSX

From: Jason Swails <jason.swails.gmail.com>
Date: Sun, 15 May 2011 00:02:57 +0200

Hello,

This is probably because you have /usr/bin in your PATH before
/opt/local/bin. If this is the case, then /usr/bin/gcc is always going to
be gcc-4.2. Check that the lines

# MacPorts Installer addition on 2010-03-09_at_17:43:11: adding an
appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.

Are in your ~/.bash_profile file, and your PATH is not defined anywhere
after that point.

HTH,
Jason

On Sat, May 14, 2011 at 10:34 PM, Bruno Rodrigues <bbrodrigues.gmail.com>wrote:

> Hi, it sounds strange, but this is the result from gcc -v and gfortran -v
>
> gcc -v
> Using built-in specs.
> Target: i686-apple-darwin10
> Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking
> --enable-werror --prefix=/usr --mandir=/share/man
> --enable-languages=c,objc,c++,obj-c++
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib
> --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10-
> --host=x86_64-apple-darwin10 --target=i686-apple-darwin10
> --with-gxx-include-dir=/include/c++/4.2.1
> Thread model: posix
> gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
>
>
> gfortran -v
> Using built-in specs.
> COLLECT_GCC=gfortran
> Target: x86_64-apple-darwin10.3.0
> Configured with: ../gcc-4_5-branch/configure --prefix=/usr/local/gfortran
> --enable-languages=c,c++,fortran
> --with-gmp=/Users/fx/devel/gcc/ibin45/../irun45 --enable-bootstrap
> --with-included-gettext --with-arch=nocona --with-tune=generic
> Thread model: posix
> gcc version 4.5.1 20100506 (prerelease) (GCC)
>
>
> And the strange thing is that I've installed g44 via sudo port install g44
> and selected it from gcc_select (it was installed under the name mp-gcc44 I
> don't know why).
>
> This is what comes when I type gcc_select -l
> gcc_select -l
> Available versions:
> gcc40 gcc42 llvm-gcc42 mp-gcc44
>
>
> However, no matter which one I choose, it does not change the output from
> gcc -v....
>
>
> On Sat, May 14, 2011 at 4:56 PM, Jason Swails <jason.swails.gmail.com
> >wrote:
>
> >
> >
> > On May 14, 2011, at 8:48 PM, Bruno Rodrigues <bbrodrigues.gmail.com>
> > wrote:
> >
> > > Hi People,
> > >
> > > I'm trying to install AmberTools 1.4 on Snow Leopard 10.6.6 MAC with
> gnu.
> > I
> > > am able to correctly configure it, but when type sudo make install, it
> > gets
> > > a strange error, that has not been reported before for MAC:
> > >
> > > gfortran -c -O0 -ffree-form -o qm2_pm6_hof_module.o
> > _qm2_pm6_hof_module.f
> > > _qm2_pm6_hof_module.f:97.41:
> > >
> > > double precision function hofCorrection()
> > > 1
> > > Error: In generic interface 'pm6_correction' at (1) procedures must be
> > > either all SUBROUTINEs or all FUNCTIONs
> > > make[1]: *** [qm2_pm6_hof_module.o] Error 1
> > > make: *** [serial] Error 2
> >
> > What compiler version are you using?
> >
> > >
> > >
> > > It seems that it's not able to handle both subroutines and functions,
> and
> > it
> > > should, or not?
> > >
> > > Thank you in advance
> > >
> > > --
> > > --
> > > Bruno Barbosa Rodrigues
> > > PhD Student - Physics Department
> > > Universidade Federal de Minas Gerais - UFMG
> > > Belo Horizonte - Brazil
> > > _______________________________________________
> > > 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
> >
>
>
>
> --
> --
> Bruno Barbosa Rodrigues
> PhD Student - Physics Department
> Universidade Federal de Minas Gerais - UFMG
> Belo Horizonte - Brazil
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>



-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Candidate
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Sat May 14 2011 - 15:30:02 PDT
Custom Search