Install Ns 3
Install Ns 3
python-setuptool-devel
python-kiwi
If we would like build ns-3 with examples and tests, then do the following from the top level
ns-3 directory:
$ ./waf configure --enable-examples --enable-tests
$ ./waf build
Enable/disable examples and tests using the ns-3 configuration file
A configuration file, .ns3rc, has been added to ns-3 that allows users to specify whether
examples and tests should be built or not. You can use this file to enable/disable examples
and tests once ns-3 has been built.
When enabling disabling examples and tests, the precedence rules are as follows:
1. the enable-examples/disable-examples configure strings override any .ns3rc file
2. the enable-tests/disable-tests configure strings override any .ns3rc file
3. the .ns3rc file in the top level ns-3 directory is next consulted, if present
4. the system searches for ~/.ns3rc if the .ns3rc file was not found in the previous step
If none of the above exists, then examples and tests will not be built.
The maintained version of the .ns3rc file in the ns-3 source code repository resides in the utils
directory. The reason for this is if it were in the top-level directory of the repository, it would
be prone to accidental checkins from maintainers that enable the modules they want to use.
Therefore, users need to manually copy the .ns3rc from the utils directory to their preferred
place (top level directory or their home directory) to enable persistent enabling of examples
and tests.
Assuming that you are in the top level ns-3 directory, you can get a copy of the .ns3rc file
that is in the utils directory as follows:
$ cputils/.ns3rc .