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
    Password:
    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 rsync.macports.org 873
    Trying 17.254.17.246...
    Connected to rsync.macosforge.org.
    Escape character is '^]'.
    @RSYNCD: 29
    quit
    Connection closed by foreign host.

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

    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 http://ftp.gnu.org/gnu/ncurses
    ---> 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 http://www.zlib.net/
    ---> 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 http://www.openssl.org/source/
    ---> 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 http://lynx.isc.org/current/
    ---> 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
    /opt/local/bin/lynx

Done!

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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