Error when installing NS3.34 on ubuntu 18.04

709 views
Skip to first unread message

Nassima Merabtine

unread,
Feb 5, 2022, 2:57:54 PM2/5/22
to ns-3-users
Hello,

I'm trying to install NS3.34 on ubuntu 18.04. I followed sevral turorials, no one works for me ! The last one is this video: https://www.youtube.com/watch?v=pF1Q6PEi8no

When executing: "./build.py" I had the following error  "Build failed
 -> task in 'ns3-fd-net-device' failed with exit status 1 (run with -v to display more information)". Any solution ?

Thank you in advance.

Soulimane Mammar

unread,
Feb 5, 2022, 3:22:53 PM2/5/22
to ns-3-...@googlegroups.com
Hi,
Try this sequence and tell me:
  1. Download the latest release from https://www.nsnam.org/releases/lates

  2. tar xjf ns-allinone-3.XY.tar.bz2

  3. $ cd ns-allinone-3.XY/ns-3.XY

  4. $ ./waf configure --enable-examples --enable-tests

  5. $ ./waf build

  6. $ ./test.py


--
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/9b2cf29c-8814-46cd-99cb-d985a54d432fn%40googlegroups.com.


--
Soulimane MAMMAR

Nassima Merabtine

unread,
Feb 5, 2022, 3:45:04 PM2/5/22
to ns-3-...@googlegroups.com
Thank you very much for your quick response,

I tried  the sequence you sent. the "./waf build" statement is  executed with the same error : "Build failed

 -> task in 'ns3-fd-net-device' failed with exit status 1 (run with -v to display more information)
".
I have noticed some warnings and errors when executing instruction 4 "$ ./waf configure --enable-examples --enable-tests",  as follows:

Warnings (in yellow color):
- Asking python-config for pyembed '--cflags --libs --ldflags --embed' flags : not found

-Checking for code snippet                                                  : no

-Checking for program 'castxml'                                             : not found
castxml missing; automatic scanning of API definitions will not be possible

-Checking for click location                                                : not found

- checking for uint128_t                                                     : not found

- Checking for header sys/inttypes.h                                         : not found

-Checking for header net/netmap_user.h                                      : not found
-Checking for NSC location                                                  : not found
-Checking for OpenFlow location                                             : not found

and ERROS (IN RED COLOR)

- BRITE Integration             : not enabled (BRITE not enabled (see option --with-brite))
DES Metrics event collection  : not enabled (defaults to disabled)
- MPI Support                   : not enabled (option --enable-mpi not selected)
NS-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
NS-3 OpenFlow Integration     : not enabled (OpenFlow not enabled (see option --with-openflow))
Netmap emulation FdNetDevice  : not enabled (needs net/netmap_user.h)
Network Simulation Cradle     : not enabled (NSC not found (see option --with-nsc))
PlanetLab FdNetDevice         : not enabled (PlanetLab operating system not detected (see option --force-planetlab))

- Python API Scanning Support   : not enabled (castxml missing)
- Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)

Any idea ?

thanks again




You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ykf_wnpiU-w/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAMMLk4bOYBmjwUzK7AmhArkG_shtuVYqrsr1J41Sz_L09ukNHQ%40mail.gmail.com.

Soulimane Mammar

unread,
Feb 5, 2022, 4:54:30 PM2/5/22
to ns-3-users
Hi,
It seems that some dependencies are not installed:
Try to install them (theses are not all necessary but if you have time and bandwidth you loose nothing to have a complete installation) and try again

sudo apt-get install g++ python3 
sudo apt-get install g++ python3 python3-dev pkg-config sqlite3 
sudo apt-get install python3-setuptools git 
sudo apt-get install qt5-default mercurial 
sudo apt-get install gir1.2-goocanvas-2.0 python-gi python-gi-cairo python-pygraphviz python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython ipython3 
sudo apt-get install openmpi-bin openmpi-common openmpi-doc libopenmpi-dev 
sudo apt-get install autoconf cvs bzr unrar 
sudo apt-get install gdb valgrind 
sudo apt-get install uncrustify 
sudo apt-get install doxygen graphviz imagemagick 
sudo apt-get install texlive texlive-extra-utils texlive-latex-extra texlive-font-utils dvipng latexmk 
sudo apt-get install python3-sphinx dia 
sudo apt-get install gsl-bin libgsl-dev libgsl23 libgslcblas0 
sudo apt-get install tcpdump 
sudo apt-get install sqlite sqlite3 libsqlite3-dev 
sudo apt-get install libxml2 libxml2-dev
sudo apt-get install cmake libc6-dev libc6-dev-i386 libclang-6.0-dev llvm-6.0-dev automake 
sudo apt install python3-pip 
sudo pip3 install --upgrade pip 
python3 -m pip install --user cxxfilt 
sudo apt-get install libgtk-3-dev 
sudo apt-get install vtun lxc uml-utilities 
sudo apt-get install libboost-signals-dev libboost-filesystem-dev

Nassima Merabtine

unread,
Feb 5, 2022, 5:14:31 PM2/5/22
to ns-3-...@googlegroups.com
I have already installed ALL these packages, except: "ipython ipython3 ". When I executed this instruction it gave me:
[TerminalIPythonApp] WARNING | File not found: u'ipython3'

Tom Henderson

unread,
Feb 5, 2022, 5:36:15 PM2/5/22
to ns-3-...@googlegroups.com
On 2/5/22 12:44, Nassima Merabtine wrote:
> Thank you very much for your quick response,
>
> I tried  the sequence you sent. the "./waf build" statement is  executed
> with the same error : "Build failed
>  -> task in 'ns3-fd-net-device' failed with exit status 1 (run with -v
> to display more information)
> ".
> I have noticed some warnings and errors when executing instruction 4 "$
> ./waf configure --enable-examples --enable-tests",  as follows:
>

Those warnings and errors are not harmful; they are just pointing out
some optional components that are not enabled.

I have an Ubuntu 18.04 test machine and I can't reproduce this build
failure. If you can build with verbose mode enabled, it may shed some
light on the problem. Also, the file build/config.log may provide more
complete information on the configuration of your system.

Try this command:

./waf build -vvv > build.out 2>&1

and share the build.out file.

- Tom

Nassima Merabtine

unread,
Feb 5, 2022, 5:44:56 PM2/5/22
to ns-3-...@googlegroups.com
Thank you for your reply.

Please find attached the config.log and the build.out files.

Thanks again.

--
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 a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ykf_wnpiU-w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
config.log
build.out

Soulimane Mammar

unread,
Feb 6, 2022, 3:11:15 AM2/6/22
to ns-3-users

Hi,
Install dpkg-dev:
sudo apt-get install dpdk-dev
and try to build again
Regards

Nassima Merabtine

unread,
Feb 6, 2022, 4:41:02 AM2/6/22
to ns-3-...@googlegroups.com
Hi,
Just tested this, unfortunately, the build failed with the same error: "Build failed
 -> task in 'ns3-fd-net-device' failed with exit status 1 (run with -v to display more information)" !


Tom Henderson

unread,
Feb 6, 2022, 9:52:30 AM2/6/22
to ns-3-...@googlegroups.com, Nassima Merabtine
On 2/5/22 14:44, Nassima Merabtine wrote:
> Thank you for your reply.
>
> Please find attached the config.log and the build.out files.
>

It looks like you are installing ns-3.35, not ns-3.34, but I think the
problem will be the same.

The problem appears to be DPDK-related. Are you trying to use DPDK
NetDevice?

Please see this documentation:

https://www.nsnam.org/docs/release/3.35/models/html/dpdk-net-device.html#dpdk-installation

In particular, it says: "Ubuntu 20.04 has packaged DPDK v19.11 LTS
which is tested with this module and DpdkNetDevice will only be enabled
if this version is available."

Do you have a different version of DPDK installed on your Ubuntu 18.04
machine?

The Waf script does not provide a way to disable DPDK support without
editing a file or removing the fd-net-device module.

- If you want to use DPDK, you need to install the supported version

- If you are not interested in DPDK but want the other emulation
features, a workaround to this is to change line 45 of
src/fd-net-device/wscript from:

conf.env['ENABLE_DPDKNETDEV'] = have_dpdk_pkg or have_dpdk_src


to:
conf.env['ENABLE_DPDKNETDEV'] = False

and then rerun the configuration step.

- or, if you do not care about emulation, you can delete the
src/fd-net-device directory altogether

Tommaso Pecorella

unread,
Feb 8, 2022, 1:02:52 PM2/8/22
to ns-3-users
Hi,

first and foremost, the last tag release is 3.35 - I'd avoid to use an older one.
Secondly, 3.36 is about to be release, so I'd go for ns-dev (or be ready to switch to 3.36 when it's released).
Mind that the build system is going to be changed in 3.36, so old tutorials will not work. The official ns-3 tutorial is already updated to show how to use the new build system.

About the specific error, it is in one of the previous lines in the log. It should say which file wasn't compiled correctly and why. Without the log it's a shoot in the dark, and I don't like to shoot in the dark.

Ev A

unread,
Feb 10, 2022, 4:21:29 PM2/10/22
to ns-3-...@googlegroups.com
Hi
where I can found these libraries or how I can install it in ubuntu 20.4
#include "aodv-rtable.h"
#include "aodv-rqueue.h"
#include "aodv-packet.h"
#include "aodv-neighbor.h"
#include "aodv-dpd.h"
#include "ns3/node.h"
#include "ns3/random-variable-stream.h"
#include "ns3/output-stream-wrapper.h"
#include "ns3/ipv4-routing-protocol.h"
#include "ns3/ipv4-interface.h"
#include "ns3/ipv4-l3-protocol.h"
#include <map>
#include <crypto++/rsa.h>
#include <crypto++/osrng.h>
#include <crypto++/integer.h>
#include <crypto++/sha.h>
#include <crypto++/hex.h>
#include <crypto++/filters.h>  


--
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/2bdbba72-d449-4b32-89ce-6c8e03490ce2n%40googlegroups.com.

Tom Henderson

unread,
Feb 10, 2022, 5:37:21 PM2/10/22
to ns-3-...@googlegroups.com
On 2/10/22 13:20, Ev A wrote:
> Hi
> where I can found these libraries or how I can install it in ubuntu 20.4

When you have a new discussion topic, please start a new message thread
with a new subject.

- Tom
Reply all
Reply to author
Forward
0 new messages