Issues installing ns3-dce: module "ns-3-dev-dce" failed

1,045 views
Skip to first unread message

Nitinder Mohan

unread,
May 31, 2017, 7:06:50 AM5/31/17
to ns-3-users
Hi,

I am trying to install NS3-DCE to run some MPTCP simulations. My target environment is mptcp_v0.89 on guidelinsim-ns3-3.14.0-branch running on Ubuntu 14.04 LTS. I followed the guidelines written by Hajime (https://plus.google.com/+HajimeTazaki/posts/1QUmR3n3vNA) and the official NS3 DCE install guide (https://www.nsnam.org/docs/dce/release/1.8/manual/singlehtml/index.html) using waf. My build always fails at make testbin -C arch/sim/test and it gives the following output:

Checking connectivity... done.
 > Bazaar - OK
 > autoreconf tool - OK
cd buildtop ; \
        ../bake/bake.py configure -e dce-linux-inkernel 
cd buildtop ; \
        ../bake/bake.py show --enabledTree | grep -v  -E "pygoocanvas|graphviz|python-dev" | grep Missing && (echo "required packages are missing") || echo ""

cd buildtop ; \
        ../bake/bake.py download ; \
        ../bake/bake.py update ; \
        ../bake/bake.py build 
 >> Searching for system dependency libpcap-dev - OK
 >> Searching for system dependency libexpat-dev - OK                                                                       
 >> Downloading iperf - OK                                                                                                  
 >> Searching for system dependency libdb-dev - OK                                                                          
 >> Searching for system dependency bison - OK                                                                              
 >> Searching for system dependency flex - OK                                                                               
 >> Searching for system dependency libssl-dev - OK                                                                         
 >> Downloading wget - OK                                                                                                   
 >> Downloading thttpd - OK                                                                                                 
 >> Downloading bash - OK                                                                                                   
 >> Downloading gccxml-ns3 (target directory:gccxml) - OK                                                                   
 >> Searching for system dependency python-dev - OK                                                                         
 >> Searching for system dependency pygraphviz - OK                                                                         
 >> Searching for system dependency pygoocanvas - OK                                                                        
 >> Searching for system dependency setuptools - OK                                                                         
 >> Searching for system dependency g++ - OK                                                                                
 >> Searching for system dependency qt4 - OK                                                                                
 >> Searching for system dependency libc - OK                                                                               
 >> Downloading libaspect - OK                                                                                              
 >> Downloading ccnx - Problem
 > Problem: Optional dependency, module "ccnx" failed
   This may reduce the  functionality of the final build. 
   However, bake will continue since "ccnx" is not an essential dependency.
   For more information call bake with -v or -vvv, for full verbose mode.

 >> Downloading iproute-2.6.38-fix-01 - OK
 >> Downloading pygccxml - OK                                                                                               
 >> Searching for system dependency libc-debug - OK                                                                         
 >> Downloading netanim - OK                                                                                                
 >> Downloading pybindgen - OK                                                                                              
 >> Downloading elf-loader - OK                                                                                             
 >> Downloading ns-3-dev-dce - OK                                                                                           
 >> Downloading dce-meta-dev (target directory:ns-3-dce) - OK                                                               
 >> Downloading dce-linux-inkernel (target directory:ns-3-dce) - (Nothing to do, source directory already exists) - OK      
OK                                                                                                                          
OK                                                                                                                          
 >> Updating iperf - OK                                                                                                     
OK                                                                                                                          
OK                                                                                                                          
OK                                                                                                                          
OK                                                                                                                          
 >> Updating gccxml-ns3 (target directory:gccxml) - OK                                                                      
OK                                                                                                                          
OK                                                                                                                          
OK                                                                                                                          
OK                                                                                                                          
OK                                                                                                                          
OK                                                                                                                          
OK                                                                                                                          
 >> Updating libaspect - OK                                                                                                 
 >> Updating wget - OK                                                                                                      
 >> Updating thttpd - OK                                                                                                    
 >> Updating bash - OK                                                                                                      
 >> Updating ccnx - OK                                                                                                      
 >> Updating pygccxml - OK
OK
 >> Updating netanim - OK
 >> Updating iproute-2.6.38-fix-01 - OK
 >> Updating pybindgen - OK
 >> Updating elf-loader - OK
 >> Updating ns-3-dev-dce - OK
 >> Updating dce-meta-dev (target directory:ns-3-dce) - OK
 >> Updating dce-linux-inkernel (target directory:ns-3-dce) - OK
 > Problem: Optional dependency, module "ccnx" failed
   This may reduce the  functionality of the final build. 
   However, bake will continue since "ccnx" is not an essential dependency.
   For more information call bake with -v or -vvv, for full verbose mode.

 >> Building iperf - OK
 >> Building gccxml-ns3 - OK
 >> Building libaspect - OK
 >> Building wget - OK
 >> Building thttpd - OK
 >> Building bash - OK
 >> Building ccnx - Problem
 >> Building pygccxml - OK
 >> Building netanim - OK
 >> Building iproute-2.6.38-fix-01 - OK
 >> Building pybindgen - OK
 >> Building elf-loader - OK
 >> Building ns-3-dev-dce - Problem
 > Error:  Critical dependency, module "ns-3-dev-dce" failed 
   For more information call Bake with --debug and/or -v, -vvv, for full verbose mode (bake --help)
make: *** [testbin] Error 1
make: Leaving directory `/home/nmohan/mptcp-dce/arch/sim/test'

I also checked my build setup using bake.py check; my output is the following:

 > Python - OK
 > GNU C++ compiler - OK
 > Mercurial - OK
 > CVS - OK
 > GIT - OK
 > Bazaar - OK
 > Tar tool - OK
 > Unzip tool - OK
 > Unrar tool - OK
 > 7z  data compression utility - OK
 > XZ data compression utility - OK
 > Make - OK
 > cMake - OK
 > patch tool - OK
 > autoreconf tool - OK


 > Path searched for tools: /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /usr/lib/jvm/java-8-oracle/bin /usr/lib/jvm/java-8-oracle/db/bin /usr/lib/jvm/java-8-oracle/jre/bin /home/nmohan/bake bin  /home/nmohan/bake
 
It seems that the build fails due to ccnx module of NS3-DCE. Can someone help me in resolving this issue?

Thanks

Nitinder

Nitinder Mohan

unread,
May 31, 2017, 8:10:23 AM5/31/17
to ns-3-users
On doing bake.py build -vvv, this is the error I am getting:

Waf: Leaving directory `/home/nmohan/dce/source/ns-3-dev-dce/build'
Build failed
 -> task in 'ns3-traffic-control' failed (exit status 1): 
        {task 139768981304016: cxx queue-disc.cc -> queue-disc.cc.1.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-std=c++11', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-I.', '-I..', '-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '../src/traffic-control/model/queue-disc.cc', '-c', '-o', '/home/nmohan/dce/source/ns-3-dev-dce/build/src/traffic-control/model/queue-disc.cc.1.o']
()
 >> Building ns-3-dev-dce - Problem

Matt Anonyme

unread,
May 31, 2017, 8:10:48 AM5/31/17
to ns-3-users
Did you follow the advice :
> For more information call Bake with --debug and/or -v, -vvv, for full verbose mode (bake --help
?
That could help pinpoint the problem

Matt

Nitinder Mohan

unread,
May 31, 2017, 11:55:33 AM5/31/17
to ns-3-users
Please see my update with bake.py -vvv (second message in the thread)
Message has been deleted

xannisa

unread,
Jun 1, 2017, 7:18:15 PM6/1/17
to ns-3-users
Hi

I have the same problem. Everytimes i try to install ns3-dce with or without mptcp linux kernel, ccnx always cannot be downloaded. Idk why
Can u solved ur problem?

Thanks

Nitinder Mohan

unread,
Jun 2, 2017, 12:52:24 PM6/2/17
to ns-3-users
Yes, apparently CCNx was not the problem for building as it's an optional dependency for building NS3-DCE. I had several problems ranging from wrong version of gcc and g++; gccxml not installed; bad compatibility between ns3-dce and dce. After resolving all those issues, I was able to successfully build NS3-DCE using LibOS (https://github.com/libos-nuse/net-next-nuse)

I have made an install guide which lists all steps I followed for a successful build. You can find it here: https://docs.google.com/document/d/1ICsVxYZzNo8gt7JPr0t5O10gH0qzkZzGbtvLfcTqRAc/edit?usp=sharing

I hope this helps you resolve your issue.

xannisa

unread,
Jun 4, 2017, 9:36:05 PM6/4/17
to ns-3-users
Hi, thank u for the guide. but i have a problem when i configure using waf

Traceback (most recent call last):
  File "/home/nisa/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 97, in waf_entry_point
    run_commands()
  File "/home/nisa/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 151, in run_commands
    run_command(cmd_name)
  File "/home/nisa/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 143, in run_command
    ctx.execute()
  File "/home/nisa/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Configure.py", line 128, in execute
    super(ConfigurationContext,self).execute()
  File "/home/nisa/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 87, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/nisa/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 128, in recurse
    user_function(self)
  File "/home/nisa/ns-3-dce/wscript", line 91, in configure
    ns3waf.check_modules(conf, ['core', 'network', 'internet'], mandatory = False)
  File "/home/nisa/ns-3-dce/ns3waf/__init__.py", line 273, in check_modules
    _check_dependencies(conf, modules, mandatory)
  File "/home/nisa/ns-3-dce/ns3waf/__init__.py", line 158, in _check_dependencies
    pcfiles = glob.glob(conf.env['NS3_DIR'] + '/lib*/pkgconfig/' + 'libns%s*-%s-%s*'
TypeError: can only concatenate list (not "str") to list

do u have any idea? i am try to build dce-1.9 on ubuntu 14.04 with net-next-nuse. thank u so much

Nitinder Mohan

unread,
Jun 5, 2017, 4:44:54 AM6/5/17
to ns-3-users
It seems like you are missing certain dependencies. Did you install bake and do $bake.py check ? Follow the guide on installing bake. 

Also, I have updated the guide to export path of iproute2 application in DCE_PATH.

Nitinder Mohan

unread,
Jun 5, 2017, 4:46:09 AM6/5/17
to ns-3-users
It would be better to start a new thread to keep this particular thread clutter-free.

Matt

unread,
Jun 5, 2017, 7:02:17 AM6/5/17
to ns-3-users
You miss a "--with-ns3" flag during the configure phase IIRC.
> --
> 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/WFVZcp6HI8o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ns-3-users+...@googlegroups.com.
> To post to this group, send email to ns-3-...@googlegroups.com.
> Visit this group at https://groups.google.com/group/ns-3-users.
> For more options, visit https://groups.google.com/d/optout.

afaf

unread,
Jun 7, 2017, 9:44:21 AM6/7/17
to ns-3-users
Hi, thank you for your guide, it's very helpful
but I have this problem:
 >>./waf build:
Waf: Entering directory `/home/ubuntu/ns-3-dce/build'
[ 10/367] lib/pkgconfig/libns3-dev-netlink-debug.pc:  -> build/lib/pkgconfig/libns3-dev-netlink-debug.pc
[116/367] lib/pkgconfig/libns3-dev-dce-debug.pc:  -> build/lib/pkgconfig/libns3-dev-dce-debug.pc
Waf: Leaving directory `/home/ubuntu/ns-3-dce/build'
'build' finished successfully (0.379s)

>>./waf --run dce-iperf-mptcp:
Waf: Entering directory `/home/ubuntu/ns-3-dce/build'
[ 10/367] lib/pkgconfig/libns3-dev-netlink-debug.pc:  -> build/lib/pkgconfig/libns3-dev-netlink-debug.pc
[116/367] lib/pkgconfig/libns3-dev-dce-debug.pc:  -> build/lib/pkgconfig/libns3-dev-dce-debug.pc
Waf: Leaving directory `/home/ubuntu/ns-3-dce/build'
'build' finished successfully (0.342s)
assert failed. cond="filePath.length () > 0", msg="Stack file 'liblinux.so' not found ! Please check your DCE_PATH environment variable.", file=../model/kernel-socket-fd-factory.cc, line=566
terminate called without an active exception
Command ['/home/ubuntu/ns-3-dce/build/bin/dce-iperf-mptcp'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").


I also use this command
 ln -s $HOME/mptcp/arch/lib/tools/libsim-linux.so $HOME/mptcp/liblinux.so
as shown in the guide but the same problem

can you help me please
thank you in advance

Matt

unread,
Jun 7, 2017, 10:18:46 AM6/7/17
to ns-3-users
DCE_PATH works as PATH, did you export DCE_PATH="HOME/mptcp" ?

afaf

unread,
Jun 7, 2017, 11:08:27 AM6/7/17
to ns-3-users
yes, with this command:

export DCE_PATH=$HOME/mptcp:$HOME/iproute2-2.6.38/ip


afaf

unread,
Sep 7, 2017, 4:24:42 AM9/7/17
to ns-3-users
hi,

I install mptcp and it's functional now,
can someone please help me to increase the number of iperf client dynamically in the topology dce-iperf-mptcp.cc

any suggestion is welcome
 
thank you in advance

nala...@gmail.com

unread,
Apr 15, 2019, 2:05:29 AM4/15/19
to ns-3-users
hi 
I am also doing the experiment in this aspect now, could you please tell me how to install it? I also made the same mistake with you when I installed the above tutorial, I hope you can help me, thank you very much
在 2017年9月7日星期四 UTC+8下午4:24:42,afaf写道:

nala...@gmail.com

unread,
Apr 15, 2019, 2:12:52 AM4/15/19
to ns-3-users
hi 
I am also doing research in this area now. According to your tutorial document, there are some mistakes, and your iproute2 link is invalid. I hope you can reply and help me, thank you very much!

在 2017年6月3日星期六 UTC+8上午12:52:24,Nitinder Mohan写道:
Reply all
Reply to author
Forward
0 new messages