Mac ports
なぜかMacPortsがうまく動かなかったのでメモ
環境:MacOS X server 10.6.5
以下エラー文
sudo port -d selfupdate Warning: No index(es) found! Have you synced your source indexes? ---> Updating the ports tree DEBUG: Synchronizing ports tree(s) Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/ DEBUG: /usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*' rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports rsync: failed to connect to rsync.macports.org: Connection refused (61) rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-40/rsync/clientserver.c(105) [receiver=2.6.9] shell command "/usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*' rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports" returned error 10 Error: Synchronization of the local ports tree failed doing rsync DEBUG: Couldn't sync the ports tree: Synchronization of 1 source(s) failed while executing "macports::selfupdate [array get global_options] base_updated" Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
then
以下のファイルを編集
/opt/local/etc/macports/sources.conf
以下のようにコメントアウトand追記
#rsync://rsync.macports.org/release/ports/ [default]
http://www.macports.org/files/ports.tar.gz [default]
以上