Opened 13 years ago

Closed 12 years ago

#29552 closed defect (invalid)

MacPorts and Xcode 4: make not found

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

Description

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)

Attachments (2)

main.log (3.8 KB) - added by carles.cufi@… 13 years ago.
port log when upgrading
log.txt (1.1 KB) - added by carles.cufi@… 13 years ago.
Shell commands executed and output

Download all attachments as: .zip

Change History (12)

Changed 13 years ago by carles.cufi@…

Attachment: main.log added

port log when upgrading

comment:1 Changed 13 years ago by carles.cufi@…

Cc: carles.cufi@… added

Cc Me!

comment:2 Changed 13 years ago 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)

Changed 13 years ago by carles.cufi@…

Attachment: log.txt added

Shell commands executed and output

comment:3 Changed 13 years ago by carles.cufi@…

Cc: carles.cufi@… removed

Cc Me!

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

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.

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

This is also a FAQ: FAQ

comment:6 in reply to:  5 Changed 13 years ago by carles.cufi@…

Replying to ryandesign@…:

This is also a FAQ: FAQ

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.

comment:7 in reply to:  5 Changed 13 years ago by carles.cufi@…

Replying to ryandesign@…:

This is also a FAQ: FAQ

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.

comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

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?

comment:9 in reply to:  8 Changed 13 years ago by carles.cufi@…

Replying to 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

comment:10 Changed 12 years ago by larryv (Lawrence Velázquez)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.