为什么-bash:/ usr / bin / g ++:无法执行二进制文件?

时间:2010-12-14 04:14:28

标签: macos unix gcc g++ alias

simpatico$ /Developer/usr/bin/g++-4.2 -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5664~89/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 5664)

simpatico$ /usr/bin/g++ -v
-bash: /usr/bin/g++: cannot execute binary file

我不知道一个命令证明/ usr / bin / g ++是/ Developer / usr / bin / g ++ - 4.2的别名。

1 个答案:

答案 0 :(得分:0)

simpatico $ sudo gcc_select gcc42