Created
November 20, 2022 00:15
-
-
Save sc0rp10n-py/a8bace48d49cebafae5e4f68c9a645ce to your computer and use it in GitHub Desktop.
Automated script to download, build and install ns3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Script to Download, Build and Install ns3 by nsnam.org" | |
echo "Downloading script" | |
wget https://www.nsnam.org/releases/ns-allinone-3.37.tar.bz2 | |
echo "Extracting the archive" | |
tar -xvf ns-allinone-3.37.tar.bz2 | |
echo "Building and testing ns3" | |
cd ns-allinone-3.37 | |
cd ns-3.37 | |
./ns3 configure --enable-examples --enable-tests | |
echo "Building" | |
./ns3 build | |
echo "Testing started" | |
./test.py | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put the above in a file
install.sh
then do
sudo chmod +x install.sh
then run
./install.sh
and wait for completion.