I am trying to selfupdate
my Macports, but I am getting the following message:
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizi
I was behind a firewall. Tried on a different network and it worked.
I faced the same issue. The main problem was my network. Because the NETWORK Port was blocked for;
rsync://rsync.macports.org/release/tarballs/ports.tar
Try to use use another network.
Update for Mavericks: to ensure the XCode command line tools are installed, open a terminal and run xcode-select –-install
, then follow the instructions in the resulting pop-up window:
Of course, this is in addition to the other tips such as making sure to run sudo port selfupdate
.
If anybody else is having this issue and they've recently updated XCode, the root of my problem was that Command Line Tools had been omitted from the latest build.
Opening XCode and installing Command Line Tools via the XCode preference panel fixed this error being thrown by MacPorts.
for someone who's problem still exists, maybe you've forgot agree the Xcode license:
# sudo xcodebuild license
remember to look through and type 'agree' in the end.