Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#33451 closed defect (invalid)

zlib: Couldn't determine your Xcode version (from '/usr/bin/xcodebuild -version').

Reported by: rajeeja@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: zlib

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

/Users/rajeevjain/cgm/itaps
==> sudo port install ddd
Warning: xcodebuild exists but failed to execute
Warning: Xcode appears to be installed but xcodebuild is unusable; some ports will likely fail to build.
Warning: You may need to run `sudo xcode-select -switch /Applications/Xcode.app`
--->  Computing dependencies for ddd
--->  Dependencies to be installed: openmotif Xft2 fontconfig freetype zlib pkgconfig glib2 libffi xz xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 libedit openssl python_select sqlite3 python27 xorg-libpthread-stubs xorg-xcb-proto libxml2 libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto jpeg libpng xbitmaps xorg-libXext xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libXp xorg-printproto xorg-libXaw groff ghostscript jbig2dec lcms2 tiff libidn libpaper netpbm jasper jbigkit psutils texinfo xpm
--->  Extracting zlib
Error: Couldn't determine your Xcode version (from '/usr/bin/xcodebuild -version').
Error: 
Error: If you have not installed Xcode, install it now; see:
Error: http://guide.macports.org/chunked/installing.xcode.html
Error: 
Error: Target org.macports.extract returned: unable to find Xcode
Error: Failed to install zlib
Log for zlib is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/main.log
Error: The following dependencies were not installed: openmotif Xft2 fontconfig freetype zlib pkgconfig glib2 libffi xz xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 libedit openssl python_select sqlite3 python27 xorg-libpthread-stubs xorg-xcb-proto libxml2 libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto jpeg libpng xbitmaps xorg-libXext xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libXp xorg-printproto xorg-libXaw groff ghostscript jbig2dec lcms2 tiff libidn libpaper netpbm jasper jbigkit psutils texinfo xpm
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Change History (5)

comment:1 Changed 13 years ago by rajeeja@…

let me know if you need more info. gdb also fails: sudo port install gdb

Error: Target org.macports.build returned: shell command failed (see log for details)

comment:2 in reply to:  1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Port: zlib added
Resolution: invalid
Status: newclosed
Summary: ddd port install fails - looking at /usr/bin for dependencies instead of Apszlib: Couldn't determine your Xcode version (from '/usr/bin/xcodebuild -version').

Please use WikiFormatting.

Please re-read the error message you pasted above. It tells you how to use xcode-select to fix the problem.

comment:3 Changed 13 years ago by rajeeja@…

Doesn't work, I run two commands 1. sudo xcode-select -switch /Applications/Xcode.app and 2. sudo port install zlib. It gives the same error/warning. Let me know how to proceed. Thanks for the help.

/Users/rajeevjain/cgm/itaps
==> sudo xcode-select -switch /Applications/Xcode.app

/Users/rajeevjain/cgm/itaps
==> sudo port install zlib
Warning: xcodebuild exists but failed to execute
Warning: Xcode appears to be installed but xcodebuild is unusable; some ports will likely fail to build.
Warning: You may need to run `sudo xcode-select -switch /Applications/Xcode.app`
--->  Extracting zlib
Error: Couldn't determine your Xcode version (from '/usr/bin/xcodebuild -version').
Error: 
Error: If you have not installed Xcode, install it now; see:
Error: http://guide.macports.org/chunked/installing.xcode.html
Error: 
Error: Target org.macports.extract returned: unable to find Xcode
Log for zlib is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

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

What happens when you run /usr/bin/xcodebuild -version ?

comment:5 Changed 13 years ago by rajeeja@…

Thanks it works now.

==> /usr/bin/xcodebuild -version
Xcode 4.3
Build version 4E109
Note: See TracTickets for help on using tickets.