port selfupdateでエラーin Maverics

先日、うちのMacをMavericsにしたのだが、その後、sudo ports selfupdatesしたら、エラーが出たのでメモ。

$ sudo port selfupdate
Password:
—> Updating MacPorts base sources using rsync
MacPorts base version 2.2.0 installed,
MacPorts base version 2.2.1 downloaded.
—> Updating the ports tree
Error: Synchronization of the local ports tree failed doing rsync
Error: Couldn’t sync the ports tree: Synchronization of 1 source(s) failed
Please run `port -v selfupdate’ for details.
Error: /opt/local/bin/port: port selfupdate failed: Couldn’t sync the ports tree: Synchronization of 1 source(s) failed

へ?俺何か忘れてる?

はい、忘れてました。ぐぐったところ、以下のとおり。

> sudo xcode-select —install

ということで、コマンドラインデベロッパーツールを入れなおさないとダメみたいです。それ以前に、xcode新しいのにしました。

$ sudo port selfupdate
Password:
—> Updating MacPorts base sources using rsync
MacPorts base version 2.2.0 installed,
MacPorts base version 2.2.1 downloaded.
—> Updating the ports tree
—> MacPorts base is outdated, installing new version 2.2.1
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

Not all sources could be fully synced using the old version of MacPorts.
Please run selfupdate again now that MacPorts base has been updated.

あ、できた。

なんやら、もっかいやれとのことなので、

$ sudo port selfupdate
—> Updating MacPorts base sources using rsync
MacPorts base version 2.2.1 installed,
MacPorts base version 2.2.1 downloaded.
—> Updating the ports tree
—> MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated

できました。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

This site uses Akismet to reduce spam. Learn how your comment data is processed.