LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-15-2012, 04:05 AM   #16
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled

#14...means i have to install ns2.26???
 
Old 05-15-2012, 04:09 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 16

Yes.

And please install to /home/<your-username>/ for best convenience.
 
Old 05-15-2012, 05:14 AM   #18
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
one more question.....we have to installl ns evrytime a new file is copied and it consumes much time....if we want ti installl ony ns ant not all..then make will work??

or some othet procedure???
 
Old 05-15-2012, 05:36 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#18.

That's why we have the 'ns-allinone' packages :
You will also get the versions of tcl8* tk8* otcl tclcl,
that work with the particular version of ns-2.xx.

Some ns versions can (sometimes with advantage) use later versions of tcl etc.

NS-2.26 can only use the versions in the ns-allinone-2.26 package.

.
 
Old 05-15-2012, 06:14 AM   #20
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
thanks...@ knudfl....downloaded ns-allinone2.26....now installing on ubuntu 10.10..lets see now it will work or not..fingers crossed...
 
Old 05-15-2012, 06:17 AM   #21
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
insatlling steps???there are some ???
 
Old 05-15-2012, 07:24 AM   #22
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
while insatlling ns2.26 on ubuntu 10.10....the error is:--

tk8.3.2 installation succeeded.
============================================================
* Build OTcl-1.0a8
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for string.h... yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking standard STL is available... no
checking for tcl.h... -I../include
checking for libtcl8.3... -L../lib -ltcl8.3
checking for init.tcl... ../lib/tcl8.3
checking for tclsh8.3.2... no
checking for tclsh8.3... ../bin/tclsh8.3
checking for tk.h... -I../include
checking for libtk8.3... -L../lib -ltk8.3
checking for tk.tcl... ../lib/tk8.3
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking system version (for dynamic loading)... Linux-2.6.35-22-generic
No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking for a BSD compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
rm -f libotcl.a otcl.o
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -I. -I/usr/local/ns-allinone-2.26/include -I/usr/local/ns-allinone-2.26/include -I/include otcl.c
ar cq libotcl.a otcl.o
ranlib libotcl.a
rm -f libotcl.so otcl.o so_locations
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/usr/local/ns-allinone-2.26/include -I/usr/local/ns-allinone-2.26/include -I/include otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/usr/local/ns-allinone-2.26/otcl-1.0a8/otcl.c:481: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/usr/local/ns-allinone-2.26/otcl-1.0a8/otcl.c:2266: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Nonrepresentable section on output
make: *** [libotcl.so] Error 1
otcl-1.0a8 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

neone can help resolve it???
 
Old 05-15-2012, 07:25 AM   #23
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
patching done..gcc-4.1 installed...the y??
 
Old 05-15-2012, 07:31 AM   #24
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
what about...export CC=gcc34 CXX=g++34 <Enter>..whats this???
 
Old 05-15-2012, 07:34 AM   #25
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
used ...export CC=gcc34 CXX=g++34 <Enter> and then ./install....again error...
tk8.3.2 installation succeeded.
============================================================
* Build OTcl-1.0a8
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc34
checking for C compiler default output... configure: error: C compiler cannot create executables
otcl-1.0a8 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.


do resolve this.....
 
Old 05-15-2012, 07:40 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 22, # 23
Quote:
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. ...
You are not using gcc version 4.1, but version 4.4.5 .
And : The Ubuntu gcc-4.1 may not work. (Not yet tested with ns-2.26.)

Please go back and read post # 14 about Ubuntu 10.10 :
Download and use the described gcc41-compat / g++41-compat.


And : The install command is not './install', but
export CC=gcc41 CXX=g++41 && ./install

# 25
Quote:
checking for gcc... gcc34
error: C compiler cannot create executables
That's because no gcc34 is installed on your OS.

.

Last edited by knudfl; 05-15-2012 at 08:34 AM.
 
Old 05-15-2012, 08:23 AM   #27
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
iss.......OTcl 1.0a3 doesn't compile with tcl 8.0.3 and 8.0.4????then what??
 
Old 05-15-2012, 08:26 AM   #28
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
now tell me what i have to do???

which gcc ti instllland how???
 
Old 05-15-2012, 08:32 AM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 27
Quote:
OTcl 1.0a3 doesn't compile with tcl 8.0.3 and 8.0.4
Is this some typos ? Defenitely not ns-allinone-2.26 !
Please use http://www.isi.edu/nsnam/dist/ns-allinone-2.26.tar.gz
→ → ns-allinone-2.26.tar.gz

Contains tcl8.3.2, tk8.3.2, otcl-1.0a8, tclcl-1.0b3 .
 
Old 05-15-2012, 08:39 AM   #30
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
ns2.26 is same..patch is there and g++41 and gcc41-compat-4.1 is there..now what steps to follow??
 
  


Reply

Tags
drand, g++41-compat, ns2, zmac



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
NS2 S-MAC Sleep Time Query ulyssues.fam Linux - Newbie 1 11-24-2012 04:18 PM
NS2 S-MAC Protocol Sleep Time Query ulyssues.fam Linux - Newbie 0 04-14-2012 09:01 AM
ns2.29.3 installation on fedora 15 , nam installation problem Narges Linux - Networking 5 10-31-2011 11:09 AM
Need help in NS2 installation maneshmotts Ubuntu 5 09-10-2011 05:47 AM
NS2 installation eby83 Linux - Newbie 2 06-11-2007 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:27 AM.

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
Open Source Consulting | Domain Registration