Updating ports tree
I had Xcode 5.0.2 already installed so I logged in my Apple i OS developer account, and downloaded Updating Mac Ports base sources using rsync rsync: failed to connect to rsync.macports.org: Operation timed out (60) rsync error: error in socket IO (code 10) at /Source Cache/rsync/rsync42/rsync/clientserver.c(105) [receiver=2.6.9] Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs//opt/local/var/macports/sources/rsync.macports.org/release/tarballs Exit code: 10 Error: Error synchronizing Mac Ports sources: command execution failed To report a bug, follow the instructions in the guide: Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing Mac Ports sources: command execution failed` According to failed to connect to server message, I thought it may be caused because of restrictions and sanctions applied to my IP Address which by the way is currently from Iran (I figured that out because I cannot even open macports website directly without using a proxy server) ! while executing "macports::fetch_port $path 1" (procedure "macports::getportdir" line 12) invoked from within "macports::getportdir $source" (procedure "macports::getindex" line 4) invoked from within "macports::getindex $source" (procedure "_mports_load_quickindex" line 11) invoked from within "_mports_load_quickindex" (procedure "mportinit" line 577) invoked from within "mportinit ui_options global_options global_variations" Error: /opt/local/bin/port: Failed to initialize Mac Ports, Port extract failed: ports/Port Index_darwin_11_i386/Port Index.quick: gzip decompression failed tar: Error exit delayed from previous errors. The only way to redirect RSYNC requests through a proxy server is to tunnel over an L2TP VPN connection ( not PPTP ).I used the instructions in the following URL to reroute the connection and make Macports connect through a proxy server : Updating the ports tree Synchronizing local ports tree from % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 24.6M 100 24.6M 0 0 98.9M 0 --:--:-- --:--:-- --:--:-- 99.1M x ports/ x ports/gnome/ x ports/gnome/gnofract4d/ x ports/gnome/gnofract4d/Portfile x ports/gnome/gnofract4d/files/ x ports/gnome/gnofract4d/files/diff x ports/gnome/gnofract4d/files/x ports/gnome/gnofract4d/files/patch-fract4d_diff x ports/gnome/gnofract4d/files/patch-fract4d-c-image diff x ports/gnome/libchamplain/ x ports/gnome/libchamplain/Portfile x ports/gnome/gconf/ x ports/gnome/gconf/Portfile x ports/gnome/goocanvas/ x ports/gnome/goocanvas/Portfile x ports/gnome/gstreamer1-gst-libav/ . That's the only way to make Macports work behind a proxy server. Command failed: cd /opt/local/var/macports/sources/localhost/ports/.. && /usr/bin/tar -v -z -xf gz Exit code: 1 Error: Extracting failed (command execution failed) port sync failed: Synchronization of 1 source(s) failed to its original RSYNC one, everything returns to the way it was ( all errors, all messages, etc ... x ports/net/daemonlogger/Portfile x ports/net/dibbler/ x ports/net/dibbler/Portfile x ports/net/dibbler/files/ x ports/net/dibbler/files/0-enable-prefix.patch x ports/net/dibbler/files/1-correct-man-pages.patch x ports/Port Index_darwin_11_i386/ x ports/Port Index_darwin_11_i386/Port Index.quick: gzip decompression failed tar: Error exit delayed from previous errors.Hope this can help other guys who are stuck with this weird connection method.Instead of the main Mac Ports mirror (which is sponsored by Mac OSForge, which is run by Apple, which is thus bound to US law and export restrictions to Iran), you can use an alternate rsync mirror from the list at Everyone is encouraged to use the pre-compiled binary packages.If you have questions about the ports tree, it is assumed that you have read the manual pages and this FAQ, and that you are able to work with it.
I can just update the ports tree using the branch tag I am moving to.
If you are using ssh to access your Free BSD machine, you would want to get root for your regular user before proceeding, because you access the VM as user and then you need to use su.