gcc48 error on Mavericks
gshy2014 at gmail.com
Fri Jan 10 21:56:17 PST 2014
There is another problem regarding to the coexistence of xcode gcc and
gcc48 from macports.
When I do "port select gcc mp-gcc48" , I can compile using "g++". But when
I switch back by "port select gcc none",
I got the error:
> g++ -g -o HelloWorld HelloWorld.cpp
-bash: /opt/local/bin/g++: No such file or directory
But strangely, when I do "which g++", I get "/usr/bin/g++". Then why "g++"
still try to involve "/opt/local/bin/g++" but not "/usr/bin/g++"?
On Fri, Jan 10, 2014 at 9:32 PM, Shiyuan <gshy2014 at gmail.com> wrote:
> That solves the problem. Thanks.
> On Fri, Jan 10, 2014 at 7:47 PM, Brandon Allbery <allbery.b at gmail.com>wrote:
>> On Fri, Jan 10, 2014 at 9:53 PM, Shiyuan <gshy2014 at gmail.com> wrote:
>>> I am on OS 10.9 Mavericks. I install gcc48 from macport. However, I
>>> got the follow error when I compile HelloWorld. What might go wrong?
>> wchar.h is part of the Xcode command line tools package. If you got gcc48
>> from a prebuilt package instead of locally built, you may never have gotten
>> the Xcode 5 command line tools (which may be auto-installed the first time
>> something invokes `clang`) and may be missing system include files.
>> `xcode-select --install` should force installation of the command line
>> brandon s allbery kf8nh sine nomine
>> allbery.b at gmail.com
>> ballbery at sinenomine.net
>> unix, openafs, kerberos, infrastructure, xmonad
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-users