nsmiracle 1.2.2 installation steps

What is ns miracle?

NS-MIRACLE is a set of libraries designed to enhance the functionalities provided by the Network Simulator ns2. It provides an efficient and embedded engine for handling cross-layer messages and, at the same time, enables the coexistance of multiple modules within each layer of the protocol stack. For instance, multiple IP, link layers, MACs or physical layers can be specified and used within the same node. The NS-MIRACLE framework facilitates the implementation and the simulation of modern communication systems in ns2; moreover, due to its modularity, the code will be portable, re-usable and extensible.

definition source: http://telecom.dei.unipd.it/pages/read/58/


The version of ns I am using is 2.33 and the version of gcc is 4.4.3.  The following steps worked fine in Ubuntu 10.04

now to the main picture..

Installation steps:

step 1. Download nsmiracle-1.2.2 from <here>

step 2. Extract that tar file and place the extracted folder (say, nsmiracle-1.2.2) inside ns-allinone-2.33 folder.

step 3. In terminal cd to the nsmiracle directory in root user mode,

# sudo su

# cd /home/your_username/ns-allinone-2.33/nsmiracle-1.2.2

where your_username is your username

step 4. Now execute autogen.sh contained in that directory

# /.autogen.sh

Executing that would generate configure and few other files in that directory.

step 5. Next, execute configure wit few parameters mentioned below

# ./configure   – -with-ns-allinone=/home/your_username/ns-allinone-2.33      – -prefix=/home/your_username/ns-allinone-2.33   – -disable-static     – -with-dei80211mr=/home/your_username/ns-allinone-2.33/dei80211mr-1.1.4

step 6. Before going for a make edit nsmiracle-1.2.2/mphy/interference_miv.h to include the following header file

#include <string>

step 7. Now go for the make

# make

step 8. Finally,

# make install

Thats all!!

Try out the samples in the nsmiracle directory.

Additional Links:

1. nsmiracle homepage

2.  Subversion of NS-MIRACLE+NS-MIRACLE 2.0 Beta

3. ns miracle 1.2.2 download mirror

4. References



/usr/bin/ld: cannot find -lMiracle collect2: ld returned 1 exit status


install libtool package

$sudo apt-get install libtool

Was this post helpful? Then thank me by clicking <this link>

5 comments on “nsmiracle 1.2.2 installation steps

  1. Pingback: Installing Network Simulator in Ubuntu10.10 « Openbook

  2. I have installed nsmiralce ..but i am doing project on routing based on BER value from physical layer through cross layer design. I want to know that is it possible through nsmiracle? If yes how could i send BER value to routing protocol so that it will consider BER during route construction. I am using routing protocla as AODV.

    Thanking in advance !!!


  3. Hi,
    We are facing problem for adding multiple interface support for olsr using Ramons model. We are getting errors. Can this ns-miracle help us for this??. I downloaded some ns-mircale script, but not tcl has muti radio. Can you help in this??
    Thanx in advance……….

  4. hi,
    i installed nsmiracle successfully
    but i need a good documentation on it, i read NSMIRACLE-HOW-TO
    but i need more description about tcl script
    can any one recommended to me a good documentation about nsmiracle?

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s