On Mon, Nov 21, 2011 at 3:01 PM, Jorgen Simonsen <jorgen589.gmail.com>wrote:
> ok so I changed the gcc
>
> sudo port select gcc mp-gcc44
>
> but now the libraries are not linked correctly
>
> gcc -v
>
> gcc-mp-4.4: error trying to exec
> '/opt/local/bin/i686-apple-darwin11-llvm-gcc-4.2': execvp: No such
> file or directory
>
Let me guess. You just upgraded from Mac OS X 10.6 Snow Leopard to Mac OS
X 10.7 Lion from the App store, right? If so, your MacPorts is completely
busted. All of the binaries were compiled for the Darwin 10 kernel
(they're now on Darwin 11). You'll have to re-install all of your ports.
On the MacPorts website itself they suggest just blowing away the whole
/opt/local directory and starting over (you can get a list of installed
ports via "port installed").
If you run "port outdated", it should show you a complete list of all ports
that you have installed with a little note about the change in Darwin
versions. (I just bit the bullet and upgraded a week or 2 ago so I could
see what issues people would be running into).
Your other option is to run "sudo port upgrade outdated" and watch MacPorts
try to rebuild every binary it has installed. It will take awhile, and
you'll likely run into occasional errors (that was the route I chose). I
have everything up and working now after that, though.
HTH,
Jason
>
>
> On Mon, Nov 21, 2011 at 8:40 PM, Jason Swails <jason.swails.gmail.com>
> wrote:
> > On Mon, Nov 21, 2011 at 2:32 PM, Jorgen Simonsen <jorgen589.gmail.com
> >wrote:
> >
> >> my gcc -v is
> >>
> >> Using built-in specs.
> >> Target: i686-apple-darwin11
> >> Configured with:
> >> /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure
> >> --disable-checking --enable-werror
> >> --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man
> >> --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm-
> >> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
> >> --with-slibdir=/usr/lib --build=i686-apple-darwin11
> >>
> >>
> --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local
> >> --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
> >> --target=i686-apple-darwin11
> >> --with-gxx-include-dir=/usr/include/c++/4.2.1
> >> Thread model: posix
> >> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build
> 2335.15.00)
> >>
> >
> > This is a problem. Your GCC is the 4.2.1 version that comes prebuilt
> with
> > XCode. You need to use the same gcc version as your gfortran version
> > (4.4.6), most likely from MacPorts.
> >
> > HTH,
> > Jason
> >
> > --
> > 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
> >
>
> _______________________________________________
> 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 Mon Nov 21 2011 - 12:30:04 PST