Linux - NewbieThis 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
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.
Hi,
i used following commands to install ns2.31 in fedora 17:
# yum install \ libX11-devel libXext-devel libXau-devel libXmu-devel gcc-c++
#cd ns-allinone-2.31
When i give
./install
it runs for sometime and then gives following error: make: *** [linkstate/ls.o] Error 1
Ns make failed!
Then i used
cd ns-2.31
make install
and it gave following error
[root@localhost ns-2.31]# make install
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 stat `ns': No such file or directory
make: *** [install-ns] Error 1
void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }
as per instructions of the link http://www.nsnam.com/
and then
./install.
It worked. After adding Paths, I gave ./validate command but it showed following:
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-session ./test-all-links
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME
Notice that some tests in webcache will fail on freebsd when -O is turned on.
This is due to some event reordering, which will disappear when -g is turned on.
Now I have two queries:
1. Whether ns is installed properly
2. If yes, then how to validate above failed tests
It was showing the reference of same line and file in the terminal as well when i first tried ./install. That is why I changed the line and tried again ./install.
Quote:
Originally Posted by knudfl
For best result : The OS must be 32bits. ( 'uname -m' : i686 ).
I tried it and it is showing the same [root@localhost a]# uname -m
i686
nam also not working
ns: finish: couldn't execute "nam": no such file or directory
while executing
"exec nam out.nam &"
(procedure "finish" line 7)
invoked from within
"finish"
Last edited by fabe856; 06-03-2012 at 02:00 PM.
Reason: Another problem
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,493
Rep:
Validate : I got the same moderate result with gcc/g++ ver. 3.4.
Installed a new ns-allinone-2.31 from scratch with gcc / g++ version 4.1.2 :
Same result again.
The later Ubuntu / Debian are actually better with old ns2.
This is ns-allinone-2.31, Ubuntu 10.10, gcc/g++ ver. 4.1.2 :
( gcc41-compat / g++41-compat )
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,493
Rep:
Post # 10.
Quote:
./install: Permission denied
Either the file "install" isn't executable, or has another owner ?
Use this install command : sh install
Or make the file "install" executable : chmod +x install
If you extracted ns-allinone-2.31.tar.gz as root in "/home/majd/",
or if you extracted to a location outside "/home/majd/" :
Then all the files are owned by root. Better delete ns-allinone-2.31/,
.. and unpack the *tar.gz as unprivileged user in "/home/majd/".
Either the file "install" isn't executable, or has another owner ?
Use this install command : sh install
Or make the file "install" executable : chmod +x install
If you extracted ns-allinone-2.31.tar.gz as root in "/home/majd/",
or if you extracted to a location outside "/home/majd/" :
Then all the files are owned by root. Better delete ns-allinone-2.31/,
.. and unpack the *tar.gz as unprivileged user in "/home/majd/".
sgb2ns has been installed successfully.
============================================================
* Build zlib
============================================================
install: line 392: ./configure: Permission denied
Zlib-1.2.3 configuration failed, but it's optional, so continuing ...
=================================================
I type:
sh ./configure
then at the end
i have :
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.
===========
problem #2:
* Build tcl8.4.14
============================================================
install: line 419: ./configure: Permission denied
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
[root@MSH ns-allinone-2.31]#
why i have this error
??????
[root@MSH setdest]# sh ./make-scen.csh
./make-scen.csh: line 18: syntax error near unexpected token `('
./make-scen.csh: line 18: `foreach pt (0)'
--------------------------------------------
the file contain:
#!/bin/csh
###########################################################
# Script for the original version of setdest
###########################################################
unset noclobber
set outdir = scen_out
set maxspeed = 20
set numnodes = 50
set maxx = 1500
set maxy = 300
set simtime = 900
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.