ns2.35 install error

213 views
Skip to first unread message

sumeyye...@gmail.com

unread,
Mar 11, 2021, 7:05:25 AM3/11/21
to Network Simulator 2 (NS2)
Hi,

I want to install Ns2.35 but I'm getting an error. This error ...

Ekran görüntüsü 2021-03-11 15-03-18.png

regards.

Alem Yikeber

unread,
Mar 11, 2021, 8:35:08 AM3/11/21
to ns-u...@googlegroups.com
please send the error clearly


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/8428d694-187d-4731-9c53-66a7c012c0fdn%40googlegroups.com.

Alem Yikeber

unread,
Mar 11, 2021, 8:38:41 AM3/11/21
to ns-u...@googlegroups.com
make sure that the setup file exist and not corrupted 

sumeyye...@gmail.com

unread,
Mar 11, 2021, 10:09:33 AM3/11/21
to Network Simulator 2 (NS2)
I dowloaded ns-allinone-2.35_gcc5.tar.gz. then I performed the steps below.
tar xvf ns-allinone-2.35_gcc5.tar.gz
cd ns-allinone-2.35/
./install


I'm getting error:

./install: 433: cd: can't cd to ./tcl8.5.10/unix
autoconf: error: no input file
./install: 441: ./install: ./configure: not found
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.

11 Mart 2021 Perşembe tarihinde saat 16:38:41 UTC+3 itibarıyla alemyik...@gmail.com şunları yazdı:

sumeyye...@gmail.com

unread,
Mar 11, 2021, 10:16:45 AM3/11/21
to Network Simulator 2 (NS2)
Ubuntu version 18.04.4 LTS
gcc version 9.3.0

11 Mart 2021 Perşembe tarihinde saat 18:09:33 UTC+3 itibarıyla sumeyye...@gmail.com şunları yazdı:

knudfl

unread,
Mar 11, 2021, 11:12:06 AM3/11/21
to Network Simulator 2 (NS2)
@sumeyye

Please install a compiler gcc for ns2 : $ sudo apt install g++-4.8
And please unpack a new ns-allinone-2.35_gcc5.tar.gz into a new folder ....

The ns2 build command for Ubuntu 18.04.4 is :

sumeyye...@gmail.com

unread,
Mar 11, 2021, 12:33:50 PM3/11/21
to Network Simulator 2 (NS2)
I performed what you said but I'm getting this error.


Ekran görüntüsü 2021-03-11 20-26-03.png

11 Mart 2021 Perşembe tarihinde saat 19:12:06 UTC+3 itibarıyla knudfl şunları yazdı:

knudfl

unread,
Mar 11, 2021, 1:42:35 PM3/11/21
to Network Simulator 2 (NS2)
@sumeyye ,   not easy to know why you have the shown "linker error" .....

Could be you are reusing an already trashed ns-2.35 ?
You can have as many times ns-allinone-2.xx as you want, installed at the same time ...
..... so simply unpack a new one to a new directory .....
/home/name/ns2/a/ns-allinone-2.35/
/home/name/ns2/b/ns-allinone-2.35/
/home/name/ns2/c/ns-allinone-2.35/
/home/name/ns2/d/ns-allinone-2.35/
.
/home/name/ns2/x/ns-allinone-2.35/

..... i.e no limit .... .... so just continue till you get it right .....

cd ns-allinone-2.35/
export CC=gcc-4.8 CXX=g++-4.8 && ./install
-----

Note: "You should avoid posting pictures of text. Pictures can be hard to read. Text is easier to read in different screen formats, can be copied and pasted, as well as is search engine addressable, making it easier for people to reach this post who may have a similar issue." 
My comments : I guess you know how to copy-paste a text.
And :   Images will often not be read.

sumeyye...@gmail.com

unread,
Mar 11, 2021, 1:50:40 PM3/11/21
to Network Simulator 2 (NS2)
I added following patch. Can reason be this?
patch -p0 < Geo+olsr_ns235.patch
11 Mart 2021 Perşembe tarihinde saat 21:42:35 UTC+3 itibarıyla knudfl şunları yazdı:

knudfl

unread,
Mar 11, 2021, 5:14:55 PM3/11/21
to Network Simulator 2 (NS2)
@sumeyye 

Ubuntu 18.04.4 : In /home/knudfl/ns2/Geo+OLR/       .... I did this today →
tar xvf ns-allinone-2.35_gcc5.tar.gz
cd ns-allinone-2.35/
patch -p0 < Geo+olsr_ns235.patch
export CC=gcc-4.8 CXX=g++-4.8 && ./install
                 ### and the executable ns (10.1MB) was created in ns-2.35/
                 ###    I.e. no errors.
Reply all
Reply to author
Forward
0 new messages