LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-27-2015, 01:55 AM   #1
seeyousoon
LQ Newbie
 
Registered: May 2015
Posts: 2

Rep: Reputation: Disabled
ns2 validation error


Hi LQ,
When I had written nam,I got segmentation fault (core dumped) error.Then after read a particle here,I tried to uninstall and reinstall ns2.When at last step,I wrote ./validate or sudo ./validate,firstly I saw in terminal "some test outputs agrees with reference outputs" but after that I saw this and it repeats for other tests ;


Running test resetSack1:
../../ns test-suite-tcpReset.tcl resetSack1 QUIET
Guide: Sack TCP, resetting a TCP connection.
ns: _o4 cleanup file5 resetSack1: Can't locate getopts.pl in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ../../bin/raw2xg line 37.
while executing
"exec $PERL ../../bin/set_flow_id -s all.tr | $PERL ../../bin/getrc -s 2 -d 3 | $PERL ../../bin/raw2xg -s 0.01 -m 90 -t $file > temp.rands"
(procedure "_o4" line 3)
(TestSuite finish line 3)
invoked from within
"$self finish $testname"
(procedure "_o4" line 11)
(TestSuite cleanup line 11)
invoked from within
"_o4 cleanup file5 resetSack1"
Test output differs from reference output
Diagnose with: diff test-output-tcpReset/resetSack1.test test-output-tcpReset/resetSack1
Or see URL "http://www.isi.edu/nsnam/ns/ns-problems.html".
Running test resetReno:
../../ns test-suite-tcpReset.tcl resetReno QUIET
Guide: Reno TCP, resetting a TCP connection.
ns: _o4 cleanup file5 resetReno: Can't locate getopts.pl in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ../../bin/raw2xg line 37.
while executing
"exec $PERL ../../bin/set_flow_id -s all.tr | $PERL ../../bin/getrc -s 2 -d 3 | $PERL ../../bin/raw2xg -s 0.01 -m 90 -t $file > temp.rands"
(procedure "_o4" line 3)
(TestSuite finish line 3)
invoked from within
"$self finish $testname"
(procedure "_o4" line 11)
(TestSuite cleanup line 11)
invoked from within
"_o4 cleanup file5 resetReno"
Test output differs from reference output
Diagnose with: diff test-output-tcpReset/resetReno.test test-output-tcpReset/resetReno
Or see URL "http://www.isi.edu/nsnam/ns/ns-problems.html".
Some test failed.

I couldn't handle this problem,could you help me please,thanks.
 
Old 05-28-2015, 11:49 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,391

Rep: Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604
Welcome to LQ.
Quote:
Can't locate getopts.pl in @INC
Please install libperl4-corelibs-perl :
$ sudo apt-get install libperl4-corelibs-perl
... Provides /usr/share/perl5/getopts.pl .

Besides that : There is really no reason to run 'make test' (validate).
If some group tests are failing :
Nothing you can do. ( Except for using a more ns2 friendly OS.)
Note : "sudo ./validate" is a forbidden command.
No 'sudo' or root for any ns2 commands. ( Except for 'sudo make install'.)
* 'sudo' is for administrative tasks only ! Like installing / removing packages.


About the faulty 'nam' : $ sudo apt-get remove nam
I.e. the Ubuntu nam packages are buggy. There's a one year old bug report.
... Then find a nam package here, post #2
http://www.linuxquestions.org/questi...-4175524760/#2
Download the package. "Click" the package, and it will be installed.

Alternatively, if you have ns-2.35/, there's a chance you can do :
$ cd nam-1.15/ && sudo make install

-
 
1 members found this post helpful.
Old 05-29-2015, 03:52 PM   #3
seeyousoon
LQ Newbie
 
Registered: May 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you for your help,thank you very much knudfl.
Finally nam works )
 
  


Reply

Tags
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
ns2 - some validation tests failed shojaru Linux - Newbie 73 02-01-2017 06:59 PM
validation error in ns2.34 on ubuntu12.04--./validate is giving unexpected result banerjee Ubuntu 1 10-27-2014 03:14 PM
[SOLVED] Validation failed in NS2.34 in ubuntu 10.04 remix PAVAI Linux - Newbie 13 07-30-2012 05:47 AM
Validation failed in NS2.34 in ubuntu 10.04 64-bit jackachan Linux - Newbie 2 05-11-2011 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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