Estas instrucciones dicen "instalar xcode", pero luego diga "una vez que tengas xcode instalado". Perdón, ¿no se han saltado un paso? ¿Cómo instala xcode?
2.1.1. Instale Xcode en OS X 10.9 o posterior
Descargue la última versión de Xcode del sitio web del desarrollador de Apple u obténgalo utilizando la Mac App Store.
Una vez que haya instalado Xcode, abra un terminal, ejecute xcode-select --instalar, ...
Por supuesto, no estoy ejecutando 10.9. Aquí están las instrucciones de mi versión:
2.1.4. Instale Xcode en versiones anteriores de Mac OS X
Si tiene una versión anterior de Mac OS X, puede descargar el la última versión de Xcode para OS X 10.5 (Xcode 3.0 y Xcode 3.1 Herramientas de desarrollador) o 10.4 (Xcode 2.4.1 y Xcode 2.5 Herramientas de desarrollador) desde el sitio web del desarrollador de Apple.
Asegúrese de que las siguientes opciones que están disponibles en el Se seleccionó el instalador para su versión de Xcode:
UNIX Development System Tools X11 SDK Command Line Support
Descargué installxcode_421_lion.dmg
para este sistema:
System Software Overview:
System Version: Mac OS X 10.7.5 (11G63)
Kernel Version: Darwin 11.4.2
Boot Volume: Untitled
Boot Mode: Normal
Computer Name: a MacBook
User Name: thufir (thufir)
Secure Virtual Memory: Enabled
64-bit Kernel and Extensions: No
Time since boot: 7 minutes
¿Hago doble clic en la descarga e instalo en Aplicaciones? Lo siento, este es un proceso extraño.
Después de pensar que había instalado xcode, me presentan:
Brents-MacBook:~ thufir$
Brents-MacBook:~ thufir$ sudo port install mysql5 +server
Error:
Error: No Xcode installation was found.
Error: Please install Xcode and/or run xcode-select to specify its location.
Error:
Warning: xcodebuild exists but failed to execute
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
Warning: You downloaded Xcode from the Mac App Store but didn't install it. Run "Install Xcode" in the /Applications folder.
---> Computing dependencies for mysql5Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
---> Dependencies to be installed: openssl zlib readline ncurses tcp_wrappers
---> Fetching archive for zlib
---> Attempting to fetch zlib-1.2.8_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/zlib
---> Attempting to fetch zlib-1.2.8_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/zlib
---> Installing zlib @1.2.8_0
---> Activating zlib @1.2.8_0
---> Cleaning zlib
---> Fetching archive for openssl
---> Attempting to fetch openssl-1.0.2_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/openssl
---> Attempting to fetch openssl-1.0.2_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/openssl
---> Installing openssl @1.0.2_0
---> Activating openssl @1.0.2_0
---> Cleaning openssl
---> Fetching archive for ncurses
---> Attempting to fetch ncurses-5.9_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/ncurses
---> Attempting to fetch ncurses-5.9_2.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/ncurses
---> Installing ncurses @5.9_2
---> Activating ncurses @5.9_2
---> Cleaning ncurses
---> Fetching archive for readline
---> Attempting to fetch readline-6.3.003_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/readline
---> Attempting to fetch readline-6.3.003_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/readline
---> Installing readline @6.3.003_0
---> Activating readline @6.3.003_0
---> Cleaning readline
---> Fetching archive for tcp_wrappers
---> Attempting to fetch tcp_wrappers-20_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/tcp_wrappers
---> Attempting to fetch tcp_wrappers-20_2.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/tcp_wrappers
---> Installing tcp_wrappers @20_2
---> Activating tcp_wrappers @20_2
---> Cleaning tcp_wrappers
---> Fetching archive for mysql5
---> Attempting to fetch mysql5-5.1.72_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/mysql5
---> Attempting to fetch mysql5-5.1.72_0.darwin_11.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/mysql5
---> Attempting to fetch mysql5-5.1.72_0.darwin_11.x86_64.tbz2 from http://lil.fr.packages.macports.org/mysql5
---> Fetching distfiles for mysql5
---> Attempting to fetch mysql-5.1.72.tar.gz from http://distfiles.macports.org/mysql51
---> Verifying checksums for mysql5
---> Extracting mysql5
---> Applying patches to mysql5
---> Configuring mysql5
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Error: Failed to configure mysql5, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72/config.log
Error: org.macports.configure for port mysql5 returned: configure failure: command execution failed
Please see the log file for port mysql5 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port mysql5 failed
Brents-MacBook:~ thufir$
Brents-MacBook:~ thufir$
Brents-MacBook:~ thufir$ cd /Applications/
Brents-MacBook:Applications thufir$
Brents-MacBook:Applications thufir$ pwd
/Applications
Brents-MacBook:Applications thufir$
Brents-MacBook:Applications thufir$ Install xcode
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
Brents-MacBook:Applications thufir$
Brents-MacBook:Applications thufir$ Install Xcode
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
Brents-MacBook:Applications thufir$
Brents-MacBook:Applications thufir$ ls
AV for InDesign CS6.app Font Book.app Mission Control.app Thunderbird.app
Address Book.app GPG Keychain.app MySQLWorkbench.app Time Machine.app
AdwareMedic.dmg GPG_Suite-2015.02-b5-1161.dmg Nimbuzz.app ToneSync-1.0.3.dmg
App Store.app Google Chrome.app OneDrive.app Utilities
Automator.app Image Capture.app Photo Booth.app VLC.app
BitTorrent.app Install Xcode.app Preview.app XChat Azure.app
Calculator.app Jitsi.app QuickTime Player.app YateClient.app
Chess.app Kodi.app RarGenie.app iCal.app
ChordsMaestroLite.app Launchpad.app Resume Builder.app iChat.app
DVD Player.app Learn Photoshop CS 5 Edition Free.app Safari.app iTunes.app
Dashboard.app MPlayerX copy.dmg SketchBookExpress.app refind-flashdrive-0.8.5.zip
Dictionary.app MPlayerX.dmg Skype.app vlc-2.1.2.dmg
FaceTime.app MacFonts.dmg Stickies.app
Firefox 36.0.1.dmg Mail.app System Preferences.app
Firefox.app Microsoft Office 2011 TextEdit.app
Brents-MacBook:Applications thufir$ ./Install\ Xcode.app/
-bash: ./Install Xcode.app/: is a directory
Brents-MacBook:Applications thufir$
Entonces, necesito ejecutar Install Xcode
, que, aparentemente, no es un script o un ejecutable ... Lo haré con el mouse. Para la posteridad, pensé que al menos le mencionaría a alguien más que hay algo más que hacer para instalar XCode.