Problem patching OLSR in ns2.35 in Ubuntu12.04(32 bit)

794 views
Skip to first unread message

ieeman siddiqui

unread,
Feb 10, 2014, 3:56:21 PM2/10/14
to ns-u...@googlegroups.com
I am using ubuntu 12.04 (32 bit) and ns2.35. I have added olsr patch without any error.After the patching, I have done, in ns-2.35/  :
$ export CC=gcc-4.4 CXX=g++-4.4 && ./configure && make clean && make
but when i try to run olsr.tcl file it gives error - "invalid command name 'Agent/OLSR'".
Please do help me.

sanjeev prasad

unread,
Feb 10, 2014, 10:34:44 PM2/10/14
to ns-u...@googlegroups.com
Re install ns2.35.


--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/groups/opt_out.



--
Sanjeev K. Prasad

Assistant Professor 
Dept. MCA
AKGEC, GZB
Mob.:-9711117484


knudfl

unread,
Feb 11, 2014, 8:54:15 AM2/11/14
to ns-u...@googlegroups.com
Hi.

OLSR info http://www.linuxquestions.org/questions/tags/olsr/
OLSR, ns-2.35 http://www.linuxquestions.org/questions/linux-newbie-8/does-olsr-protocol-can-run-successfully-on-ubuntu-12-04-a-4175490225/

Proof method : Start from scratch (tar xvf ns-allinone-2.35.tar.gz) ,,,
or do a 'make distclean' in ns-allinone-2.35/ns-2.35/ .
When the um-olsr/ olsr/ is in place, and the patching has been done,
change to the topdirectory "ns-allinone-2.35/" and use :
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
$ cd ns-2.35/
$ cp ns ns-umolsr
.... Then you can do $ ns-umolsr ddebbie90-scenario.tcl  
.... from umolsr-examples0613.tar.gz   https://drive.google.com/file/d/0B7S255p3kFXNSzhFYm11eThZV28/edit?usp=sharing

Be aware that $ 'ns olsr.tcl' 
.. will fail if you are using a wrong executable by name 'ns'. Hence the renaming to 'ns-umolsr' !

-

ieeman siddiqui

unread,
Feb 11, 2014, 11:08:52 AM2/11/14
to ns-u...@googlegroups.com

Thanks...it worked.

sanjeev prasad

unread,
Feb 11, 2014, 11:06:44 PM2/11/14
to ns-u...@googlegroups.com
its OK.


On Tue, Feb 11, 2014 at 8:08 AM, ieeman siddiqui <ieema...@gmail.com> wrote:

Thanks...it worked.

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/groups/opt_out.

Nisrine Ibadah

unread,
Feb 27, 2015, 8:29:16 PM2/27/15
to ns-u...@googlegroups.com
Hi SIr,

I try to add olsr in ns2.35 using ubuntu 12.04 but when it's patched successfully but when I do "export CC=gcc-4.4 CXX=g++-4.4 && ./install" it gives me:

============================================================
* Build tcl8.5.10
============================================================
configure: WARNING: unrecognized options: --enable-gcc
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc-4.4
checking whether the C compiler works... no
configure: error: in `/home/ibadah/ns-allinone-2.35/tcl8.5.10/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details
tcl8.5.10 configuration failed! Exiting ...
Tcl is not part of the ns project.  Please see www.Scriptics.com
to see if they have a fix for your platform.

so there is a problem, can you help me plz.

Nisrine Ibadah

unread,
Feb 27, 2015, 9:37:30 PM2/27/15
to ns-u...@googlegroups.com
 Hi,

I try with "export CC=gcc-4.4 CXX=g++-4.4 && ./configure && make clean && make" it shows:
checking for gcc... gcc-4.4
checking whether the C compiler works... no
configure: error: in `/home/ibadah/ns-allinone-2.35/ns-2.35':

configure: error: C compiler cannot create executables
See `config.log' for more details

Any solution plz?!!

knudfl

unread,
Feb 28, 2015, 5:49:55 AM2/28/15
to ns-u...@googlegroups.com
@Nisrine Ibadah ,   Hi.

You'd probably forgotten to install  g++-4.4 :    ( Then also no  gcc-4.4 )

$ sudo apt-get install g++ g++-4.4 automake make patch libtool libxmu-dev xgraph


-

knudfl

unread,
Feb 28, 2015, 12:15:28 PM2/28/15
to ns-u...@googlegroups.com
@Nisrine Ibadah ,   Hi again.

You can also use the updated  ns-allinone-2.35_gcc482.tar.gz, → 'Nov 2014'.
https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing
Will work with all gcc versions  4.4.x .... 4.9.x .
Then you can just do plain  $ ./install
....  Or `./configure && make clean && make´  .... if it works :
* The safe command is  $ ./install ,,, in the top directory ns-allinone-2.35/.
(  './configure'  is not supposed to (always) work in ns-allinone-2.35/ns-2.35/.)

-

knudfl

unread,
Feb 28, 2015, 2:58:45 PM2/28/15
to ns-u...@googlegroups.com
Generally about OLSR :
We now have a complete patch, for easier  { ns-2.35 + olsr } :
`umolsr-ns235_v1.0-2014.patch´
http://network-simulator-ns-2.7690.n7.nabble.com/about-olsr-protocol-td29457.html#a29459
... which uses the "Dec 2014 updated ns-2.35,  ``
ns-allinone-2.35_gcc491.tar.gz´´

-

Nisrine Ibadah

unread,
Mar 2, 2015, 7:10:24 PM3/2/15
to ns-u...@googlegroups.com
Hi Mr knudfl,

Thanks you for your replies, i try with ns2.35 but i often have several errors. I install ns2.34 and i patch successfully my olsr.
thanks you very much Sir.

Rahmouni Imed

unread,
May 21, 2016, 7:09:05 PM5/21/16
to Network Simulator 2 (NS2)
i have problem with patch
 patch -p1 < olsr/um-olsr_ns-2.34_v1.0.patch
patching file Makefile.in////////////////////////////////////////////////
Hunk #1 succeeded at 278 (offset 2 lines). ////////////////////
patching file common/packet.h
patching file queue/priqueue.cc
patching file tcl/lib/ns-agent.tcl
patching file tcl/lib/ns-default.tcl
patching file tcl/lib/ns-lib.tcl
patching file tcl/lib/ns-packet.tcl
patching file trace/cmu-trace.cc
patching file trace/cmu-trace.h

sanjeev prasad

unread,
May 22, 2016, 1:44:51 AM5/22/16
to ns-users

Reinstall Ubuntu
Then add olsr patch

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.

knudfl

unread,
May 22, 2016, 5:31:35 AM5/22/16
to Network Simulator 2 (NS2)
Reply all
Reply to author
Forward
0 new messages