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>