[MacPorts] #29552: MacPorts and Xcode 4: make not found
#29552: MacPorts and Xcode 4: make not found -----------------------------------+---------------------------------------- Reporter: carles.cufi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: -----------------------------------+---------------------------------------- When doing a normal "sudo port upgrade outdated", the action fails due to "make" not being found, even though it's on the global path (/etc/paths) -- Ticket URL: <https://trac.macports.org/ticket/29552> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29552: MacPorts and Xcode 4: make not found -----------------------------------+---------------------------------------- Reporter: carles.cufi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: -----------------------------------+---------------------------------------- Comment(by carles.cufi@…): Please note that I am using: Mac OS X 10.6.7 Xcode 4.0.2 in /Developer (and I explicitely removed /Developer-old) -- Ticket URL: <https://trac.macports.org/ticket/29552#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29552: MacPorts and Xcode 4: make not found -----------------------------------+---------------------------------------- Reporter: carles.cufi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: -----------------------------------+---------------------------------------- Comment(by ryandesign@…): I don't believe MacPorts uses /etc/paths. make must be in /usr/bin, which is where the Xcode installer should put it if you enable the UNIX development option, which our installation instructions in the MacPorts guide tell you to do. I have not tested Xcode 4 so I don't know if things are different now. -- Ticket URL: <https://trac.macports.org/ticket/29552#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29552: MacPorts and Xcode 4: make not found -----------------------------------+---------------------------------------- Reporter: carles.cufi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: -----------------------------------+---------------------------------------- Comment(by ryandesign@…): This is also a FAQ: [wiki:FAQ#missingxcode] -- Ticket URL: <https://trac.macports.org/ticket/29552#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29552: MacPorts and Xcode 4: make not found -----------------------------------+---------------------------------------- Reporter: carles.cufi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: -----------------------------------+---------------------------------------- Comment(by carles.cufi@…): Replying to [comment:5 ryandesign@…]:
This is also a FAQ: [wiki:FAQ#missingxcode]
Ok, just finished reinstalling Xcode 4 from scratch, and everything is fine now. Interesting points though: 1) Xcode 4 was installed using the App Store, but no make or others in /usr/bin 2) Xcode 4 was working fine to compile apps from its GUI 3) The Xcode 4 installer has absolutely 0 options 4) Reinstalling Xcode 4 fixed the dev tools, placed make in /usr/bin, and ports now runs fine Sounds to me like Apple's Xcode installer is a bit flimsy. I believe I cannot close this bug, but it should be. Apologies for the noise. -- Ticket URL: <https://trac.macports.org/ticket/29552#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29552: MacPorts and Xcode 4: make not found -----------------------------------+---------------------------------------- Reporter: carles.cufi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: -----------------------------------+---------------------------------------- Comment(by carles.cufi@…): Replying to [comment:5 ryandesign@…]:
This is also a FAQ: [wiki:FAQ#missingxcode]
Please note that I had indeed read the FAQ before posting the bug, but since Xcode 4 was indeed installed, I thought this was an issue with ports. It turned out to be an issue with the Xcode 4 installer instead. -- Ticket URL: <https://trac.macports.org/ticket/29552#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29552: MacPorts and Xcode 4: make not found -----------------------------------+---------------------------------------- Reporter: carles.cufi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Thanks for the info. I haven't played with Xcode 4 yet, but we've had a few other reports of this problem with Xcode 4. Telling people to reinstall Xcode seemed to resolve it; I assumed they had deselected a vital option, but if there were no options available, and it resulted in this problem, then we may need to change our documentation at least. Could you be more specific about the steps you followed to arrive at the problem in the first place, and the steps you followed to then solve it? I have not used the App Store before either. How does one reinstall something received from the App Store? -- Ticket URL: <https://trac.macports.org/ticket/29552#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29552: MacPorts and Xcode 4: make not found -----------------------------------+---------------------------------------- Reporter: carles.cufi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: -----------------------------------+---------------------------------------- Comment(by carles.cufi@…): Replying to [comment:8 ryandesign@…]:
Thanks for the info. I haven't played with Xcode 4 yet, but we've had a few other reports of this problem with Xcode 4. Telling people to reinstall Xcode seemed to resolve it; I assumed they >had deselected a vital option, but if there were no options available, and it resulted in this problem, then we may need to change our documentation at least. Could you be more specific about >the steps you followed to arrive at the problem in the first place, and the steps you followed to then solve it? I have not used the App Store before either. How does one reinstall something >received from the App Store?
Let's see, it's a bit complicated because of the way the App Store works. I did the following: 1) I had Xcode 3 installed 2) I bought Xcode 4 (version 4.0.0) from the App Store and launched the installer that was present in /Applications/Install Xcode.app 3) A bit later, because a bug in the App Store, Xcode didn't show as installed, and so I had to redownload the 4.0.2 installer and run it again (from the "My purchases" tab in the App Store) 3) I rm -rf /Developer-old (Xcode 3) Then I had the problem: no make, no gcc on the command line, so I edited /etc/paths and I got make back, but gcc didn't run (couldn't find libs), ports couldn't find make 4) I reverted the change to /etc/paths and downloaded _again_ the 4.0.2 installer, and ran /Applications/Install Xcode.app: This gives you no options at all, just "Next" 5) Got my make and gcc back as normal without hacking /etc/paths, ports now works fine -- Ticket URL: <https://trac.macports.org/ticket/29552#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29552: MacPorts and Xcode 4: make not found ----------------------------+-------------------------------- Reporter: carles.cufi@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.9.2 Resolution: invalid | Keywords: Port: | ----------------------------+-------------------------------- Changes (by larryv@…): * status: new => closed * resolution: => invalid -- Ticket URL: <https://trac.macports.org/ticket/29552#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts