LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-17-2015, 09:36 PM   #1
hansong
LQ Newbie
 
Registered: Sep 2015
Posts: 5

Rep: Reputation: Disabled
Smile problem on install NS-2.31 on Ubuntu14.04


Dear friends:

I try to install NS-2.31 on ubuntu 14.04. everything installed but the nam and xgraph.
I tried a solution, which is adding '-lz' in /nam-1.13/Makefile for it, by the webset:
http://justin-linux.blogspot.com/2008/05/ns2-nam.html

however, after I re-installed, the Makefile go back to the original (no '-lz' in that line), thus same problem appears again.

Do you have any ideas please!
thanks in advance,

below attached part of the code in terminal:









config.status: creating Makefile
config.status: creating autoconf.h
config.status: autoconf.h is unchanged
rm -f nam
g++ -o nam \
tkcompat.o tkUnixInit.o xwd.o netview.o netmodel.o edge.o packet.o node.o main.o trace.o queue.o drop.o animation.o agent.o feature.o route.o transform.o paint.o state.o monitor.o anetmodel.o random.o rng.o view.o graphview.o netgraph.o tracehook.o lan.o psview.o group.o editview.o tag.o address.o animator.o wnetmodel.o nam_stream.o enetmodel.o testview.o parser.o trafficsource.o lossmodel.o queuehandle.o gen/version.o gen/nam_tcl.o -L/home/hansong/Documents/NS2/ns-allinone-2.31/tclcl-1.19 -ltclcl -L/home/hansong/Documents/NS2/ns-allinone-2.31/otcl-1.13 -lotcl -L/home/hansong/Documents/NS2/ns-allinone-2.31/lib -ltk8.4 -L/home/hansong/Documents/NS2/ns-allinone-2.31/lib -ltcl8.4 -lXext -lX11 -lnsl -ldl -lm
nam_stream.o: In function `NamStreamCompressedFile::get_char()':
nam_stream.cc:(.text+0x424): undefined reference to `gzgetc'
nam_stream.o: In function `NamStreamCompressedFile::close()':
nam_stream.cc:(.text+0x45f): undefined reference to `gzclose'
nam_stream.o: In function `NamStreamCompressedFile::seek(long, int) {clone .part.1}':
nam_stream.cc:(.text+0x594): undefined reference to `gzseek'
nam_stream.cc:(.text+0x5ab): undefined reference to `gzread'
nam_stream.cc:(.text+0x5ba): undefined reference to `gztell'
nam_stream.o: In function `NamStreamCompressedFile::NamStreamCompressedFile(char const*)':
nam_stream.cc:(.text+0x6ce): undefined reference to `gzopen'
nam_stream.o: In function `NamStreamCompressedFile::gets(char*, int)':
nam_stream.cc:(.text+0x3ec): undefined reference to `gzgets'
nam_stream.o: In function `NamStreamCompressedFile::read(char*, int)':
nam_stream.cc:(.text+0x43c): undefined reference to `gzread'
nam_stream.o: In function `NamStreamCompressedFile::tell()':
nam_stream.cc:(.text+0x44c): undefined reference to `gztell'
nam_stream.o: In function `NamStreamCompressedFile::eof()':
nam_stream.cc:(.text+0x47c): undefined reference to `gzeof'
nam_stream.o: In function `NamStreamCompressedFile::seek(long, int)':
nam_stream.cc:(.text+0x601): undefined reference to `gzseek'
collect2: error: ld returned 1 exit status
make: *** {nam} Error 1
Nam make failed! Continue ...
See [url]http://www.isi.edu/nsnam/ns-problems.html for problems
ln: failed to create symbolic link ‘ns’: File exists
Please compile your nam separately.
Please compile your xgraph separately.
ln: failed to create symbolic link ‘sgb2ns’: File exists
ln: failed to create symbolic link ‘sgb2hierns’: File exists
ln: failed to create symbolic link ‘sgb2comns’: File exists
ln: failed to create symbolic link ‘itm’: File exists
ln: failed to create symbolic link ‘sgb2alt’: File exists
ln: failed to create symbolic link ‘edriver’: File exists

Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.14: /home/hansong/Documents/NS2/ns-allinone-2.31/{bin,include,lib}
tk8.4.14: /home/hansong/Documents/NS2/ns-allinone-2.31/{bin,include,lib}
otcl: /home/hansong/Documents/NS2/ns-allinone-2.31/otcl-1.13
tclcl: /home/hansong/Documents/NS2/ns-allinone-2.31/tclcl-1.19
ns: /home/hansong/Documents/NS2/ns-allinone-2.31/ns-2.31/ns
gt-itm: /home/hansong/Documents/NS2/ns-allinone-2.31/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns
 
Old 09-18-2015, 04:41 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,322

Rep: Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581
Welcome to LQ.

Ubuntu (14.04) :
$ sudo apt-get update
$ sudo apt-get install g++ g++-4.4 autoconf libtool libxmu-dev xgraph


Nam, see post #2 here
http://www.linuxquestions.org/questi...-4175524760/#2
For a 32bits Ubuntu 14.04 (A 32bits OS is recommended for ns2) : Use ``nam_1.15-10_i386.deb"
If you have 64bits Ubuntu 14.04 (Not recommended for ns2) : Use ``nam_1.15-10-ubuntu14_amd64.deb".

Just click the downloaded 'nam' package, and it will be installed.


-
 
Old 09-18-2015, 10:09 AM   #3
hansong
LQ Newbie
 
Registered: Sep 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

Ubuntu (14.04) :
$ sudo apt-get update
$ sudo apt-get install g++ g++-4.4 autoconf libtool libxmu-dev xgraph


Nam, see post #2 here
http://www.linuxquestions.org/questi...-4175524760/#2
For a 32bits Ubuntu 14.04 (A 32bits OS is recommended for ns2) : Use ``nam_1.15-10_i386.deb"
If you have 64bits Ubuntu 14.04 (Not recommended for ns2) : Use ``nam_1.15-10-ubuntu14_amd64.deb".

Just click the downloaded 'nam' package, and it will be installed.


-
Hello Knudfl
Thank you very much for your reply, But it appears same problem after I followed your suggestion, do you have any ideas?
 
Old 09-18-2015, 11:54 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,322

Rep: Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581
Re #3.
Quote:
But it appears same problem
Same problem as what ?

You are not expected to compile NAM or Xgraph with ns-allinone-2.31/.
When ns-2.31/ns (the executable 'ns') is OK : Nothing more to build.


Please confirm that you installed the `nam' and `xgraph' packages OK,
... and also that both commands are working.


-
 
Old 09-18-2015, 12:41 PM   #5
hansong
LQ Newbie
 
Registered: Sep 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
that makes more sense, I have nam and xgraph installed, and how can i compile them separately?
 
Old 09-18-2015, 03:36 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,322

Rep: Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581
Re #5.

Please confirm that the commands are working OK :
1) $ nam
2) $ cd xgraph-12.1/
$ xgraph xgtest.xg


? Why do you want to compile those old applications ?
( ns-allinone-2.31/{ xgraph*, nam* }.
Not required at all, when you have installed the nam and xgraph packages.

Read post #4 : You are not expected to compile NAM or Xgraph with ns-allinone-2.31/.
... Which means none of the old versions are up to date :
Impossible to build, unless you do a lot of modifications.
**** Hence the up to date nam and xgraph packages.


-
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install mannasim in ns2.34 in ubuntu14.04 divya1 Linux - Wireless Networking 14 03-03-2015 02:46 PM
DFS packages for Ubuntu14.04LTS crothman Ubuntu 0 11-05-2014 08:44 PM
firefox28 in ubuntu14.04lts? ivtec Ubuntu 4 05-14-2014 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration