LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-03-2012, 08:46 AM   #1
fabe856
Member
 
Registered: Apr 2012
Posts: 115

Rep: Reputation: Disabled
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
 
Old 06-03-2012, 10:09 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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


.
 
Old 06-03-2012, 11:41 AM   #3
fabe856
Member
 
Registered: Apr 2012
Posts: 115

Original Poster
Rep: Reputation: Disabled
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 11:43 AM.
 
Old 06-03-2012, 12:00 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 .

Quote:
After adding Paths ...
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 ).

.
 
Old 06-03-2012, 12:18 PM   #5
fabe856
Member
 
Registered: Apr 2012
Posts: 115

Original Poster
Rep: Reputation: Disabled
Thanks
Quote:
Originally Posted by knudfl View Post
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 View Post
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 01:00 PM. Reason: Another problem
 
Old 06-03-2012, 03:07 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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/
 
Old 06-03-2012, 05:38 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
.
 
Old 06-03-2012, 08:43 PM   #8
fabe856
Member
 
Registered: Apr 2012
Posts: 115

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
validate overall report: all tests passed
Not able to understand. Please elaborate

Last edited by fabe856; 06-03-2012 at 10:45 PM. Reason: Change
 
Old 06-04-2012, 03:24 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#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
 
Old 08-14-2012, 03:37 PM   #10
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
I do this

Quote:
Originally Posted by knudfl View Post
# 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
 
Old 08-14-2012, 03:55 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 03:56 PM.
 
Old 08-14-2012, 04:04 PM   #12
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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
 
Old 08-15-2012, 02:58 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 12

Please use :

export CC=gcc34 CXX=g++34 && sh install
 
Old 08-15-2012, 02:42 PM   #14
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Wink done

Quote:
Originally Posted by knudfl View Post
# 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 02:47 PM.
 
Old 08-15-2012, 03:02 PM   #15
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
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
 
  


Reply

Tags
crcn, crcn-fc17, ns2



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
Custom linux kernel for fedora make bzImage error Aqua_Regia Linux - Newbie 1 12-15-2011 06:05 AM
b43-fwcutter-011 make error in Fedora 10 lupusarcanus Linux - Software 4 03-31-2009 11:02 AM
EW-7318USG - error during make - OS is Fedora staylor1962 Linux - Newbie 2 11-15-2008 03:11 PM
Fedora Core 9, make error BallsOfSteel Linux - Newbie 4 07-01-2008 01:28 PM
Odd Chars w/ make/C++ compile error on Fedora w/bash shell zemux Linux - General 2 01-22-2006 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:40 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
Open Source Consulting | Domain Registration