[ndnSIM] libns3-dev-core-optimized

Albatool batool0haw at gmail.com
Wed Jan 17 08:19:37 PST 2024


Hello,

I am attempting to execute a code, and this is the output of the ./waf
config

Setting top to                           : /home/ndn/ndnSIM/crosndn
> Setting out to                           : /home/ndn/ndnSIM/crosndn/build
> Checking for 'g++' (c++ compiler)        : /usr/bin/g++
> Checking boost includes                  : 1_71
> Checking boost libs                      : ok
> Checking for boost linkage               : ok
> Checking for program pkg-config          : /usr/bin/pkg-config
> Checking for pkg-config version >= '0.0.0' : yes
> Checking for ns3-core                      : not found
> NS-3 or one of the required NS-3 modules not found
> NS-3 needs to be compiled and installed somewhere.  You may need also to
> set PKG_CONFIG_PATH variable in order for configure find installed NS-3.
> For example:
>     PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH ./waf
> configure
>
> (complete log in /home/ndn/ndnSIM/crosndn/build/config.log)
> The project was not configured: run "waf configure" first!
>

This is part of the config.log file

------------------------------------------
> Checking for ns3-core
> ['/usr/bin/pkg-config', '--cflags', '--libs', 'libns3-dev-core-optimized']
> err: Package libns3-dev-core-optimized was not found in the pkg-config
> search path.
> Perhaps you should add the directory containing
> `libns3-dev-core-optimized.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libns3-dev-core-optimized' found
>
> not found
> from /home/ndn/ndnSIM/crosndn: The configuration failed
> from /home/ndn/ndnSIM/crosndn:
>

And this is part of the wscript

MANDATORY_NS3_MODULES = ['core', 'network', 'point-to-point',
> 'applications', 'mobility', 'ndnSIM']
> OTHER_NS3_MODULES = ['antenna', 'aodv', 'bridge', 'brite', 'buildings',
> 'click', 'config-store', 'csma', 'csma-layout', 'dsdv', 'dsr', 'emu',
> 'energy', 'fd-net-device', 'flow-monitor', 'internet', 'lte', 'mesh',
> 'mpi', 'netanim', 'nix-vector-routing', 'olsr', 'openflow',
> 'point-to-point-layout', 'propagation', 'spectrum', 'stats', 'tap-bridge',
> 'topology-read', 'uan', 'virtual-net-device', 'visualizer', 'wifi', 'wimax']
>
> def configure(conf):
>     conf.load("compiler_cxx boost ns3")
>
>     conf.check_boost(lib='system iostreams')
>     boost_version = conf.env.BOOST_VERSION.split('_')
>     if int(boost_version[0]) < 1 or int(boost_version[1]) < 48:
>         Logs.error ("ndnSIM requires at least boost version 1.48")
>         Logs.error ("Please upgrade your distribution or install custom
> boost libraries (http://ndnsim.net/faq.html#boost-libraries)")
>         exit (1)
>
>     try:
>         conf.check_ns3_modules(MANDATORY_NS3_MODULES)
>         for module in OTHER_NS3_MODULES:
>             conf.check_ns3_modules(module, mandatory = False)
>     except:
>         Logs.error ("NS-3 or one of the required NS-3 modules not found")
>         Logs.error ("NS-3 needs to be compiled and installed somewhere.
> You may need also to set PKG_CONFIG_PATH variable in order for configure
> find installed NS-3.")
>         Logs.error ("For example:")
>         Logs.error ("
>  PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH ./waf configure")
>         conf.fatal ("")
>

I have set the config path as shown below, but I still get the same error:

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./waf configure -v -optimized
> --boost-libs=/usr/lib/x86_64-linux-gnu
> ./waf
>

Please help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20240117/0027e56e/attachment.html>


More information about the ndnSIM mailing list