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.
Once i patch CRCN and do make in cd ns-allinone-2.31/ns-2.31/ directory it shows the following error:
In function `hdr_wcett::access(Packet const*)':
cmu-trace.cc.text._ZN9hdr_wcett6accessEPK6Packet[_ZN9hdr_wcett6accessEPK6Packet]+0x7): undefined reference to `hdr_wcett:ffset_'
collect2: error: ld returned 1 exit status
make: *** [ns] Error 1
Once i patch CRCN and do make in cd ns-allinone-2.31/ns-2.31/ directory it shows the following error:
In function `hdr_wcett::access(Packet const*)':
cmu-trace.cc.text._ZN9hdr_wcett6accessEPK6Packet[_ZN9hdr_wcett6accessEPK6Packet]+0x7): undefined reference to `hdr_wcett:ffset_'
collect2: error: ld returned 1 exit status
make: *** [ns] Error 1
If you have done the patching correctly :
$ cd ns-allinone-2.31/ && tar xvf crcn-ns2.31.tar.gz https://drive.google.com/file/d/0B7S...it?usp=sharing
... I guess you are using the wrong compiler.
ns-allinone-2.31 requires gcc/g++ version 4.1.2 .
Or version 3.4.6 if it's a Fedora OS.
Please specify your OS :
1) uname -m <Enter>
2) cat /etc/*release* <Enter>
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
Post #5 . Please read post #3 : ".. version 3.4.6 if it's a Fedora OS."
I.e. # yum install compat-gcc-34-c++
The install commands are then ..
1) $ cd ns-allinone-2.31/ && tar xvf crcn-ns2.31.tar.gz
2) $ export CC=gcc34 CXX=g++34 && ./install
.... which you would know if you did what's suggested in #3 :
! ! ! read http://www.linuxquestions.org/questions/tags/crcn/
Post #4 : `CRCN.jar' is a GUI application.
"crcn-ns2.31.tar.gz" is simply the CRCN patch repacked for an easier install.
when i do as above and ./install i get the following:
* Build Tk8.4.14
============================================================
./install: line 447: ./configure: Permission denied
tk8.3.2 configuration failed! Exiting ...
Tk is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
[lab@localhost ns-allinone-2.31]$
I had tk8.4.14 installed previously.what should i do??
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
# 7 .
Quote:
./install: line 447: ./configure: Permission denied
"Permission denied" means that you probably corrupted ns-allinone-2**
at unpack. Did you do tar xvf ns-allinone-2.31.tar.gz as root ?
Solution : Delete ns-allinone-2.31/ and start from scratch in
/home/leki/(<folder>) , and don't use "su" for any command.
`root' permissions are to be used only for 'make install'.
hi..I started from beginning as you said.
My ns and nam seems to work fine but i got following error:
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-diffusion3 ./test-all-smac ./test-all-smac-multihop ./test-all-manual-routing ./test-all-session ./test-all-links ./test-all-wireless-shadowing ./test-all-wireless-lan-aodv ./test-all-wireless-tdma ./test-all-wireless-gridkeeper ./test-all-wireless-diffusion ./test-all-wireless-lan-newnode ./test-all-satellite ./test-all-WLtutorial ./test-all-tagged-trace ./test-all-wpan ./test-all-energy
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.
what should i do??will it lead to any serious problems if i dont correct it???
jTabbedPane1_stateChanged(ChangeEvent e) called.
java.io.FileNotFoundException: (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
at nsui.CFrame.TopoOK_actionPerformed(CFrame.java:2260)
at nsui.CFrame.access$16(CFrame.java:2113)
at nsui.CFrame$23.actionPerformed(CFrame.java:1077)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6290)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6055)
at java.awt.Container.processEvent(Container.java:2039)
at java.awt.Component.dispatchEventImpl(Component.java:4653)
at java.awt.Container.dispatchEventImpl(Container.java:2097)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
at java.awt.Container.dispatchEventImpl(Container.java:2083)
at java.awt.Window.dispatchEventImpl(Window.java:2482)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:621)
at java.awt.EventQueue$2.run(EventQueue.java:619)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
OUTPUT>#
OUTPUT># nodes: 10, max conn: 5, send rate: 0.0, seed: 1
OUTPUT>#
OUTPUT>#
OUTPUT># 1 connecting to 2 at time 2.5568388786897245
OUTPUT>#
OUTPUT>set tcp_(0) [$ns_ create-connection TCP $node_(1) TCPSink $node_(2) 0]
OUTPUT>$tcp_(0) set window_ 32
OUTPUT>$tcp_(0) set packetSize_ 512
OUTPUT>set ftp_(0) [$tcp_(0) attach-source FTP]
OUTPUT>$ns_ at 2.5568388786897245 "$ftp_(0) start"
OUTPUT>#
OUTPUT># 4 connecting to 5 at time 56.333118917575632
OUTPUT>#
OUTPUT>set tcp_(1) [$ns_ create-connection TCP $node_(4) TCPSink $node_(5) 0]
OUTPUT>$tcp_(1) set window_ 32
OUTPUT>$tcp_(1) set packetSize_ 512
OUTPUT>set ftp_(1) [$tcp_(1) attach-source FTP]
OUTPUT>$ns_ at 56.333118917575632 "$ftp_(1) start"
OUTPUT>#
OUTPUT># 4 connecting to 6 at time 146.96568928983328
OUTPUT>#
OUTPUT>set tcp_(2) [$ns_ create-connection TCP $node_(4) TCPSink $node_(6) 0]
OUTPUT>$tcp_(2) set window_ 32
OUTPUT>$tcp_(2) set packetSize_ 512
OUTPUT>set ftp_(2) [$tcp_(2) attach-source FTP]
OUTPUT>$ns_ at 146.96568928983328 "$ftp_(2) start"
OUTPUT>#
OUTPUT># 6 connecting to 7 at time 55.634230382570173
OUTPUT>#
OUTPUT>set tcp_(3) [$ns_ create-connection TCP $node_(6) TCPSink $node_(7) 0]
OUTPUT>$tcp_(3) set window_ 32
OUTPUT>$tcp_(3) set packetSize_ 512
OUTPUT>set ftp_(3) [$tcp_(3) attach-source FTP]
OUTPUT>$ns_ at 55.634230382570173 "$ftp_(3) start"
OUTPUT>#
Process exitValue: 0
OUTPUT># 7 connecting to 8 at time 29.546173154165118
OUTPUT>#
OUTPUT>set tcp_(4) [$ns_ create-connection TCP $node_(7) TCPSink $node_(8) 0]
OUTPUT>$tcp_(4) set window_ 32
OUTPUT>$tcp_(4) set packetSize_ 512
OUTPUT>set ftp_(4) [$tcp_(4) attach-source FTP]
OUTPUT>$ns_ at 29.546173154165118 "$ftp_(4) start"
OUTPUT>#
OUTPUT>#Total sources/connections: 4/5
OUTPUT>#
Sir i have installed jdk-1.6.0_31-fcs.i586.rpm.But guess mine is i686.Is the java problem because of that?? should i install jdk-1.6.0_31-fcs.i686.rpm??
Can you help me with this? If i exexcute as ns test.tcl then it runs ok.But i dont know why the problem is in GUI.My test.tcl and random.tcl files are as follows
set val(chan) Channel/WirelessChannel ; #Channel Type
set val(prop) Propagation/TwoRayGround ; #Radio propagation model
set val(netif) Phy/WirelessPhy ; #Network interface type
set val(ant) Antenna/OmniAntenna ; #Antenna model
set val(rp) AODV ;#Routing Protocol
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ifqlen) 50 ;# max packet in ifq
set val(mac) Mac/802_11 ;# MAC type
set val(ll) LL ;# link layer type
set val(nn) 10 ;# number of mobilenodes
set val(ni) 2 ;# number of interfaces
set val(cp) /home/lab/ns-allinone-2.31/ns-2.31/random.tcl ; # topology traffic file
set val(stop) 50 ;# simulation time
# ==================================================================
# Main Program
# ======================================================================
# Initialize Global Variables
set ns_ [new Simulator]
set tracefd [open /home/lab/ns-allinone-2.31/ns-2.31/test.tr w]
$ns_ trace-all $tracefd
# set up topography object
set topo [new Topography]
$topo load_flatgrid 1000 1000
#create nam
set namtrace [open /home/lab/ns-allinone-2.31/ns-2.31/test.nam w]
$ns_ namtrace-all-wireless $namtrace 1000 1000
# Create God
set god_ [create-god $val(nn)]
# configure node
$ns_ node-config -adhocRouting $val(rp) -llType $val(ll) -macType $val(mac) -ifqType $val(ifq) -ifqLen $val(ifqlen) -antType $val(ant) -propType $val(prop) -phyType $val(netif) -topoInstance $topo -agentTrace ON -routerTrace ON -macTrace ON -movementTrace ON
for {set i 0} { $i < $val(ni)} {incr i} {
set chan_($i) [new $val(chan)]
}
#configure for interface and channel
$ns_ node-config -ifNum $val(ni) -channel $chan_(0)
for {set i 0} {$i < $val(ni) } {incr i} {
$ns_ add-channel $i $chan_($i)
}
for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) set recordIfall 1
$node_($i) random-motion 0 ;# disable random motion
}
source $val(cp) ; #source topology and traffic file generated by others
# Tell nodes when the simulation ends
for {set i 0} {$i < $val(nn) } {incr i} {
$ns_ at $val(stop).0 "$node_($i) reset";
}
$ns_ at $val(stop).0002 "puts \"NS EXITING...\" ; $ns_ halt "
proc stop {} {
global ns_ tracefd
$ns_ flush-trace
close $tracefd
exec nam /home/lab/ns-allinone-2.31/ns-2.31/test.nam &
exit 0
}
puts "Starting Simulation..."
$ns_ run
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.