Ces instructions disent "installer xcode", mais ensuite disent "une fois que vous avez installé xcode". Pardon, n'ont-ils pas sauté une étape ? Comment faites-vous installer xcode ?
2.1.1. Installer Xcode sur OS X 10.9 ou supérieur
Téléchargez la dernière version de Xcode à partir du site Web des développeurs d'Apple. ou obtenez-la sur le Mac App Store.
Une fois que vous avez installé Xcode, ouvrez un terminal, exécutez xcode-select --install, ...
D'accord, je n'utilise pas la 10.9. Voici les instructions de ma version :
2.1.4. Installer Xcode sur les anciennes versions de Mac OS X
Si vous disposez d'une version antérieure de Mac OS X, vous pouvez télécharger l'application dernière version de Xcode pour OS X 10.5 (Xcode 3.0 et Xcode 3.1) ou 10.4 (Xcode 2.4.1 et Xcode 2.5). Developer Tools) ou 10.4 (Xcode 2.4.1 et Xcode 2.5 Developer Tools) sur le site Web des développeurs Apple.
Assurez-vous que celles des options suivantes qui sont disponibles dans l'option pour votre version de Xcode sont sélectionnées :
UNIX Development System Tools X11 SDK Command Line Support
J'ai téléchargé installxcode_421_lion.dmg
pour ce système :
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
Je double-clique sur le téléchargement et l'installe sur les applications ? Désolé, c'est un processus étranger.
Après avoir pensé que j'avais installé xcode, on me présente :
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$
Donc j'ai besoin d'exécuter Install Xcode
qui, apparemment, n'est pas un script ou un exécutable...je vais cliquer dessus avec la souris. Pour la postérité, j'ai pensé que je devais au moins mentionner ceci à toute autre personne qu'il y a une chose supplémentaire à faire pour installer XCode.