Opened 13 years ago
Closed 13 years ago
#33640 closed defect (invalid)
py27-readline fails on snow leopard with xcode 4.2
Reported by: | miguelbarao (MB) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | ||
Port: | py27-readline |
Description
After a fresh install of Macports on OSX 10.6.8 + XCode 4.2 (the payed version on AppStore), py27-readline complaints that /usr/bin/gcc-4.2 does not exist. And its correct. There is although a /usr/bin/gcc that links to /usr/bin/llvm-gcc-4.2.
I created a symbolic link from /usr/bin/gcc-4.2 to gcc, and it seems to do the trick. It should be corrected in macports instead.
Change History (2)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
You should definitely remove the symlink you created. llvm-gcc-4.2 is not gcc-4.2.
I imagine the problem is that some of the ports you installed were pulled from our pre-built binaries, which are built with Xcode 3, and that some of those ports hardcoded the path to the compiler that they used into themselves, which is now being used on your system when trying to build other ports like py27-readline for which no pre-built binaries are available.
This problem is touched on in wiki:ProblemHotlist#xcode43 though it clearly also applies to Xcode 4.2 users on Snow Leopard.
Rebuilding python27 on your system (ignoring our pre-built binaries) should help: