LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-10-2015, 05:39 AM   #1
Rita Ahmad
LQ Newbie
 
Registered: Mar 2015
Posts: 28
Blog Entries: 3

Rep: Reputation: Disabled
ns 2.35 installation error


hello,

When i execute:

cd ns-allinone-2.35/ && export CC=gcc-4.4 CXX=g++-4.4 && ./install

I get the following error:

============================================================
* Build ns-2.35
============================================================
./install: 535: cd: can't cd to ./ns-2.35
./install: 543: ./install: ./configure: not found
Ns configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.

Any suggestions?
 
Old 05-10-2015, 06:11 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
Please download a new 'ns-allinone-2.35'.

Suggest the 'Nov 2014 update', ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... which can use all gcc / g++ versions 4.4.x ... 5.1.0 :
** No "export CC=gcc-4.4 CXX=g++-4.4", just ./install

.. And please use 'tar' for the un - compression in "/home/name/ns2/" :
( Don't use /home/name/Desktop/ for ns2 )
$ tar xvf ns-allinone-2.35_gcc482.tar.gz


-
 
Old 05-10-2015, 06:41 AM   #3
Rita Ahmad
LQ Newbie
 
Registered: Mar 2015
Posts: 28

Original Poster
Blog Entries: 3

Rep: Reputation: Disabled
ns confuguration failed! Exiting error in ns2.35

Thanks a lot. it is working now

Quote:
Originally Posted by knudfl View Post
Please download a new 'ns-allinone-2.35'.

Suggest the 'Nov 2014 update', ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... which can use all gcc / g++ versions 4.4.x ... 5.1.0 :
** No "export CC=gcc-4.4 CXX=g++-4.4", just ./install

.. And please use 'tar' for the un - compression in "/home/name/ns2/" :
( Don't use /home/name/Desktop/ for ns2 )
$ tar xvf ns-allinone-2.35_gcc482.tar.gz


-
 
Old 05-10-2015, 07:26 AM   #4
Rita Ahmad
LQ Newbie
 
Registered: Mar 2015
Posts: 28

Original Poster
Blog Entries: 3

Rep: Reputation: Disabled
wfrp tcl error in ns2.35

Now, I'm trying to execute the file wfrp_802_15_4.tcl which I took from :

https://code.google.com/p/ns-allinon..._15_4.tcl?r=15


but it gives me the following error:

num_nodes is set 100

(_o14 cmd line 1)
invoked from within
"_o14 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } { incr i } {
set mnode_($i) [$ns node]
}"
(file "wfrp_802_15_4.tcl" line 74)

Could you please tell me what to do?
 
Old 05-10-2015, 10:43 AM   #5
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
Re #4.

You cannot execute a file.tcl, but you can run it with a tcl interpreter.
In ns2 we are using the tcl-otcl interpreter : The executable 'ns' (or 'ns-new-name'.)

The file wfrp_802_15_4.tcl is a WFRP file, see line 11 :
set val(rp) WFRP ;# protocol type

A stock ns-2.35 has no WFRP. (There are "a hundred" other protocols that can be added.)

If you want to run WFRP files ...
First : Save your original 'ns' :
$ cd ns-allinone-2.35/ns-2.35/
$ sudo make install ('make install' will copy 'ns' to /usr/local/bin/)
$ cp ns ns235-orig ( This is your backup of the original 'ns' )
$ sudo cp ns235-orig /usr/local/bin/
$ cd ../nam-1.15/ && sudo make install ( nam is now properly installed too.)
$ cd ../ (To come back to ns-allinone-2.35/ )
$ patch -p0 < WFRP_XFXVanets_imp-protocol_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.35/
$ cp ns ns235-wfrp
$ sudo cp ns235-wfrp /usr/local/bin/
... And you can run wfrp examples with $ ns235-wfrp wfrp_802_15_4.tcl
... etc. etc from the examples 'wfrp-examples.tar.gz'
https://drive.google.com/file/d/0B7S...ew?usp=sharing


All ns2 tcl examples : all_tcl-examples-1.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
.. which is a 36 MB package with ~2,000 examples.tcl .


-

Last edited by knudfl; 05-10-2015 at 10:44 AM.
 
  


Reply

Tags
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
After installation I get, Error 25: Disk read error, Press any key to continue ... mataitsane Linux - Newbie 5 06-06-2012 10:45 AM
Installation error during installation of RHEL 5 using usb drive sunrave Red Hat 1 05-14-2012 05:22 AM
Installation of Binutils(configure:error:installation or configuration problem:C ...) h_r0019 Linux From Scratch 1 05-05-2007 07:40 AM
xen installation error: error 13: invalid or unsupported executable format Niceman2005 Linux - Software 0 01-05-2007 01:51 AM
Error on Fedora core 4 installation - Error informing the kernal about modifications monolegis Fedora 2 02-15-2006 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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