Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
Rep:
# 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 ? )
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 .
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
Rep:
# 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".
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
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
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
Rep:
# 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.
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......
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
Rep:
# 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.)
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/....."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.