LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-06-2012, 09:05 AM   #46
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
# 45


I have not run 'sudo apt-get install nam'. And the command ./nam did not work. it gives the below error:
xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28/nam-1.11$ ./nam
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"

xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28/nam-1.11$

The nam window appears when only 'nam' is typed. Does it depend on Ubuntu version or something?
 
Old 05-06-2012, 12:39 PM   #47
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
# 46

./nam (1.11) is not supposed to work in ns-allinone-2.28.
( Without the tk-8.4-lastevent.patch for tk8.4.x ).
You can use the 'nam' you installed ( 1.15 ).
If the installed dependencies are not disturbing 'ns'.

Any version of 'nam' can be used for all versions of ns-allinone-2.xx.
And the Ubuntu version doesn't matter.

.

Last edited by knudfl; 05-07-2012 at 08:59 AM.
 
Old 05-07-2012, 08:38 AM   #48
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
ok.Thank You!!!
 
Old 05-18-2012, 12:16 PM   #49
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
make command gives warnings in packet.h

Hi again. When I type "make" command after following the installation procedures for ns-2.28 on Ubuntu 11.04 as mentioned in the previous posts, I get the below warnings:
.
.
.
....
./common/packet.h:247:17: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:248:23: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:250:19: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:251:26: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:254:18: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:256:17: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:258:20: warning: deprecated conversion from string constant to ‘char*’
.
.
.
..
..
Does it affect when we try to simulate something?

Last edited by priya86mohanty; 05-18-2012 at 01:42 PM.
 
Old 05-18-2012, 01:52 PM   #50
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
#41

I installed WiMAX using the procedure mentioned in post #41. There is an example.tcl file which I am unable to run. I get the error saying:

xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28/ns-2.28$ ns example1.tcl
invalid command name "Mac/802_16BS"
while executing
"Mac/802_16BS set window_ 0.05 "
(file "example1.tcl" line 36)
Any idea how to correct it? Below is the tcl script for WiMAX.

### This simulation is an example of combination of wired and wireless
### topologies.


#---------------------------------------------------------------------#
# Define Options #
#---------------------------------------------------------------------#

global opt
set opt(chan) Channel/WirelessChannel; # channel type
set opt(prop) Propagation/TwoRayGround; # radio-propagation model
set opt(netif) Phy/WirelessPhy; # network interface type
set opt(mac) Mac/802_16BS; # MAC type
set opt(ifq) Queue/DropTail/PriQueue; # Interface queue type
set opt(ll) LL; # Link layer type
set opt(ant) Antenna/OmniAntenna; # Antenna type
set opt(x) 250; # X dimension of the topography
set opt(y) 250; # Y dimension ot the topography
set opt(ifqlen) 50; # max packet in ifq
set opt(tr) out.tr; # trace file
set opt(adhocRouting) NOAH; # non ad hoc routing
set opt(stop) 200; # simulation time
set opt(n-bs) 1; # number of bs nodes
set opt(n-ugs) 1; # number of nodes with ugs connections
set opt(n-rtps) 1; # number of nodes with rtps connections
set opt(n-ertps) 1; # number of nodes with rtps connections
set opt(n-nrtps) 1; # number of nodes with nrtps connections
set opt(n-be) 1; # number of nodes with be connections
set opt(n-nodes) [expr $opt(n-ugs)+$opt(n-rtps)+$opt(n-ertps)+$opt(n-nrtps)+$opt(n-be)];
set base_seed [lindex $argv 0];
set BW 40000000; #channel bandwidth


#window for the uplink scheduling mechanism
#(see Globecom 2007 paper: Uplink Scheduling with Quality of Service in IEEE 802.16 Networks)
Mac/802_16BS set window_ 0.05

set param(dir) "."

global defaultRNG
$defaultRNG seed predef [expr $base_seed*2]

Phy/WirelessPhy set bandwidth_ $BW

#QoS parameters
#UGS
set ugs_grant_interval 0.020; # data grants interval (seconds)
set ugs_grant_size 66

#rtPS
set rtps_grant_interval 0.020; # unicast request grant interval (seconds)
set rtps_delay 0.100; # maximum delay request (seconds)
set rtps_aggreq_interval 5; # aggregate request interval (in number of requests)
set rtps_minBW 200000 ; # minimum bandwith request (bytes) - baseball video

#ertPS
set ertps_grant_interval 0.020; # data grants interval (seconds)
set ertps_grant_size 200; # initial data grant interval (bytes)

#nrtPS
set nrtps_grant_interval 0.050; # unicast request grant interval (seconds)
set nrtps_minBW 200000; # minimum bandwith request (bytes)
set nrtps_aggreq_interval 10; # aggregate request interval (in number of requests)

#BE
set be_grant_interval 2.0; # unicast request grant interval (seconds)
set be_aggreq_interval 10; # aggregate request interval (in number of requests)


set ns_ [new Simulator]
# set up for hierarchical routing
$ns_ node-config -addressType hierarchical
AddrParams set domain_num_ 2 ;# number of domains - one for wired and one for wireless
lappend cluster_num 1 1 ;# number of clusters in each domain
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 1 [expr $opt(n-nodes) + $opt(n-bs)] ;# number of nodes in each cluster
AddrParams set nodes_num_ $eilastlevel

# set trace files
set tracefd [open "out.tr" w]
$ns_ trace-all $tracefd

# create topography object
set topo [new Topography]
$topo load_flatgrid $opt(x) $opt(y)

# create God
create-god [expr $opt(n-nodes) + $opt(n-bs)]

# create wired node
set W [$ns_ node 0.0.0]

$ns_ node-config -adhocRouting $opt(adhocRouting) \
-llType $opt(ll) \
-macType $opt(mac) \
-ifqType $opt(ifq) \
-ifqLen $opt(ifqlen) \
-antType $opt(ant) \
-propInstance [new $opt(prop)] \
-phyType $opt(netif) \
-channel [new $opt(chan)] \
-topoInstance $topo \
-wiredRouting ON \
-agentTrace ON \
-routerTrace OFF \
-macTrace ON


set temp {1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.0.10}

#BS is the cmts node
set BS [$ns_ node [lindex $temp 0]]
$BS random-motion 0

#configure-channel "updatarate ticks-per-minislot maxburst upstream-overhead downdatarate downstream-overhead"
$BS configure-channel $BW 8 1500 72 $BW 32
#configure-mapparams time-covered map-interval num-contention-slots-permap
#num-management-slots-permap bkoff-start bkoff-end proportion map_lookahead
$BS configure-mapparams 0.005 0.005 1 1 3 8 0 0
#configure-mgmtparams sync-msg-interval rng-msg-interval ucd-msg-interval
$BS configure-mgmtparams 2.0 1.0 3.0

#configure for mobilenodes
set opt(mac) Mac/802_16SS
$ns_ node-config -wiredRouting OFF \
-macType $opt(mac)

#channel configuration for subscriber stations
for {set j 0} {$j < $opt(n-nodes)} {incr j} {
set node_($j) [ $ns_ node [lindex $temp [expr $j+1]] ]
$node_($j) base-station [AddrParams addr2id [$BS node-addr]]
# configure-ss priority rng_msg_interval ss_id debug on/off
#Note: we will number the SS's from 1 on up ...
$node_($j) configure-ss 1 1.0 $j 0
# configure-channel "updatarate ticks maxburst upstream-overhead downdatarate downstream-overhead"
$node_($j) configure-channel $BW 8 1500 72 $BW 32
}


#---------------------------------------------------------------------#
# Configure the connections #
#---------------------------------------------------------------------#

set ugs_init 0
set ugs_end $opt(n-ugs)
#ugs connections configuration
for {set j $ugs_init} {$j < $ugs_end} {incr j} {
#configure-upflows node "default schedtype dst-node pkt-type phs-type frag-enable concat-enable concat_thresh piggy
# grant-size grant-interval queue_size latency minimum-bandwidth aggregate-request-interval debug rate_control rate"
$node_($j) configure-upflows $node_($j) "0 0 $W 29 4 0 0 0 0 $ugs_grant_size $ugs_grant_interval 10000 0 0 0 0 0 0"
$node_($j) configure-upflows $node_($j) "1 4 $W 54 4 0 1 1000 1 1500 0 10000 0 0 100 0 0 0"
#configure-downflows node "default sched-type src-node pkt-type phs-type grant-size grant-interval
#queue_size latency minimum-bandwidth "
$node_($j) configure-downflows $node_($j) "1 4 $BS 54 4 0 0 10000 0 0"
$node_($j) startsim
}

set rtps_init $ugs_end
set rtps_end [expr $ugs_end+$opt(n-rtps)]
#rtPS connections configuration
for {set j $rtps_init} {$j < $rtps_end} {incr j} {
#configure-upflows node "default schedtype dst-node pkt-type phs-type frag-enable concat-enable concat_thresh piggy
# grant-size grant-interval queue_size latency minimum-bandwidth aggregate-request-interval debug rate_control rate"
$node_($j) configure-upflows $node_($j) "0 1 $W 1 4 1 1 20000 0 0 $rtps_grant_interval 10000 $rtps_delay $rtps_minBW $rtps_aggreq_interval 0 0 0"
$node_($j) configure-upflows $node_($j) "1 4 $W 54 4 1 1 1000 1 0 0 10000 0 0 100 0 0 0"
#configure-downflows node "default sched-type dst-node pkt-type phs-type grant-size grant-interval
#queue_size latency minimum-bandwidth "
$node_($j) configure-downflows $node_($j) "1 3 $BS 54 4 0 0 10000 0 0"
$node_($j) startsim
}

set ertps_init $rtps_end
set ertps_end [expr $rtps_end+$opt(n-ertps)]
#ertPS connections configuration
for {set j $ertps_init} {$j < $ertps_end} {incr j} {
#configure-upflows node "default schedtype dst-node pkt-type phs-type frag-enable concat-enable concat_thresh piggy
# grant-size grant-interval queue_size latency minimum-bandwidth aggregate-request-interval debug rate_control rate"
$node_($j) configure-upflows $node_($j) "0 2 $W 63 4 0 1 20000 0 $ertps_grant_size $ertps_grant_interval 10000 0 0 0 0 0 0"
$node_($j) configure-upflows $node_($j) "1 4 $W 54 4 1 1 1000 1 0 0 10000 0 0 100 0 0 0"
#configure-downflows node "default sched-type dst-node pkt-type phs-type grant-size grant-interval
#queue_size latency minimum-bandwidth "
$node_($j) configure-downflows $node_($j) "1 3 $BS 54 4 0 0 10000 0 0"
$node_($j) startsim
}

set nrtps_init [expr $ertps_end]
set nrtps_end [expr $ertps_end+$opt(n-nrtps)]
#nrtPS connections configuration
for {set j $nrtps_init} {$j < $nrtps_end} {incr j} {
#configure-upflows node "default schedtype dst-node pkt-type phs-type frag-enable concat-enable concat_thresh piggy
# grant-size grant-interval queue_size latency minimum-bandwidth aggregate-request-interval debug rate_control rate"
$node_($j) configure-upflows $node_($j) "0 3 $W 0 4 1 1 20000 1 0 $nrtps_grant_interval 10000 0 $nrtps_minBW $nrtps_aggreq_interval 0 0 0"
$node_($j) configure-upflows $node_($j) "1 4 $BS 54 4 1 1 1000 1 0 0 10000 0 0 100 0 0 0"
#configure-downflows node "default sched-type dst-node pkt-type phs-type grant-size grant-interval
#queue_size latency minimum-bandwidth "
$node_($j) configure-downflows $node_($j) "1 4 $BS 54 4 0 0 10000 0 0"
$node_($j) startsim
}

set be_init [expr $nrtps_end]
set be_end $opt(n-nodes)
#BE connections configuration
for {set j $be_init} {$j < $be_end} {incr j} {
#configure-upflows node "default schedtype dst-node pkt-type phs-type frag-enable concat-enable concat_thresh piggy
# grant-size grant-interval queue_size latency minimum-bandwidth aggregate-request-interval debug rate_control rate"
$node_($j) configure-upflows $node_($j) "0 4 $W 0 4 1 1 20000 1 0 $be_grant_interval 10000 0 0 $be_aggreq_interval 0 0 0"
$node_($j) configure-upflows $node_($j) "1 4 $BS 54 4 1 1 1000 1 0 0 10000 0 0 100 0 0 0"
#configure-downflows node "default sched-type dst-node pkt-type phs-type grant-size grant-interval
#queue_size latency minimum-bandwidth "
$node_($j) configure-downflows $node_($j) "1 4 $BS 54 4 0 0 10000 0 0"
#configure-mapparams cmts-node time-covered map-interval num-contention-slots permap
#num-sm-slots permap short-grant-limit long-grant-limit bkoff-start bkoff-end
$node_($j) startsim
}

$BS startsim

#create links between wired and BS nodes
$ns_ duplex-link $W $BS 100Mb 2ms DropTail


#---------------------------------------------------------------------#
# Configure the traffic flows #
#---------------------------------------------------------------------#

#set up UGS uplink flows
set ugs_ul_sink [new Agent/LossMonitor]
$ns_ attach-agent $W $ugs_ul_sink

for {set j $ugs_init} {$j < $ugs_end} {incr j} {
set udp_ul_($j) [new Agent/UDP]
$udp_ul_($j) set packetSize_ 66
$udp_ul_($j) set class_ 0
$ns_ attach-agent $node_($j) $udp_ul_($j)
$ns_ connect $udp_ul_($j) $ugs_ul_sink
set voice_ul_($j) [new Application/Traffic/Exponential]
$voice_ul_($j) set packetSize_ 66
#rate -> packets 66 bytes in length are generated at fixed intervals of 20ms
$voice_ul_($j) set rate_ 26.4Kb
$voice_ul_($j) set burst_time_ 1.2
$voice_ul_($j) set idle_time_ 1.8
$voice_ul_($j) attach-agent $udp_ul_($j)
set rng_ul_($j) [new RNG]
$rng_ul_($j) seed predef [expr $base_seed+$j]
$voice_ul_($j) use-rng $rng_ul_($j)
}

# random number generator
set gna_ugs_ul [new RNG]
$gna_ugs_ul seed predef [expr $base_seed + 1]

for {set j $ugs_init} {$j < $ugs_end} {incr j} {
set stime [expr 0.1 + [$gna_ugs_ul uniform 0 1]]
$ns_ at $stime "$voice_ul_($j) start"
}

# set up rtPS uplink flows
set rtps_ul_sink [new Agent/LossMonitor]
$ns_ attach-agent $W $rtps_ul_sink

set trace_file [new Tracefile]
$trace_file filename nsvideo_baseball.dat

for {set j $rtps_init} {$j < $rtps_end} {incr j} {
set udp_ul_($j) [new Agent/UDP]
#$udp_($j) set packetSize_ $packet_size
$ns_ attach-agent $node_($j) $udp_ul_($j)
$ns_ connect $udp_ul_($j) $rtps_ul_sink
set video_ul_($j) [new Application/Traffic/Trace]
$video_ul_($j) attach-tracefile $trace_file
$video_ul_($j) attach-agent $udp_ul_($j)
}

# random number generator
set gna_rtps_ul [new RNG]
$gna_rtps_ul seed predef [expr $base_seed + 2]

for {set j $rtps_init} {$j < $rtps_end} {incr j} {
set stime [expr 0.1 + [$gna_rtps_ul uniform 0 1]]
$ns_ at $stime "$video_ul_($j) start"
}


#set up ertPS uplink flows
set ertps_ul_sink [new Agent/LossMonitor]
$ns_ attach-agent $W $ertps_ul_sink
for {set j $ertps_init} {$j < $ertps_end} {incr j} {
set udp_ul_($j) [new Agent/UDP]
$ns_ attach-agent $node_($j) $udp_ul_($j)
$ns_ connect $udp_ul_($j) $ertps_ul_sink
set voip_ul_($j) [new Application/Traffic/Exponential]
$voip_ul_($j) set packetSize_ 66
#rate -> packets 66 bytes in length are generated at fixed intervals of 20ms
$voip_ul_($j) set rate_ 26.4Kb
$voip_ul_($j) set burst_time_ 1.2
$voip_ul_($j) set idle_time_ 1.8
$voip_ul_($j) attach-agent $udp_ul_($j)
set rng_ul_($j) [new RNG]
$rng_ul_($j) seed predef [expr $base_seed+$j]
$voip_ul_($j) use-rng $rng_ul_($j)


}

# random number generator
set gna_ertps_ul [new RNG]
$gna_ertps_ul seed predef [expr $base_seed + 3]

for {set j $ertps_init} {$j < $ertps_end} {incr j} {
set stime [expr 0.1 + [$gna_ertps_ul uniform 0 1]]
$ns_ at $stime "$voip_ul_($j) start"
}

#set up nrtPS uplink flows
set nrtps_ul_sink [new Agent/LossMonitor]
$ns_ attach-agent $W $nrtps_ul_sink
for {set j $nrtps_init} {$j < $nrtps_end} {incr j} {
set tcp_ul_($j) [new Agent/TCP]
$ns_ attach-agent $node_($j) $tcp_ul_($j)
$ns_ connect $tcp_ul_($j) $nrtps_ul_sink

set ftp_ul_($j) [new Application/FTP]
$ftp_ul_($j) attach-agent $tcp_ul_($j)
}

# random number generator
set gna_nrtps_ul [new RNG]
$gna_nrtps_ul seed predef [expr $base_seed + 4]

for {set j $nrtps_init} {$j < $nrtps_end} {incr j} {
set stime [expr 0.1 + [$gna_nrtps_ul uniform 0 1]]
$ns_ at $stime "$ftp_ul_($j) start"
}


#set up BE uplink flows
set be_ul_sink [new Agent/LossMonitor]
$ns_ attach-agent $W $be_ul_sink
for {set j $be_init} {$j < $be_end} {incr j} {
set be_tcp_ul_($j) [new Agent/TCP]
$ns_ attach-agent $node_($j) $be_tcp_ul_($j)
$ns_ connect $be_tcp_ul_($j) $be_ul_sink

set be_ftp_ul_($j) [new Application/FTP]
$be_ftp_ul_($j) attach-agent $be_tcp_ul_($j)

}

# random number generator
set gna_be_ul [new RNG]
$gna_be_ul seed predef [expr $base_seed + 5]

for {set j $be_init} {$j < $be_end} {incr j} {
set stime [expr 0.1 + [$gna_be_ul uniform 0 1]]
$ns_ at $stime "$be_ftp_ul_($j) start"
}



for {set i 0} {$i < $opt(n-nodes) } {incr i} {
$ns_ at $opt(stop).0000010 "$node_($i) reset";
}
$ns_ at $opt(stop).0000010 "$BS reset";

$ns_ at $opt(stop).0000011 "puts \"NS EXITING...\" ; $ns_ halt"

puts "Starting Simulation..."
$ns_ run

Quote:
Originally Posted by priya86mohanty View Post
OK. Do you have any idea on how a WiMAX module can be installed on ns-2.28? I have the module with me. I am facing the error during make clean.
 
Old 05-19-2012, 09:25 AM   #51
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
#50

HI, please help me with the above post if possible and as soon as possible. I am stuck with my project. Unable to run the tcl scripts related to wimax! i downloaded the module from "http://www.lrc.ic.unicamp.br/wimax_ns2/" and installed it on ns-.2.28. ns-2.28 installation was a success from previous posts. I folowd the procedure provided for wimax module installation. After copying all the files to ns-2.28, i did ./configure, make clean , make. The .o files were generated and Makefile.in was complied successfully. But unfortunately when I try running the example.tcl it gives me an error.

xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28/ns-2.28$ ns example1.tcl
invalid command name "Mac/802_16BS"
while executing
"Mac/802_16BS set window_ 0.05 "
(file "example1.tcl" line 36)

Guess it is not invoking the function from the .cc files I am not able to make out the problem! Please help.

Thanks.
 
Old 09-19-2012, 10:27 AM   #52
kh.bagi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Rep: Reputation: Disabled
Does anybody know where i can get gcc41 file?
Im using ubuntu 12 64bits and want to install ns2.28

Since sudo apt-get install g++-4.1 gcc-4.1 dont work, how can i install? because it shows Package g++-4.1 is not available, but is referred to by another package something like this.

thanks
 
Old 09-19-2012, 12:09 PM   #53
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Post # 52, @kh.bagi : No old Ubuntu compilers will work in "12.04".

The 32 bits Ubuntu (12.04) is recommended for ns2 etc.
Not the 64bits.

There is a 32bits gcc41 / g++41 for Ubuntu 12.04 - 32bits.
Please see post #18 here ..
http://www.linuxquestions.org/questi...ml#post4782620

.
 
Old 09-19-2012, 01:05 PM   #54
kh.bagi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Rep: Reputation: Disabled
then, i cant install on my 64bit machine??? is there any other way than removing my os and reinstall again?
 
Old 09-21-2012, 06:55 AM   #55
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
# 54

If you want to keep your current OS, you can install
Ubuntu 12.04.1 - i386 on a spare partition.
 
Old 11-08-2012, 02:24 AM   #56
linh.to
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
Hi knudfl,

Thanks for your best support help in ns2 installation.

I am trying to install ns2-2.28 in ubuntu 10.04 LTS.

However, after trying your steps from scratch:

1, sudo apt-get upgrade
2, sudo apt-get install g++ autoconf automake libtool libxmu-dev
3, tar xvf ns-allinone-2.28.tar.gz
4, patch -p0 < ns228-gcc40.patch
5, patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter> <Enter>
6, export CC=gcc41 CXX=g++41
7, cd ns-allinone-2.28/
8, ./install

It happens an error everytime:

"
make: gcc41: Command not found
make: *** [gb_io.o] Error 127
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..
============================================================
* Build zlib
============================================================
Building static library libz.a version 1.1.4 with gcc41.
Checking for unistd.h... No.
Checking for errno.h... No.
Checking for mmap support... No.
gcc41 -O -DNO_ERRNO_H -c -o example.o example.c
make: gcc41: Command not found
make: *** [example.o] Error 127
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.4.5
============================================================
creating cache ./config.cache
checking whether to use symlinks for manpages... no
checking compression for manpages... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
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.

"
 
Old 11-08-2012, 04:37 AM   #57
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Post # 56, @ linh.to : Welcome to LQ.

gcc41 / g++41 is used only when you install it. Please see post # 6 here ..
http://www.linuxquestions.org/questi...asim-932264/#6
And : gcc-4.1 / g++-4.1 is used when you install the Ubuntu version :
sudo apt-get install g++-4.1

... Then the install command is : export CC=gcc-4.1 CXX=g++-4.1 && ./install


There is no difference in the result at using the two similar gcc41 / gcc-4.1:
Both are version 4.1.2 .
(The gcc41/g++41 was created mainly for Ubuntu 11.04, where no old Ubuntu gcc works.)


.

Last edited by knudfl; 11-08-2012 at 04:45 AM.
 
Old 01-21-2013, 01:00 PM   #58
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
EDIT : This post is an answer to post #3 @zana, here
http://www.linuxquestions.org/questi...8/#post4874632
→ → The @zana posts / answers were moved to a new thread. Except this post.


" && " means : Waits until the previous command has finished all actions,
then the next command is executed.
Like : <command 1> && <command 2> && <command 3> && <command 4> ...

→ → You can use 'cd ns-allinone-2.28/ && ./install',
or do : 1) cd ns-allinone-2.28/
2) ./install


-

Last edited by knudfl; 01-22-2013 at 04:30 AM.
 
Old 03-13-2013, 11:02 PM   #59
lisaliu
LQ Newbie
 
Registered: Mar 2013
Posts: 1

Rep: Reputation: Disabled
Hello!I installed the above method to install, but the following error, please help me!


xcp/xcpq.cc:36: error: ‘const double XCPQueue::ALPHA_’ previously defined here
xcp/xcpq.cc:64: error: redefinition of ‘const double XCPQueue::BETA_’
xcp/xcpq.cc:37: error: ‘const double XCPQueue::BETA_’ previously defined here
xcp/xcpq.cc:65: error: redefinition of ‘const double XCPQueue::GAMMA_’
xcp/xcpq.cc:38: error: ‘const double XCPQueue::GAMMA_’ previously defined here
xcp/xcpq.cc:66: error: redefinition of ‘const double XCPQueue::XCP_MAX_INTERVAL’
xcp/xcpq.cc:39: error: ‘const double XCPQueue::XCP_MAX_INTERVAL’ previously defined here
xcp/xcpq.cc:67: error: redefinition of ‘const double XCPQueue::XCP_MIN_INTERVAL’
xcp/xcpq.cc:40: error: ‘const double XCPQueue::XCP_MIN_INTERVAL’ previously defined here
xcp/xcpq.cc:69: error: redefinition of ‘const double XCPQueue::BWIDTH’
xcp/xcpq.cc:42: error: ‘const double XCPQueue::BWIDTH’ previously defined here
xcp/xcpq.cc:72: error: redefinition of ‘const double XCPQueue::ALPHA_’
xcp/xcpq.cc:36: error: ‘const double XCPQueue::ALPHA_’ previously defined here
xcp/xcpq.cc:73: error: redefinition of ‘const double XCPQueue::BETA_’
xcp/xcpq.cc:37: error: ‘const double XCPQueue::BETA_’ previously defined here
xcp/xcpq.cc:74: error: redefinition of ‘const double XCPQueue::GAMMA_’
xcp/xcpq.cc:38: error: ‘const double XCPQueue::GAMMA_’ previously defined here
xcp/xcpq.cc:75: error: redefinition of ‘const double XCPQueue::XCP_MAX_INTERVAL’
xcp/xcpq.cc:39: error: ‘const double XCPQueue::XCP_MAX_INTERVAL’ previously defined here
xcp/xcpq.cc:76: error: redefinition of ‘const double XCPQueue::XCP_MIN_INTERVAL’
xcp/xcpq.cc:40: error: ‘const double XCPQueue::XCP_MIN_INTERVAL’ previously defined here
xcp/xcpq.cc:78: error: redefinition of ‘const double XCPQueue::BWIDTH’
xcp/xcpq.cc:42: error: ‘const double XCPQueue::BWIDTH’ previously defined here
make: *** [xcp/xcpq.o] Error 1
Ns make failed!
 
Old 03-13-2013, 11:33 PM   #60
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Post # 59, @lisaliu : Welcome to LQ. ..

Some more information is required : OS name / version / architecture, please.
Like Fedora 17 - i686 , Ubuntu 12.04 - i686 , etc. etc.
 
  


Reply

Tags
ns228, ns228#15, ns228-patch


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problem installing ubuntu 8.10 warun Ubuntu 2 05-27-2009 01:41 AM
Problem Installing Ubuntu 8.10 edgartech Ubuntu 2 11-05-2008 02:28 AM
Problem installing Ubuntu 8 Juvencio Linux - Newbie 5 07-05-2008 02:30 AM
problem with installing ubuntu 7.04... opmeena Linux - Newbie 4 01-12-2008 10:48 AM
Installing Ubuntu Problem LinuxNewbie092 Ubuntu 5 03-29-2007 05:09 PM


All times are GMT -5. The time now is 03:11 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration