Opened 12 years ago

Closed 12 years ago

#35753 closed defect (invalid)

can't install macports from source...

Reported by: eatshit@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.1.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Why can't I install macports from source!? Okay, I open a terminal window inside the folder that I unzipped the source into. Then, I typed, './configure.' This is the output that I get:

checking build system type... i386-apple-darwin12.0.0
checking host system type... i386-apple-darwin12.0.0
checking target system type... i386-apple-darwin12.0.0
checking MacPorts version... 2.1.2
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.8
checking Xcode location... /Applications/Xcode.app/Contents/Developer
checking Xcode version... 4.4.1
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/Users/XXXXXXXXXXXXX/Downloads/MacPorts-2.1.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

I tried to research the error message online & all I get is that XCode wasn't installed. I know that can't be the case for me because, as you can see, I do have XCode installed. In fact, I have the latest version of XCode(4.4.1) installed along with the latest version of OS X(Mountain Lion). So, it has to be something else. Can anybody please tell me what exactly the problem is!? I am at my wits end trying to install MacPorts. I first tried the .pkg installer but I kept getting errors when trying to use MacPorts after installing it via the .pkg that I downloaded. Now, I try to install it via source and I still get a bunch of BS errors! I must say, MacPorts is one bug-ridden piece of software! It's a shame because it would make OS X just that much more awesome if one could easily install UNIX progs on it with ease just like you can with most Linux versions out there. If anybody has a solution for my problem, please email me at retselseer(@)yahoo(.)co(.)uk . Thanks.

Change History (1)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Component: portsbase
Description: modified (diff)
Keywords: install source macports removed
Milestone: MacPorts Future
Resolution: invalid
Status: newclosed

I apologize that you had trouble, but in this case it's not MacPorts' fault. Apple changed how they distribute Xcode, and they no longer install the command line tools that compiling MacPorts or other software requires in /usr/bin. To get these parts, you need to install the Xcode command line tools from within the Xcode application's Preference window's Downloads section. This is documented on the install page of our website, in our guide, and in our wiki.

Installing MacPorts via the pre-compiled package should also have worked. If you'd like to debug why that failed, feel free to write to the macports-users mailing list.

Note: See TracTickets for help on using tickets.