Help me please :(

548 views
Skip to first unread message

Maxime Goubault

unread,
Jun 22, 2022, 4:31:07 PM6/22/22
to ns-3-users
Hello I am a French student doing an internship abroad and my subject must be done on ns3. However, I've been trying to install ns3 for 3 days on a virtual machine running ubuntu 20.04. I realized all the tutorials available but impossible to make it work can a charitable soul help me? I despair :(

Tom Henderson

unread,
Jun 22, 2022, 4:41:14 PM6/22/22
to ns-3-...@googlegroups.com
> soul help me? I despair :( --

If you can please post some more details (error messages) that you are
encountering, we might be able to help.

In brief, at a minimum, on Ubuntu 20.04, you need to install 'cmake',
'python3', and 'g++' packages.  If you install those, you should be able
to install ns-3 successfully.

- Tom

Geovany Teca

unread,
Jun 22, 2022, 4:50:02 PM6/22/22
to ns-3-...@googlegroups.com
Hi,
Please follow this tutorial, it always works for me:


--
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/c603cd3d-84ef-8377-1e20-0de5a238d38b%40tomh.org.

Geovany Teca

unread,
Jun 22, 2022, 4:57:14 PM6/22/22
to ns-3-...@googlegroups.com
I just remember that I have once made instruction how to reproduce one repo, there is how you can download and build ns-3, you might want to download version 3.36, check this out:

Erick Alejandro Pantoja Torres

unread,
Jun 22, 2022, 5:03:45 PM6/22/22
to ns-3-users
Hi, 

I installed ns3 version 3.32 in the VMWARE virtual machine with this tutorial https://www.youtube.com/watch?v=SFdEvhxVpnI. In Ubuntu 20.04.

Maxime Goubault

unread,
Jun 23, 2022, 6:27:57 AM6/23/22
to ns-3-users
Hey, ty for the reply. i try to install the last version 3.36, i build it everything is ok. But when i try to do ./ns3 configure i have error like this :
CMake Error: Cannot open file for write: /home/ubuntu/bake/ns-3-allinone/ns-3.36/cmake-cache/CMakeCache.txt.tmp
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. /home/ubuntu/bake/ns-3-allinone/ns-3.36/cmake-cache/CMakeCache.txt
CMake Error: : System Error: Permission denied
And if i run sudo ./ns3 configure i have error like this :
Exception: Refusing to run as root. --enable-sudo will request your password when needed

Can anyone help me please its very important for me...

Maxime Goubault

unread,
Jun 23, 2022, 6:40:27 AM6/23/22
to ns-3-users
Ok with a chmod 777 -R on my directory i can configure it, now i have this :
How can i find de missing dependency ? Capture d’écran du 2022-06-23 03-38-20.png

Tom Henderson

unread,
Jun 23, 2022, 9:14:16 AM6/23/22
to ns-3-...@googlegroups.com, Maxime Goubault


On 6/23/22 3:40 AM, Maxime Goubault wrote:
> Ok with a chmod 777 -R on my directory i can configure it, now i have this :
> How can i find de missing dependency ? Capture d’écran du 2022-06-23
> 03-38-20.png


Please read the ns-3 tutorial on our main web site, which discusses
optional dependencies.

The ns-3 wiki has installation guidance for optional packages for Ubuntu:

https://www.nsnam.org/wiki/Installation#Ubuntu.2FDebian.2FMint

Also, we recommend to not install and run ns-3 as root user, just due to
the general guidance of not running things with root privileges unless
necessary.

- Tom

ABDULJABBAR ALSHARIF

unread,
Jun 25, 2022, 6:47:50 AM6/25/22
to ns-3-...@googlegroups.com
hi 
tell, me how I can help you? follow the installation structure then if you got error post it will see if I can help you on what's your  OS your run your  virtual machine on and which os system did you install your ns3 which version of the Linux package? just follow such way to install  :
- both gcc library and g+= last version this common error could make while installing so follow this link to get your ns3 installation 


wish it helps 

" if you want the rainbow you have deal with rains"




Maxime Goubault

unread,
Jun 27, 2022, 7:06:17 AM6/27/22
to ns-3-users
Hello,
I managed to install ns3 the simulations works. However I can't use the viewer for example: ./ns3 run /examples/tutorial/first.cc --vis
I have this error:

(python:48819): Gtk-WARNING **: 04:04:38.982: This process is currently running setuid or setgid.
This is not a supported use of GTK+. You must create a helper
program instead. For further details, see:

    http://www.gtk.org/setuid.html

Refusing to initialize GTK+.
Command 'build/examples/wireless/ns3.36.1-wifi-ap-default --SimulatorImplementationType=ns3::VisualSimulatorImpl' returned non-zero exit status 1.

Note that my view is enabled in my configuration.
Any idea to help me?

Tom Henderson

unread,
Jun 27, 2022, 1:37:53 PM6/27/22
to ns-3-...@googlegroups.com, Maxime Goubault
On 6/27/22 04:06, Maxime Goubault wrote:
> Hello,
> I managed to install ns3 the simulations works. However I can't use the
> viewer for example: ./ns3 run /examples/tutorial/first.cc --vis
> I have this error:
>
> (python:48819): Gtk-WARNING **: 04:04:38.982: This process is currently
> running setuid or setgid.
> This is not a supported use of GTK+. You must create a helper
> program instead. For further details, see:
>
>     http://www.gtk.org/setuid.html
>
> Refusing to initialize GTK+.
> Command 'build/examples/wireless/ns3.36.1-wifi-ap-default
> --SimulatorImplementationType=ns3::VisualSimulatorImpl' returned
> non-zero exit status 1.
>
> Note that my view is enabled in my configuration.
> Any idea to help me?

Did you possibly build ns-3 as root user, or try to run as root, or
possibly set the setuid bit on that program somehow?
Reply all
Reply to author
Forward
0 new messages