GNS3 0.6.1 on Mac OS X

I’ve been running GNS3 0.5 for the past year or so.  I know 0.6.0 and 0.6.1 were released a while back but compiled versions were never offered for download.  I scoured the web looking for a guide on how to compile GNS3 for the Mac OS X, but eventually realized that I was out of luck.

Not to be defeated, I decided to try my hand at compiling the binaries and see if I could learn a thing or two.

The README itself is pretty sparse, but after fiddling around for a bit I now have 0.6.1 running on my Macbook Pro.

I will outline the procedure for those of you that may want to compile it for yourselves.

Here is the original README:

Method 1.
1. Install the Apple Devs Tools (on your Mac OS X DvD or download it on ADC account).
2. Download python 2.5.1 (or higher) for MacOS X on http://www.python.org/download/ and install it.
3. Download qt-mac-opensource-4.3.4.dmg on http://trolltech.com/developer/downloads/qt/mac and install it.
4. Download SIP http://www.riverbankcomputing.com/Downloads/sip4/sip-4.7.tar.gz, compile and install it.
5. Download PyQt hhttp://www.riverbankcomputing.com/Downloads/PyQt4/GPL/PyQt-mac-gpl-4.3.tar.gz, compile and install it.
6. Start GNS3.
Method 2.
Download the DMG package, it includes two binary versions of Dynamips: one for OSX Tiger and the other for OSX Leopard.

Obviously Method 2 is out of the question.  Method 1 is also a bit unclear for people with no compiling experience.

Let’s start from the top.

1. Install the Apple Devs Tools (on your Mac OS X DvD or download it on ADC account).

I don’t have an ADC account, so I dug out my old Leopard DVD.  Open the Optional Installs folder and you will see the Xcode Tools folder.  In that folder, run and install XcodeTools.mpkg.

2. Download python 2.5.1 (or higher) for MacOS X on http://www.python.org/download/ and install it.

This step is pretty straightforward.  Download, mount, and install from the .dmg file.  For reference, I grabbed the 2.6.2 disc image.

3. Download qt-mac-opensource-4.3.4.dmg on http://trolltech.com/developer/downloads/qt/mac and install it.

The link is no longer active, but a quick google search yielded a few download sources.  I grabbed qt-mac-opensource-4.3.4 from here.

Again, mount and install from the .dmg disk image.

4. Download SIP http://www.riverbankcomputing.com/Downloads/sip4/sip-4.7.tar.gz, compile and install it.

Unfortunately, all the riverbankcomputing.com links in the README are invalid.  This is where I grabbed sip 4.7.

After downloading the file, we come to the fun part.

Open terminal and cd into the folder you downloaded the tar file and compile via the following commands:

Macintosh:$  tar xvzf sip-4.7.tar.gz
Macintosh:$  cd sip-4.7
Macintosh:sip-4.7$  python configure.py
Macintosh:sip-4.7$  make
Macintosh:sip-4.7$  make install

Hopefully everything ran smoothly and installed without a hitch.

5. Download PyQt hhttp://www.riverbankcomputing.com/Downloads/PyQt4/GPL/PyQt-mac-gpl-4.3.tar.gz, compile and install it.

I couldn’t find 4.3, so I downloaded 4.3.1 from here.

Again, run the following commands to decompress and compile PyQt.

Macintosh:$  tar xvzf PyQt-mac-gpl-4.3.1.tar.gz
Macintosh:$  cd PyQt-mac-gpl-4.3.1
Macintosh:PyQt-mac-gpl-4.3.1$  python configure.py
Macintosh:PyQt-mac-gpl-4.3.1$  make
Macintosh:PyQt-mac-gpl-4.3.1$  make install

Pretty simple and it should look a lot like step 4.

We’re now in the home stretch.

6. Start GNS3.

Grab the tar from the GNS3 homepage.  We have one last step here, which is basically just decompressing the tar file.

Macintosh:$  tar xvzf GNS3-0.6.1-src.tar.gz

That’s it.  We’re done!  If you look in the folder you just created, you will see a GNS3 executable.  Run it and GNS3 will launch.

What’s great is it pulled all my settings from GNS3-0.5 so I did not have to mess with configuring and setting up directories, idle values, etc.

I hope this has been useful and let me know if anything is unclear.

Advertisements

About this entry