こぶ茶

メモ帳 for me / コピペ,車輪の再発明の雰囲気がむんむんとする

Lionに引越ししてport selfupdateしたら乙った

MacBookさん,Snow LeopardからLionにアップグレードしたっきりで全然触ってなかった.
暇を見つけて開発環境を整えていこう.

久々に使うので,MacPortsをバージョンアップ.

 % sudo port selfupdate
 Password:
 Warning: port definitions are more than two weeks old, consider using selfupdate
 --->  Updating the ports tree
 --->  Updating MacPorts base sources using rsync
 MacPorts base version 1.9.2 installed,
 MacPorts base version 2.0.3 downloaded.
 --->  MacPorts base is outdated, installing new version 2.0.3
 Installing new MacPorts release in /opt/local as root:wheel; permissions 0755; Tcl-Package in /Library/Tcl

 Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)

/(^o^)\
調べてみると,Xcodeのバージョンを先に上げろとのこと.
LionアップデートでのmacportsとかXcodeとか。 « cross HVN

現在のXcodeをアンインストール.

 % sudo /Developer/Library/uninstall-devtools --mode=all

で,App StoreからXcodeをインストール(実際はInstall Xcodeというインストーラ).
インストーラ立ち上げて頑張ってもらう.
一応再起動.
Xcodeの起動を確認したので,あらためてMacPortsのバージョンアップを試みる.

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


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

やったね!
言われたとおり,ソフトウェアのアップデートもしておくよ.

 %  sudo port upgrade installed