Unable to build ns3-gym

330 views
Skip to first unread message

Daniel Moreno Rincon

unread,
Dec 14, 2021, 9:55:38 PM12/14/21
to ns-3-users
Hello fellow ns-3 users.

I've been using ns3-gym for a while, and I'm actually setting up a little script in another machine, so I tried to build ns3-gym within the latest ns-3 version and the code seems to be deprecated, and it's not passing with the latest libzmp. Hours  have passed away and I couldn't find a decent way to downgrade libzmp without messing Obs, ffmpeg and many other software.

I'm really desperate for the OpenAI functionalities so my question(s) is(are)... Can I skip this warning somehow? Any suggestions on this? There are similar packages for OpenAI integration with ns3? It is my fault? :'c

./waf build logs:

Captura de pantalla de 2021-12-14 21-41-20.png
Captura de pantalla de 2021-12-14 21-50-48.png
ns3-gym link:

Thanks for your attention and Merry pre-christmas :D

Charles Pandian

unread,
Dec 15, 2021, 12:24:08 AM12/15/21
to ns-3-...@googlegroups.com

I successfully installed ns3-gym under chroot jail. In fact, we can install any version of ns-3 without facing any package conflict with the host OS environment. We may setup the necessary packages under chroot environment and install ns3-gym without any problem.

You may see the procedure at the following post :

Installing ns3-gym AI Model under Chroot Jail

Under Debian 10 Buster (and other resent Linux variants), the installation of  libzmq5, libzmq5-dev may end up with incompatible versions – so that the waf compile may fail. 

In the above-mentioned procedure, you may see the way to install libzmp from the source and successfully complete the ns3-gym installation.

I hope that it may satisfy your need.

Charles Pandian,


--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/e2c91745-2cd2-433b-99d0-60a6285b11dfn%40googlegroups.com.

Eduardo Almeida

unread,
Dec 15, 2021, 8:10:24 AM12/15/21
to ns-3-users
I submitted a pull request some time ago that fixed that deprecation warning, which was merged into the author's GitHub repository. Please check the latest code on GitHub:
https://github.com/tkn-tub/ns3-gym/tree/master/src/opengym

Sanjay Jaiman

unread,
Dec 15, 2021, 11:29:34 AM12/15/21
to ns-3-users
For ns3-gym/OpenGym you need to install "protobuf 3.18" and "Zeromq".  Following are the instructions to install them on Ubuntu - 

  1. tar -zxvf protobuf-all-3.18.0.tar.gz 

  1. cd protobuf-3.18.0 

  1. ./autogen.sh 

  1. ./configure 

  1. make 

  1. make install 



Install Zeromq 

sudo apt-get install libzmq3-dev 

sudo apt-get install gcc  automake autoconf libtool make 

Reply all
Reply to author
Forward
0 new messages