Run the one line command or follow the step by step guide
source <(curl -s https://gist.githubusercontent.com/SGman98/fe8606bc307258ca672202ee46b185e4/raw/setup-ns3-opengym)sudo apt update && sudo apt upgrademkdir ~/workspace && cd ~/workspacesudo apt install g++ python3git clone https://gitlab.com/nsnam/ns-3-allinone.git
cd ns-3-allinone
python3 download.py -n ns-3.35sudo apt install libzmq5 libzmq3-dev libprotobuf-dev protobuf-compiler python3-pipcd ~/workspace/ns-3-allinone/ns-3.35
git clone -b app https://github.com/tkn-tub/ns3-gym.git ./contrib/opengym-
visualizer
pip install PyBindGensudo apt install gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 -
dpdk
sudo apt install libdpdk-devfix file
sed -i '415s/CALL_MASTER/CALL_MAIN/' ~/workspace/ns-3-allinone/ns-3.35/src/fd-net-device/model/dpdk-net-device.cc
./waf configure --enable-examples
./waf buildcd ~/workspace/ns-3-allinone/ns-3.35/contrib/opengym/
pip3 install --user ./model/ns3gympip install protobuf==3.20.cd ~/workspace/ns-3-allinone/ns-3.35/contrib/opengym/examples/opengym
./simple_test.pyTerminal 1
cd ~/workspace/ns-3-allinone/ns-3.35/
./waf --run "opengym"Terminal 2
cd ~/workspace/ns-3-allinone/ns-3.35/contrib/opengym/examples/opengym/
./test.py --start=0cd ~/workspace/ns-3-allinone/ns-3.35/
./waf --run first --vis