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..
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
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
step 7. Now go for the make
step 8. Finally,
# make install
Try out the samples in the nsmiracle directory.
/usr/bin/ld: cannot find -lMiracle collect2: ld returned 1 exit status
install libtool package
$sudo apt-get install libtool