LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-07-2013, 06:40 AM   #31
Ehtiba
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Rep: Reputation: Disabled

Hi Guys....

I'm trying to install NS2.35 on Ubuntu 12.10.
Actually, the installation was done Successfully. Unfortunatly, the validation was failed.

validate overall report: some tests failed:
./test-all-newreno ./test-all-tcpOptions ./test-all-tcpVariants ./test-all-aimd ./test-all-frto ./test-all-quickstart ./test-all-manual-routing ./test-all-links
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME

Anyone can help me to solve this problem, or I can work even the validation was failed.

Thanks in advance.
 
Old 02-07-2013, 08:34 AM   #32
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,886

Rep: Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823
# 31

There are about 2,000 tests.
The 'validate' script uses 108 "test-all-*" shell scripts
to run those 2000 tests. A few will most often fail.
( See ns-2.35/tcl/tests/ ).

The file ns-2.35/validate.out, line 6628 : all tests passed.
Meaning :
The reference ns-2.35 was built on an OS that creates a perfect 'ns' executable.
( Could be CentOS 6 ? )

-
 
Old 02-08-2013, 02:57 AM   #33
MounaRM
Member
 
Registered: Nov 2010
Posts: 35

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by Ehtiba View Post
Hi Guys....

I'm trying to install NS2.35 on Ubuntu 12.10.
Actually, the installation was done Successfully. Unfortunatly, the validation was failed.

validate overall report: some tests failed:
./test-all-newreno ./test-all-tcpOptions ./test-all-tcpVariants ./test-all-aimd ./test-all-frto ./test-all-quickstart ./test-all-manual-routing ./test-all-links
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME

Anyone can help me to solve this problem, or I can work even the validation was failed.

Thanks in advance.
as knudfl said , it's not a real problem that some tests fail.
if you type ns in terminal and you see % , that's good. Otherwise , your installation has not succeded .

Good luck ..
 
Old 02-20-2013, 04:34 AM   #34
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
Hi, everyone,
I got make: *** [linkstate/ls.o] Error 1 errror occur after changing Makefile under
"ns2.35\indep.utils\cmu-scen-gen\setdest\Makefile" by adding these two sentences at the end of file following like this
////////////////
Makefile
.....
...
#add new code
ex-linkage.o
/////////////
and save it. And I add the ex-linkage.cc under ns2.35. After that I run "./configure" and "make clean" and then "make" command. At last I got one error and can't run any ns program. After getting that error, I see again Makefile to delete my two line. But I can't find them. So, how to get original Makefile and how to fix this error. I'm very new user in NS2 and very important to use NS2 for my research.
I wanted to test a program to make a linkage between C++ and OTCL. Hoping any help to fix this....Thank a million in advance.
 
Old 02-20-2013, 05:38 AM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,886

Rep: Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823
# 34 . Unknown Ubuntu version. Please specify.

Quote:
After that I run "./configure" and "make clean" and then "make"
Looks like you configured to use a wrong gcc ?
If it's a later Ubuntu like 11* .. 12*, the configure command is :
$ export CC=gcc-4.4 CXX=g++-4.4 && ./configure
.
If you have no succes, please start from scratch :

1) tar xvf ns-allinone-2.35.tar.gz && cd ns-allinone-2.35/
2) export CC=gcc-4.4 CXX=g++-4.4 && ./install
3) cd ns-2.35/ && cp ns ns-orig
.. Then you have a working executable (ns-orig),
if anything goes wrong at make clean && make.

** It is always a god idea to save a backup : 'ns-orig' :
Not every default tcl script will work with a modified "ns executable".

-
 
1 members found this post helpful.
Old 02-20-2013, 12:22 PM   #36
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959
Response erroneously sent as report:
Quote:
Originally Posted by Nwe Nwe View Post
Thank you very much. I use NS2.35 on Ubuntu 12.10. Now, I can fix that error. Thank you very much again and again Sir.
 
Old 03-09-2013, 02:14 AM   #37
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
I run some my own program in NS2. When "make" command is done, no error occurs. But, when I use "make install". I got this error. How to fix it? Please kindly share me. Thank you for any help.

for d in /usr/local/man/man1; do \ if [ ! -d $d ]; then \ mkdir -p $d ;\ fi;\ done /usr/bin/install -c -m 755 ns /usr/local/bin /usr/bin/install: cannot create regular file `/usr/local/bin/ns': Permission denied make: * [install-ns] Error 1

Any help will be highly appreciated.
Ms. Nwe Nwe
 
Old 03-09-2013, 04:17 AM   #38
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,886

Rep: Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823
# 37
Quote:
Permission denied
'make install' won't do. Must be : sudo make install

I.e. 'make install' will copy 'ns' to /usr/local/bin/
And you have no write access to /usr///** as unprivileged user.

-
 
1 members found this post helpful.
Old 03-13-2013, 09:57 PM   #39
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
Dear All,

Whenever I change Makefile.in under ns directory to make some linkage (.cc and .tcl), although I don't have any program error.I occur this error. After that, I can't use ns command. Please kindly suggest me how to fix this error.

In file included from linkstate/ls.cc:67:0:
linkstate/ls.h: In instantiation of ‘void LsMap<Key, T>::eraseAll() [with Key = int; T = LsIdSeq]’:
linkstate/ls.cc:396:28: required from here
linkstate/ls.h:137:20: error: ‘erase’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
linkstate/ls.h:137:20: note: declarations in dependent base ‘std::map<int, LsIdSeq, std::less<int>, std::allocator<std:air<const int, LsIdSeq> > >’ are not found by unqualified lookup
linkstate/ls.h:137:20: note: use ‘this->erase’ instead
make: *** [linkstate/ls.o] Error 1
 
Old 03-13-2013, 10:19 PM   #40
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,886

Rep: Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823
# 39

If you want a solution, some more information is required :
Please show the line(s) that you changed in Makefile.in : In code tags.


*** Be aware that when the Makefile.in has been edited,
and you do a ./configure in ns-2.35/, it must be done in this way :
Code:
export CXX=g++-4.4 && ./configure
-
 
1 members found this post helpful.
Old 03-14-2013, 12:05 AM   #41
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
Dear Sir knudfl,
Very Thankful Sir, Now I can solve it with your help.. I have no error after "make" command but error occurs "make depend" as follows.

emulate/net-pcap.cc:64:18: fatal error: pcap.h: No such file or directory
compilation terminated.

I run the following.
export CXX=g++-4.4 && ./configure
make clean
make depend //above error occur
make// no error , result get.

And also do I need to delete Makefile.in~ , I found many files like that ending with ~. is that temp file and need to delete it. Sir? Please kindly tell me, Sir. Thank you very much.

Regards,
Ms. Nwe Nwe
 
Old 03-14-2013, 12:36 AM   #42
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,886

Rep: Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823
# 41 .
Quote:
fatal error: pcap.h: No such file or directory
sudo apt-get install libpcap0.8-dev
Or : It could be an error with 'make depend'.
And : When an ns-allinone-2* has been built with ./install,
.. there should be no reason to use 'make depend'.
( I am never using 'make depend' after changes. 'make' will do.)


Quote:
do I need to delete Makefile.in~ , I found many files like that ending with ~
Files~ are backup for files that you edited.
It's your own decision if you want to delete them.

Avoiding files~ :
Use another Editor, like gedit. No visible backup. ( Hidden .backup ?).
Or use leafpad : No backups at all.

If you want a backup anyway : Make backups before you edit.
Like : cp Makefile Makefile-back ; cp Makefile.in Makefile.in-back.

-
 
Old 03-14-2013, 02:14 PM   #43
Jawad
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Rep: Reputation: Disabled
Problem

Dear all, I am installing ns-2.35 on ubuntu 12.04, everything goes fine, installation, validation and all. but after i set envirnment variables and make it effect using command "source ~/.bashrc" it gives an error "USR_LOCAL_LIB: command not found".
please help
probably it is very last step before using ns-2 and i stuck here......
 
Old 03-14-2013, 03:39 PM   #44
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,886

Rep: Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823
# 43 .

"/usr/local/lib/" is 1) an LD_LIBRARY_PATH, not a PATH.
2) is already a system path. Should not be added to .bashrc .

** I don't think you actually need to add anything at all to .bashrc.
The executable 'ns' will work perfectly OK, when it is installed
or copied to /usr/local/bin/.
( I have 30 times 'ns' in /usr/local/bin/ (They have 30 different names),
and I never add any *PATH* text to .bashrc or anywhere else.)

-
 
Old 03-15-2013, 02:31 AM   #45
Jawad
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Rep: Reputation: Disabled
Thank you very much knudfl, its very nice of you,
the problem got traced and it is that i was not setting the path correctly at "OTCL_LIB=/Home/Jawad/Documents/....."
i was using "OTCL_LIB=/Documents/....."
 
  


Reply

Tags
edca, hcca, 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Xen On An Ubuntu 8.04 (Hardy Heron) Server From The Ubuntu Repositor LXer Syndicated Linux News 0 05-08-2008 02:10 PM
LXer: Installing Xen On An Ubuntu 7.10 (Gutsy Gibbon) Server From The Ubuntu Reposito LXer Syndicated Linux News 0 11-06-2007 08:50 PM
LXer: Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories LXer Syndicated Linux News 0 07-01-2007 06:46 AM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 12:44 AM
Installing the nvidia driver off the web site and installing rpm in ubuntu? darkhatter Ubuntu 3 02-19-2006 02:44 PM


All times are GMT -5. The time now is 07:58 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration