GNS3
http://forum.gns3.net/

Install Dynamips on Mac OS X
http://forum.gns3.net/topic8914.html
Page 1 of 1

Author:  mweisel [ Mon Mar 31, 2014 10:26 am ]
Post subject:  Install Dynamips on Mac OS X

Want to use the recently updated version of Dynamips on your Mac? Check out my blog post for the full details.

1. Get and install the Command Line Developer Tools for OS X Mavericks
The easiest method to install the dev tools is by simply attempting to use one of them. Run the following command from the terminal:
Code:
$ make

2. Get and install dependencies for the Dynamips install
Get the current version (at the date of this post) of libpcap and install it. Run the following commands from the terminal:
Code:
$ curl -L http://www.tcpdump.org/release/libpcap-1.5.3.tar.gz | tar -xC /tmp
$ cd /tmp/libpcap*
$ ./configure
$ make
$ sudo make install

Get the current version (at the date of this post) of libelf and install it. Run the following commands from the terminal:
Code:
$ curl -L http://www.mr511.de/software/libelf-0.8.13.tar.gz | tar -xC /tmp
$ cd /tmp/libelf*
$ ./configure
$ make && sudo make install

3. Get and install Dynamips
After the dependencies have been installed, we can move on to installing Dynamips. We can either install a specific version, or the current development version, from the GitHub repository. I provide examples of both.

# Specific version (Option A)
In this example, we will get and install version 0.2.12 of Dynamips. Run the following commands from the terminal:
Code:
$ curl -L https://github.com/GNS3/dynamips/archive/v0.2.12.tar.gz | tar -xC /tmp
$ cd /tmp/dynamips*
$ sudo make DYNAMIPS_ARCH=amd64 DYNAMIPS_CODE?=unstable install

Verify the installation was successful. Run the following commands from the terminal:
Code:
$ type dynamips
$ dynamips 2> /dev/null | grep version

# Current development version (Option B)
To get and install the current development version of Dynamips, run the following commands from the terminal:
Code:
$ cd /tmp
$ git clone https://github.com/GNS3/dynamips.git
$ cd /tmp/dynamips
$ sudo make DYNAMIPS_ARCH=amd64 DYNAMIPS_CODE?=unstable install

Verify the installation was successful. Run the following commands from the terminal:
Code:
$ type dynamips
$ dynamips 2> /dev/null | grep version

4. Give the Dynamips executable file the setuid attribute
If you include TAP network interfaces in your topologies, this step will give the Dynamips executable the elevated permission to attach them. Run the following command from the terminal:
Code:
$ sudo chmod u+s $(which dynamips)

5. Set the path for the Dynamips executable in GNS3 Preferences
Don't forget to modify the GNS3 settings to use the updated Dynamips executable.

Author:  grossmj [ Tue Apr 01, 2014 7:05 am ]
Post subject:  Re: Install Dynamips on Mac OS X

Once again, another great HOWTO :)

PS: can you post the compiled binary here or share it with me? This will save me time (my OSX is in bad shape) and I'll upload it to sourceforge. Thanks!

Author:  mweisel [ Tue Apr 01, 2014 11:15 pm ]
Post subject:  Re: Install Dynamips on Mac OS X

No problem. The dynamips-0.2.12-OSX.intel64.bin file is attached.

Attachments:
File comment: dynamips-0.2.12-OSX.intel64.bin (unstable version suitable for use on 64-bit Mac OS X) compiled with libpcap-1.5.3 and libelf-0.8.13
dynamips-0.2.12-OSX.intel64.bin.zip [310.36 KiB]
Downloaded 328 times

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/