rvmでruby1.9.2のインストール mac os10.8.3
rubyの1.9.2にしたくて。rvmを利用してやろうとしたら、上手く出来なかった。
rvm install 1.9.2
ができない。
エラーがこんな
Installing required packages: libxml2, libxslt, libksba......................
Error running 'requirements_osx_port_libs_install libxml2 libxslt libksba',
please read /Users/●●●/.rvm/log/ruby-1.9.2-p320/1369980532_package_install_libxml2_libxslt_libksba.log
logを確認すると
Error:
Error: No valid Xcode installation is properly selected.
Error: Please use xcode-select to select an Xcode installation:
Error: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.6.1
Error:
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
---> Computing dependencies for zlib
---> 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: org.macports.extract for port zlib returned: unable to find Xcode
Please see the log file for port zlib for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade zlib failed
There were package installation errors, make sure to read the log.
意味プー。
xcodeが怪しいとのことで
ここを参考に
http://www.happytrap.jp/blogs/2012/03/30/8582/
xcodeのpathを変更。
すると、
できた。