i advise you to delete the installed files and try to setup again with the 
following step by step and you must access the internet 
 
First, we download the ns-2 all-in-one file [54.4 MB]. $ wget 
http://nchc.dl.sourceforge.net/sourceforge/nsnam/ns-allinone-2.34.tar.gz$ tar 
-xzvf ns-allinone-2.34.tar.gz$ cd ns-allinone-2.34$ sudo apt-get install 
build-essential autoconf automake libxmu-dev$ ./install
If your ubuntu version is 9.10, you must change the variable of environment CC 
$ export CC=gcc-4.3
 
Set environment variables $ gedit ~/.bashrc 
Add the following lines to the end of the file. Remember replace "/your/path" 
by the folder where you have stored extracted the ns-2 file (For example, if 
your Linux account name is purple, and you have extracted the file to your home 
directory, you have to change /your path to /home/purple) # 
LD_LIBRARY_PATHOTCL_LIB=/your/path/ns-allinone-2.34/otcl-1.13NS2_LIB=/your/path/ns-allinone-2.34/libX11_LIB=/usr/X11R6/libUSR_LOCAL_LIB=/usr/local/libexport
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB # 
TCL_LIBRARYTCL_LIB=/your/path/ns-allinone-2.34/tcl8.4.18/libraryUSR_LIB=/usr/libexport
 TCL_LIBRARY=$TCL_LIB:$USR_LIB # 
PATHXGRAPH=/your/path/ns-allinone-2.34/bin:/your/path/ns-allinone-2.34/tcl8.4.18/unix:/your/path/ns-allinone-2.34/tk8.4.18/unixNS=/your/path/ns-allinone-2.34/ns-2.34/NAM=/your/path/ns-allinone-2.34/nam-1.14/PATH=$PATH:$XGRAPH:$NS:$NAM
Ensure that it immediately takes effect: $ source ~/.bashrc
Note: the previous step is important; else you cannot successfully run ns-2. 
(Alternatively, you may have to restart your X-windows, that is logout, and 
then login, or restart your computer.) 
Now, the installation has been completed. Try: $ ns
The "%" symbol appears on the screen. Type "exit" to quit. 


--- On Mon, 7/11/11, ketan telang <[email protected]> wrote:


From: ketan telang <[email protected]>
Subject: [ns] what is causing this error in installation of ns2? it 
says....undefined reference to `__stack_chk_fail_local
To: [email protected]
Date: Monday, July 11, 2011, 2:35 AM



Hi
I am installing ns-allinone-2.34 on ubuntu. I am getting this error. Could
anyone figure out what is causing?


/home/prithviraj/Documents/NS2/ns-allinone-2.34/otcl-1.13/otcl.c:495:
undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/prithviraj/Documents/NS2/ns-allinone-2.34/otcl-1.13/otcl.c:2284:
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



Thanks

Reply via email to