LinuxQuestions.org
Review your favorite Linux distribution.
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 11-04-2012, 11:27 PM   #1
anandsharma
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
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.

 
Old 11-05-2012, 04:32 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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
 
Old 11-05-2012, 05:52 AM   #3
ba_kirang
LQ Newbie
 
Registered: Apr 2012
Posts: 18

Rep: Reputation: Disabled
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
===================
 
Old 11-05-2012, 06:13 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,483

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
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 ?

.

Last edited by knudfl; 11-05-2012 at 06:49 AM.
 
Old 11-05-2012, 11:54 PM   #5
anandsharma
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-06-2012, 02:41 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,483

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
# 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/

.

Last edited by knudfl; 11-06-2012 at 02:45 AM.
 
1 members found this post helpful.
Old 11-09-2012, 02:30 AM   #7
anandsharma
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-09-2012, 05:19 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,483

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
# 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


.

Last edited by knudfl; 11-09-2012 at 09:55 AM.
 
Old 11-09-2012, 11:09 PM   #9
anandsharma
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-10-2012, 01:37 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,483

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
# 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

.

Last edited by knudfl; 11-10-2012 at 01:48 AM.
 
  


Reply

Tags
lte, 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



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

All times are GMT -5. The time now is 08:04 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