LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help me out (http://www.linuxquestions.org/questions/linux-newbie-8/help-me-out-4175435660/)

anandsharma 11-05-2012 12:27 AM

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.

IMPORTANT NOTICES:

(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
into LD_LIBRARY_PATH.
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
http://www.isi.edu/nsnam/ns/ns-problems.html. 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 05: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 06:52 AM

Hi,


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
===================
OR
===================
. ~/.bashrc
===================

knudfl 11-05-2012 07:13 AM

Quote:

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.

IMPORTANT NOTICES:

(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-06-2012 12:54 AM

Knudfl:
ba_kirang:
pixellany:


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

This ERROR


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/random.cc
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
The INSTALLATION PROCESS STEPS OF NS2.33 and the PATCH of LTE to NS2.33.

Thanking You in Advance.

knudfl 11-06-2012 03:41 AM

# 5 : Please read post #2 : Use quote tags, and code tags ..
Write [/code] at code end, and [code] at code text start
http://www.linuxquestions.org/questi....php?do=bbcode

Quote:

g++ -c -Wall -g -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG
.
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" ...
http://www.linuxquestions.org/questi...2-33-a-857930/
Install instructions : Posts #4, #2. The lte test : Posts # 13, #59

http://www.linuxquestions.org/questi...33-a-857930/#2
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
http://www.linuxquestions.org/questi...6&d=1332803695
http://www.linuxquestions.org/questi...2-33-a-936417/

.

anandsharma 11-09-2012 03: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 06: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 http://www.linuxquestions.org/questi...930/page5.html
.. Works on all Ubuntu's, 10.** - 12.**.

Simulation : $ ns-lte eyana.tcl


.

anandsharma 11-10-2012 12:09 AM

Quote:

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 02:37 AM

# 9
Quote:

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 :
https://docs.google.com/open?id=0B7S...TZ2b0RYTVJUTnc
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 :
http://heanet.dl.sourceforge.net/pro...ne-2.33.tar.gz

.


All times are GMT -5. The time now is 12:28 PM.