-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
84 lines (64 loc) · 2.68 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
1. Introduction
----------------
Ns-allinone is a package which contains required components and some of
optional components used in running ns. The package contains an
"install" script to automatically configure, compile and install these
components. If you haven't installed ns before and want to quickly try
ns out, ns-allinone may be easier than getting all the pieces by hand.
Currently the package contains:
- Tcl Tcl release 8.5.8 (required component)
- Tk Tk release 8.5.8 (required component)
- Otcl otcl release 1.14 (required component)
- TclCL tclcl release 1.20 (required component)
- Ns ns release 2.35 (required component)
- Nam Nam release 1.14 (optional component)
- Xgraph xgraph version 12 (optional component)
- GT-ITM Georgia Tech Internetwork
Topology Modeler (optional component)
- SGB Stanford GraphBase
package (optional component)
- CWEB CWeb version 1.0 (?) (optional component)
- ZLib zlib version 1.2.3 (optional component)
2. FEATURES IN ns-allinone-2.35
-------------------------------
Features in this version include:
- Update to Tcl/Tk 8.5 series (becoming the default Tcl/Tk version on
many platforms)
- Update for Cygwin-1.7.1 release for Windows
- New features for ns-2.35 release (see the nmks-2/CHANGES.html file)
3. Installing the package
--------------------------
sudo apt install build-essential autoconf automake libxmu-dev xorg-dev
sudo apt install g++-5
tar zxfv ns-allinone-2.35.tar.gz
cd ns-allinone-2.35/
vi ns-2.35/linkstate/ls.h
void eraseAll() { erase(baseMap::begin(), baseMap::end()); }
void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }
export CC=gcc-5 CXX=g++-5 && ./install
// if Ubuntu 16.04, the build command is './install' only
git init
git remote add origin https://github.com/davidfdzp/ns-allinone-2.35.git
git fetch origin
git clean -d -fx
git checkout --track origin/master
Now, all you need to do is type "./install" under this directory. The install
script will compile and install the whole package for you. The script also
will tell you the final installation result.
Add paths to .bash_aliases file or .bashrc
NS_HOME=/the/path/to/ns-allinone-2.35
NSDIR=$NS_HOME/ns-2.35
PATH=$NS_HOME/bin:$NS_HOME/tcl8.5.10/unix:$NS_HOME/tk8.5.10/unix:$PATH
LD_LIBRARY_PATH=$NS_HOME/otcl-1.14:$NS_HOME/lib
TCL_LIBRARY=$NS_HOME/tcl8.5.10/library
cd ns-2.35/
./validate
4. More information
--------------------
Ns-allinone is available from
<http://sourceforge.net/projects/nsnam>
or
<http://www.isi.edu/nsnam/ns/ns-build.html>
-----------------------------
The nsnam Project
http://www.nsnam.org