[MacPorts] #25217: MacPorts gives error about xcode version but it's already current

MacPorts noreply at macports.org
Sat Jun 12 02:56:39 PDT 2010


#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


More information about the macports-tickets mailing list