mp-gcc47 problem

Lawrence Velázquez larryv at macports.org
Fri Jun 28 22:42:54 PDT 2013


On Jun 28, 2013, at 4:12 PM, Peng Yu <pengyu.ut at gmail.com> wrote:

> Hi,
> 
> I run the following command. But I got an error for gcc. Does anybody
> know what is wrong? Thanks.
> 
> ~$ sudo port select --set gcc mp-gcc47
> Selecting 'mp-gcc47' for 'gcc' succeeded. 'mp-gcc47' is now active.
> ~$ ls -l $(which gcc)
> lrwxr-xr-x 1 root admin 25 Jun 28 15:09 /opt/local/bin/gcc ->
> /opt/local/bin/gcc-mp-4.7
> ~$ gcc --version
> gcc-mp-4.7: error trying to exec
> '/opt/local/bin/i686-apple-darwin11-llvm-gcc-4.2': execvp: No such
> file or directory
> ~$ g++ --version
> g++ (MacPorts gcc47 4.7.3_0) 4.7.3
> Copyright (C) 2012 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Run "hash -r" or start a new terminal session.

vq


More information about the macports-users mailing list