fail to build ns3 on Windows 10 WSL Ubuntu20.04 refusing to run as root

188 views
Skip to first unread message

tonyLau

unread,
Oct 7, 2023, 7:02:05 AM10/7/23
to ns-3-users
I am trying to configure the ns3 as the guide told, even if I add --enable-sudo, error still occurs. What have I do wrong? Do I need to switch user (it's hard to do so on WSL)? If no, is there any other ways besides installing Ubuntu on VM box?


Screenshot 2023-10-07 185940.png

Tommaso Pecorella

unread,
Oct 7, 2023, 9:12:47 AM10/7/23
to ns-3-users
The not-run-as-root is a failsafe measure, I guess it's more important for Linux and Mac users than for Windows, but I'm not a Windows expert.

In any case, the answer is... yes, you need to run it as normal user (not root). As far as I know, it shouldn't be hard to change the default user.

Gabriel Ferreira

unread,
Oct 7, 2023, 10:20:43 AM10/7/23
to ns-3-users
Do not use sudo su. 
When you setup WSL, you need to specify an user name and password. 
You should use them.

If you are using docker inside wsl, you shouldn't be seeing this. 
Reply all
Reply to author
Forward
0 new messages