-------------------------------------------------------------------------------------------------------------------------------
harshit@harshit-HP-Pavilion-Notebook:~/Downloads$ ns blackhole.tcl
num_nodes is set 25
INITIALIZE THE LIST xListHead
ns: _o171 blackhole:
(_o171 cmd line 1)
invoked from within
"_o171 cmd blackhole"
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 "_o171" line 2)
(SplitObject unknown line 2)
invoked from within
"_o171 blackhole"
harshit@harshit-HP-Pavilion-Notebook:~/Downloads$
-------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------
checking for libtk8.5... -L../lib -ltk8.5
checking for tk.tcl... ../lib/tk8.5
checking for X11 header files
can't find X includes
otcl-1.14 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.
--------------------------------------------------------------------------------------------------------------------------------------
Fedora, CentOS:
# yum install gcc-c++ autoconf automake libtool libXmu-devel
Xgraph https://drive.google.com/file/d/0B7S255p3kFXNZXdGclBSZXcxS0k/view?usp=sharing
Download, and install:
# cd Downloads/ && yum install ./xgraph-12.1-1.pclos2013.x86_64.rpm
Debian, Ubuntu:
$ sudo apt install g++ autoconf libtool libxmu-dev xgraph
tar xvf ns-allinone-2.35_gcc5.tar.gz // 2014 - 2017 update
https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns-allinone-2.35/
patch -p0 < blackholeaodv2013-ns235_1.patch
https://drive.google.com/file/d/0B7S255p3kFXNWWVDZzd2ZC14akE/view?usp=sharing
./install // gcc, g++ must be g++-5.x or earlier
cd ns-2.35/
cp ns ns-blackhole
sudo cp ns-blackhole /usr/local/bin/
cd ../nam-1.15/
sudo make install
--------------------- Simulation -------------
ns-blackhole blackhole20-1.tcl
apt-cache search g++
sudo apt install g++ g++-5 g++-4.8
harshit@harshit-HP-Pavilion-Notebook:~/ns-allinone-2.35/nam-1.15$ ns-blackhole blackhole20-1.tcl-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
num_nodes is set 21
INITIALIZE THE LIST xListHead
loading random connection pattern...
couldn't read file "./scen-20": no such file or directory
while executing
"source.orig ./scen-20"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source ./scen-20"
(file "blackhole20-1.tcl" line 69)
harshit@harshit-HP-Pavilion-Notebook:~/ns-allinone-2.35/nam-1.15$
--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.
$ cd ex-2005-2013__05.17/ && ns-blackhole blackhole20-1.tcl
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
$ ns235-black-64 atk3.tcl
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.
tcl
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
patch -p0 < blackholeaodv2013-ns235_1.patch
and follow your instruction but it not working, the message as below
arief-pc@ubuntu:~/Documents/blackhole/ex-2005-2013__05.17$ ns235-black-64 atk3.tcl tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns-allinone-2.35/patch -p0 < blackholeaodv2013-ns235_2.patch
https://drive.google.com/file/d/0B7S255p3kFXNMk1uX2N5VmtXeTA/view?usp=sharing
./install
cd ns-2.35/
cp ns ns-black
sudo cp ns-black
-------------- Simulation -------------
ns-black Aska123-f__Blacktcl2.tcl
thanks sir