mp-gcc47 problem

Peng Yu pengyu.ut at gmail.com
Fri Jun 28 13:12:35 PDT 2013


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.

-- 
Regards,
Peng


More information about the macports-users mailing list