It is currently Sat Nov 25, 2017 11:29 am


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Install Dynamips on Mac OS X
PostPosted: Mon Mar 31, 2014 10:26 am 
Offline

Joined: Fri May 13, 2011 10:35 pm
Posts: 83
Location: Seattle, WA (USA)
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.



_________________
http://binarynature.blogspot.com/search/label/GNS3


Top
 Profile  
 
 Post subject: Re: Install Dynamips on Mac OS X
PostPosted: Tue Apr 01, 2014 7:05 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
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!

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: Install Dynamips on Mac OS X
PostPosted: Tue Apr 01, 2014 11:15 pm 
Offline

Joined: Fri May 13, 2011 10:35 pm
Posts: 83
Location: Seattle, WA (USA)
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 255 times

_________________
http://binarynature.blogspot.com/search/label/GNS3
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO