Installing Macports for the first time

For the first time since I have a mac I needed to install MacPorts. I needed to install some CPAN modules and therefore some common packages (e.g. ncftp) were required. This was a simple process but nevertheless some problems arose and so I thought it would be a good idea to document them here. So here goes:

  1. Install macports from the dmg (for Tiger in my case), don’t forget about the pre-conditions – X11 and XCode.
    No problem here, just click and shoot;
  2. Trying to update MacPorts returned an error
  3. moebius:~ username$ sudo port selfupdate
    Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization the local ports tree failed doing rsync

  4. Validate connectivity to macports server (apparently sometimes there are availability problems):
  5. moebius:~ username$ telnet 873
    Connected to
    Escape character is '^]'.
    @RSYNCD: 29
    Connection closed by foreign host.

  6. Connectivity is now OK, update MacPorts
  7. moebius:~ username$ sudo port selfupdate

    MacPorts base version 1.600 installed

    Downloaded MacPorts base version 1.600

    The MacPorts installation is not outdated and so was not updated
    selfupdate done!

  8. Testing MacPorts by installing lynx;
  9. moebius:~ username$ sudo port search lynx
    lynx www/lynx 2.8.6rel.5 Text-based web browser
    moebius:~ username$ sudo port install lynx
    ---> Fetching ncursesw
    ---> Attempting to fetch ncurses-5.6.tar.gz from
    ---> Verifying checksum(s) for ncursesw
    ---> Extracting ncursesw
    ---> Applying patches to ncursesw
    ---> Configuring ncursesw
    ---> Building ncursesw with target all
    ---> Staging ncursesw into destroot
    ---> Installing ncursesw 5.6_1
    ---> Activating ncursesw 5.6_1
    ---> Cleaning ncursesw
    ---> Fetching ncurses
    ---> Verifying checksum(s) for ncurses
    ---> Extracting ncurses
    ---> Applying patches to ncurses
    ---> Configuring ncurses
    ---> Building ncurses with target all
    ---> Staging ncurses into destroot
    ---> Installing ncurses 5.6_0
    ---> Activating ncurses 5.6_0
    ---> Cleaning ncurses
    ---> Fetching zlib
    ---> Attempting to fetch zlib-1.2.3.tar.bz2 from
    ---> Verifying checksum(s) for zlib
    ---> Extracting zlib
    ---> Applying patches to zlib
    ---> Configuring zlib
    ---> Building zlib with target all
    ---> Staging zlib into destroot
    ---> Installing zlib 1.2.3_1
    ---> Activating zlib 1.2.3_1
    ---> Cleaning zlib
    ---> Fetching openssl
    ---> Attempting to fetch openssl-0.9.8g.tar.gz from
    ---> Verifying checksum(s) for openssl
    ---> Extracting openssl
    ---> Applying patches to openssl
    ---> Configuring openssl
    ---> Building openssl with target all
    ---> Staging openssl into destroot
    ---> Installing openssl 0.9.8g_0
    ---> Activating openssl 0.9.8g_0
    ---> Cleaning openssl
    ---> Fetching lynx
    ---> Attempting to fetch lynx2.8.6rel.5.tar.bz2 from
    ---> Verifying checksum(s) for lynx
    ---> Extracting lynx
    ---> Applying patches to lynx
    ---> Configuring lynx
    ---> Building lynx with target all
    ---> Staging lynx into destroot
    ---> Installing lynx 2.8.6rel.5_1+ssl
    ---> Activating lynx 2.8.6rel.5_1+ssl
    ---> Cleaning lynx
    moebius:~ username$ which lynx


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s