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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
06-03-2012, 09:46 AM
|
#1
|
Member
Registered: Apr 2012
Posts: 115
Rep:
|
ns make error in fedora 17
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
Please suggest what to do
Regards
Fabe
|
|
|
06-03-2012, 11:09 AM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# yum install compat-gcc-34-c++
Better start from scratch.
Or 'make clean' in all applications, and delete all the 'Makefile's.
$ cd ns-allinone-2.31/ && export CC=gcc34 CXX=g++34 && ./install
.
|
|
|
06-03-2012, 12:41 PM
|
#3
|
Member
Registered: Apr 2012
Posts: 115
Original Poster
Rep:
|
Thanks,
Before your reply I had changed the line number 137 in ns-2.31/linkstate/ls.h
void eraseAll() { erase(baseMap::begin(), baseMap::end()); }
to this line
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
Regards
Fabe
Last edited by fabe856; 06-03-2012 at 12:43 PM.
|
|
|
06-03-2012, 01:00 PM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Quote:
I had changed the line number 137 in ns-2.31/linkstate/ls.h
... as per instructions of the link http://www.nsnam.com/
|
The instructions are for ns-2.35 .
Those settings are not really required on Linux.
And : Impossible to use when you have more than one version of ns-allinone-2.xx.
I will come back with an answer for the validate result.
For best result : The OS must be 32bits. ( 'uname -m' : i686 ).
.
|
|
|
06-03-2012, 01:18 PM
|
#5
|
Member
Registered: Apr 2012
Posts: 115
Original Poster
Rep:
|
Thanks
Quote:
Originally Posted by knudfl
The instructions are for ns-2.35 .
|
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
|
|
|
06-03-2012, 04:07 PM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Nam : Please use a binary 'nam'.
https://docs.google.com/open?id=0B7S...k4NGI5NzliM2Ux
nam-1.14.i586.tar.gz : Unpack, and copy 'nam' to /usr/local/bin/
|
|
|
06-03-2012, 06:38 PM
|
#7
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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 )
Code:
validate overall report: all tests passed
.
|
|
|
06-03-2012, 09:43 PM
|
#8
|
Member
Registered: Apr 2012
Posts: 115
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
validate overall report: all tests passed
|
Not able to understand. Please elaborate
Last edited by fabe856; 06-03-2012 at 11:45 PM.
Reason: Change
|
|
|
06-04-2012, 04:24 AM
|
#9
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
#8 : ""validate overall report: all tests passed""
.. is the finishing text, when all tests pass. ( Ubuntu 10.10 ).
Quite a difference from the results we got in Fedora 17 :
Code:
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
|
|
|
08-14-2012, 04:37 PM
|
#10
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep:
|
I do this
Quote:
Originally Posted by knudfl
# yum install compat-gcc-34-c++
Better start from scratch.
Or 'make clean' in all applications, and delete all the 'Makefile's.
.
|
but when do this line
$ cd ns-allinone-2.31/ && export CC=gcc34 CXX=g++34 && ./install
i have this msg
./install: Permission denied
|
|
|
08-14-2012, 04:55 PM
|
#11
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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/".
.
Last edited by knudfl; 08-14-2012 at 04:56 PM.
|
|
|
08-14-2012, 05:04 PM
|
#12
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep:
|
Quote:
Originally Posted by knudfl
Post # 10.
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/".
.
|
[root@MSH ns-allinone-2.31]# export CC=gcc34 CXX=g++34 && ./installbash: ./install: Permission denied
[root@MSH ns-allinone-2.31]# pwd
/home/majd/ns-allinone-2.31
|
|
|
08-15-2012, 03:58 AM
|
#13
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 12
Please use :
export CC=gcc34 CXX=g++34 && sh install
|
|
|
08-15-2012, 03:42 PM
|
#14
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep:
|
done
Quote:
Originally Posted by knudfl
# 12
Please use :
export CC=gcc34 CXX=g++34 && sh install
|
but I have this at the end
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]#
Last edited by majd_cs; 08-15-2012 at 03:47 PM.
|
|
|
08-15-2012, 04:02 PM
|
#15
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep:
|
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
foreach pt (0)
foreach scen ( 1 2 3 4 5 6 7 8 9 10)
echo scen $scen : setdest -v 1 -n $numnodes -p $pt -M $maxspeed -t $simtime \
-x $maxx -y $maxy
time ./setdest -v 1 -n $numnodes -p $pt -M $maxspeed -t $simtime \
-x $maxx -y $maxy \
>$outdir/scen-${maxx}x${maxy}-${numnodes}-${pt}-${maxspeed}-${scen}
echo
end
end
|
|
|
All times are GMT -5. The time now is 04:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|