-   Linux - Newbie (
-   -   Help me out (

anandsharma 11-04-2012 11:27 PM

Help me out
Please help me out with this error I am facing this error when i am installing NS2.33 in my ubuntu 11.04 machine

Please put /home/asmaitha/ns-allinone-2.33/bin:/home/asmaitha/ns-allinone-2.33/tcl8.4.18/unix:/home/asmaitha/ns-allinone-2.33/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.


(1) You MUST put /home/asmaitha/ns-allinone-2.33/otcl-1.13, /home/asmaitha/ns-allinone-2.33/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>

(2) You MUST put /home/asmaitha/ns-allinone-2.33/tcl8.4.18/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.

After these steps, you can now run the ns validation suite with
cd ns-2.33; ./validate

For trouble shooting, please first read ns problems page Also search the ns mailing list archive
for related posts.

i did these changes in bashrc file and apart from this i have set the path what it was asking me even though i am getting the same error.

and when i did the ./validate then i got

all test passed

here is the validate file also

Thank you in advance.

:scratch: :confused:

pixellany 11-05-2012 04:32 AM

I can't tell which lines are quoted from the instructions, and which are your prose---perhaps you can use the "quote" icon--or just add quote tags.

Also, please change the thread title to something descriptive

ba_kirang 11-05-2012 05:52 AM


Are you saying that you are getting "Please put /ho..." error every time?

Is this what you put in your ~/.bashrc ?

export PATH=$PATH:/home/asmaitha/ns-allinone-2.33/bin:/home/asmaitha/ns-allinone-2.33/tcl8.4.18/unix:/home/asmaitha/ns-allinone-2.33/tk8.4.18/unix
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/asmaitha/ns-allinone-2.33/otcl-1.13:/home/asmaitha/ns-allinone-2.33/lib
export TCL_LIBRARY=$TCL_LIBRARY:/home/asmaitha/ns-allinone-2.33/tcl8.4.18/library

If it's not, try adding the above lines.

Once you have done this, add these variables to your current bash scope by executing

source ~/.bashrc
. ~/.bashrc

knudfl 11-05-2012 06:13 AM


Please put /home/asmaitha/ns-allinone-2.33/bin:/home/asmaitha/ns-allinone-2.33/tcl8.4.18/unix:
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.


(1) You MUST put /home/asmaitha............... ...
etc. etc.
Not required on Linux. But it may work, if you only have one version of ns-allinone-2*.

This will do : cd ns-allinone-2.33/ns-2.33/ && sudo make install
.. And the same for ns-allinone-2.33/nam-1.*

The binary 'ns' is hard coded to know the location of it's libraries.
'nam' has tcl / tk built into the binary, i.e. will run anywhere,
also in an OS with no ns-allinone-2* at all.
Xgraph : No xgraph is built in any version of ns-allinone.
Solution : sudo apt-get install xgraph

About "./validate, if some tests fail :
You will have to specify the failed tests.
But : Usually some tests will fail on Ubuntu 11.04 .

Note : Post #1 indicates no errors. What is your question ?


anandsharma 11-05-2012 11:54 PM


Sorry for The inconvenience sir my comment was not completely posted.

what actually happend was i have installed NS2.33 successfully then i was trying to PATCH lte to it then i was getting


asmaitha@ubuntu:~/ns-allinone-2.33/ns-2.33$ make
g++ -c -Wall -g -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/root/ns-allinone-2.33/tclcl-1.19 -I/root/ns-allinone-2.33/otcl-1.13 -I/root/ns-allinone-2.33/include -I/root/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./project -I./tcp/linux -I./tcp/linux/src -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o tools/random.o tools/
cc1plus: error: /root/ns-allinone-2.33/tclcl-1.19: Permission denied
cc1plus: error: /root/ns-allinone-2.33/otcl-1.13: Permission denied
cc1plus: error: /root/ns-allinone-2.33/include: Permission denied
cc1plus: error: /root/ns-allinone-2.33/include: Permission denied
make: *** [tools/random.o] Error 1

so what i did is changed some lines in MAKE file i.e the PATH but it dint resolved :( so later i have uninstalled everything from my machine and started doing it from 1st.

now when i am making ./install in my ns-allinone-2.33 it is giving
TCl error so If you dun mind can you share me

Thanking You in Advance.

knudfl 11-06-2012 02:41 AM

# 5 : Please read post #2 : Use quote tags, and code tags ..
Write [/code] at code end, and [code] at code text start


cc1plus: error: /root/ns-allinone-2.33/tclcl-1.19: Permission denied
Ubuntu 11.04 : The default g++ version is 4.5.2 . May not work.
Suggest : Use gcc / g++ version 4.1 : Post # 50 in the "lte thread" ...
Install instructions : Posts #4, #2. The lte test : Posts # 13, #59
I.e. edit the nine /root/ entries in the new Makefile to /home/asmaitha/ .
If g++41 : Edit line 37 to : CPP = g++41

Simulation : $ ns eyana.tcl


anandsharma 11-09-2012 02:30 AM

Respected KNUDFL,

Is my combination is correct i.e installing NS2.33 in ubuntu 11.04 machine ???
as i have seen in one of the post that it is recommended to go with ubuntu 10.04 and 9.04 so i just want to clarify from you sir. tell me the best flavor combination on both to PATCH LTE successfully.

Thanking you in Advance.

knudfl 11-09-2012 05:19 AM

# 7 : Two test builds on Ubuntu 11.04, ns-allinone-2.33 + lte today : failed.
The binary "lte ns" was build OK, but the ns command is not usable.
The best OS for old ns2 is usually Ubuntu 10.10.
But not a very good validation result for "ns-allinone-2.33 + lte".

Suggest : Use the lte-ns binary package : lte-ns-2.33-ubuntu10_i386.deb,
post #72 here
.. Works on all Ubuntu's, 10.** - 12.**.

Simulation : $ ns-lte eyana.tcl


anandsharma 11-09-2012 11:09 PM


Originally Posted by knudfl
Use the lte-ns binary package : lte-ns-2.33-ubuntu10_i386.deb

Sorry to give you trouble sir as you have mentioned in this comment that Lte-ns-2.33 with ubuntu10_i386.deb is is best suggested one so i have doubt sir This may be a silly one but as i am new to this i want to make it clear sir, what does this ubuntu 10_i368.deb mean ?

and if possible can you post the down-loadable links of both ns-2.33 and the ubuntu 10_i368.deb.

Thanking You in advance.

knudfl 11-10-2012 01:37 AM

# 9

you have mentioned in this comment that Lte-ns-2.33 with ubuntu10_i386.deb is is best suggested
No. The binary package can be used on any Ubuntu 10 .. 12.
And ns-2.33 + LTE can be built on Ubuntu 10.04 + 10.10.
( And: lte can be built on some older versions too.)
No "best" was mentioned. Ubuntu 10.10 : Best for versions older than 2.33.
Using the binary package : Nothing has to be built.
Ns-allinone-2.33 is not even required for using "/usr/local/bin/ns-lte".

lte-ns-2.33-ubuntu10_i386.deb ( 6.2 MB ), download link :
Provides : /usr/local/bin/ ns-lte ns-orig
( + "The two dependencies" /usr/local/lib/lte/ns-allinone-2.33/bin/tclsh8.4,
/usr/local/lib/lte/ns-allinone-2.33/lib/libtcl8.4.a ).

And the download link for ns-allinone-2.33.tar.gz :


All times are GMT -5. The time now is 02:08 PM.