[MacPorts] #25217: MacPorts gives error about xcode version but it's already current
#25217: MacPorts gives error about xcode version but it's already current --------------------------------+------------------------------------------- Reporter: tom15375@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: xcode version | Port: --------------------------------+------------------------------------------- I got this error when installing a package but I already have Xcode 3.2.2 installed. How does MacPorts check xcode version and what can I do? Thanks in advance. $ sudo port install tuxmath Password: Error: The installed version of Xcode (3.0) is too old to use on the installed OS version. Version 3.2.2 or later is recommended on Mac OS X 10.6. Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> -- Ticket URL: <http://trac.macports.org/ticket/25217> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25217: MacPorts gives error about xcode version but it's already current --------------------------------+------------------------------------------- Reporter: tom15375@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.0 Keywords: xcode version | Port: --------------------------------+------------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * component: ports => base Old description:
I got this error when installing a package but I already have Xcode 3.2.2 installed. How does MacPorts check xcode version and what can I do? Thanks in advance.
$ sudo port install tuxmath Password: Error: The installed version of Xcode (3.0) is too old to use on the installed OS version. Version 3.2.2 or later is recommended on Mac OS X 10.6. Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
New description: I got this error when installing a package but I already have Xcode 3.2.2 installed. How does MacPorts check xcode version and what can I do? Thanks in advance. {{{ $ sudo port install tuxmath Password: Error: The installed version of Xcode (3.0) is too old to use on the installed OS version. Version 3.2.2 or later is recommended on Mac OS X 10.6. Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} -- Comment: Please remember to use WikiFormatting and to preview before submitting. MacPorts determines your Xcode version by running "`xcodebuild -version`" and extracting the displayed Xcode version number. Xcode 3.0 and older did not display the Xcode version number here, so in this case MacPorts falls back to comparing the displayed internal version number of DevToolsCore with a list of known version numbers that correspond to public Xcode version releases. See [browser:trunk/base/src/macports1.0/macports.tcl?rev=68697#L352 the macports::setxcodeinfo procedure]. What does "`xcodebuild -version`" say on your system? What happens if you simply install Xcode 3.2.2 again (possibly using the Dev Tools uninstall script first)? -- Ticket URL: <http://trac.macports.org/ticket/25217#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25217: MacPorts gives error about xcode version but it's already current --------------------------------+------------------------------------------- Reporter: tom15375@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.0 Keywords: xcode version | Port: --------------------------------+------------------------------------------- Comment(by tom15375@…): $ xcodebuild -version XcodeComponent versions: DevToolsCore-1648.0; DevToolsSupport-1631.0 BuildVersion: 10M2148 -- Ticket URL: <http://trac.macports.org/ticket/25217#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25217: MacPorts gives error about xcode version but it's already current --------------------------------+------------------------------------------- Reporter: tom15375@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.0 Keywords: xcode version | Port: --------------------------------+------------------------------------------- Comment(by ryandesign@…): Please remember to use WikiFormatting and to preview before submitting. You want to be enclosing your lines of literal output in !{{{ and }}}. My output is: {{{ $ xcodebuild -version Xcode 3.2.2 Component versions: DevToolsCore-1648.0; DevToolsSupport-1631.0 BuildVersion: 10M2148 }}} So, same versions of everything, except that mine shows the Xcode version and yours doesn't. Is it possible your xcodebuild binary is old somehow but the rest of Xcode 3.2.2 is present? Not sure how that would have happened. Does reinstalling Xcode 3.2.2, possibly using the uninstaller first, fix this? If not, can you show us more info about your xcodebuild binary? Here's some info about mine for comparison: {{{ $ ls -l /usr/bin/xcodebuild -rwxr-xr-x 2 root wheel 76192 Feb 24 01:37 /usr/bin/xcodebuild $ md5 /usr/bin/xcodebuild MD5(/usr/bin/xcodebuild)= 7b79168df9b703f369fbe0455147142f $ }}} -- Ticket URL: <http://trac.macports.org/ticket/25217#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25217: MacPorts gives error about xcode version but it's already current --------------------------------+------------------------------------------- Reporter: tom15375@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.0 Keywords: xcode version | Port: --------------------------------+------------------------------------------- Comment(by tom15375@…): Here is my output. Haven't tried reinstalling yet. {{{ $ ls -l /usr/bin/xcodebuild -rwxr-xr-x 2 root wheel 76192 Feb 23 23:37 /usr/bin/xcodebuild $ md5 /usr/bin/xcodebuild MD5 (/usr/bin/xcodebuild) = 7b79168df9b703f369fbe0455147142f }}} -- Ticket URL: <http://trac.macports.org/ticket/25217#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25217: MacPorts gives error about xcode version but it's already current ---------------------------------+------------------------------------------ Reporter: tom15375@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.9.0 Resolution: invalid | Keywords: xcode version Port: | ---------------------------------+------------------------------------------ Changes (by jmr@…): * status: new => closed * resolution: => invalid Comment: You probably left out UNIX Development when you installed 3.2.2. Whatever happened, you don't have a complete install of the right version of Xcode. -- Ticket URL: <http://trac.macports.org/ticket/25217#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25217: MacPorts gives error about xcode version but it's already current ---------------------------------+------------------------------------------ Reporter: tom15375@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.9.0 Resolution: invalid | Keywords: xcode version Port: | ---------------------------------+------------------------------------------ Comment(by jmr@…): Also check that if you have multiple Xcode installs, you have the right one selected with xcode-select. -- Ticket URL: <http://trac.macports.org/ticket/25217#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25217: MacPorts gives error about xcode version but it's already current ---------------------------------+------------------------------------------ Reporter: tom15375@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.9.0 Resolution: invalid | Keywords: xcode version Port: | ---------------------------------+------------------------------------------ Comment(by tom15375@…): Reinstalling xcode fixed the issue. Thanks a lot for your help. -- Ticket URL: <http://trac.macports.org/ticket/25217#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts