先日、Mac OS X Mavericksにアップデートしました。
そして、今日Ruby2.0入ってたっけ?とrvmコマンドで確認したらrc1でした。あれれ。最新版を入れようとしました。
とりあえず、rvm get stableをして、rvm install 2.0.0としたところでエラーになった。
macportが古そうだったので、とりあえずアップデートしようとしたところ、こちらでもエラーになったとさ。
$ sudo port -v selfupdate (略) Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc OBJC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make SELFUPDATING=1 && make install SELFUPDATING=1 Exit code: 1 Error: Error installing new MacPorts base: command execution failed To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
osx - Can't update Macports (with Mac OS X Mavericks) - Stack Overflow
ググった結果、sudo xcode-select --installをしなければいけないらしい。
このコマンドを打つと、コマンドラインツールのインストールをするか聞かれるので、インストールする。
そして、再度実行してみよう。
Congratulations, you have successfully upgraded the MacPorts system. The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated
どうやら成功したようだ。
確認してみる。
$ port MacPorts 2.2.1 Entering interactive mode... ("help" for help, "quit" to quit) [Users/thorikiri] > exit Goodbye
大丈夫っぽいですね。