Package Details: ns3-examples-src 3.47-5

Git Clone URL: https://aur.archlinux.org/ns3.git (read-only, click to copy)
Package Base: ns3
Description: Discrete-event network simulator for Internet systems (prebuilt example sources)
Upstream URL: https://www.nsnam.org/
Keywords: ns3 nsnam
Licenses: GPL-2.0-only
Submitter: yhfudev
Maintainer: SpacingBat3
Last Packager: SpacingBat3
Votes: 9
Popularity: 0.000004
First Submitted: 2015-10-07 15:56 (UTC)
Last Updated: 2026-04-24 18:43 (UTC)

Dependencies (8)

Required by (1)

Sources (3)

Pinned Comments

SpacingBat3 commented on 2026-04-21 14:55 (UTC) (edited on 2026-05-02 13:29 (UTC) by SpacingBat3)

CURRENT PACKAGE STATUS
  • Not everything works / can be confirmed to work. cppyy cannot be built from AUR, for example, and root package is not enough for using bindings.

  • As tests pass in Arch, ns3 as a set of libraries should work now with all components enabled. 🎉️

  • I've reworked PKGBUILD drastically. It should be much more readable and have less hacks, plus NS-3 is now a split package so eg. python bindings can be installed separatively from ns3. Most deps should also be organised properly so they are installed on-demand.

  • Python bindings are broken, it requires a lot more effort to make them to work: at least providing libcppyy python module alongside cppyy is required and getting somehow a librte_pmd_e1000.so library (that was part of DPDK but at least it isn't in the latest releases). As an alternative, mpi is being enabled in build so we at least can use this as optional feature.

  • Local docs distribution is WIP. Doxygen seems to be too large to bundle into mosts systems (>1GB!!!) and does package slow and Sphinx docs are TBD.


I'll be keeping this comment up-to-date as we figure things out. In the meantime, feel free to comment and discuss what could be done better on my side with the packaging or maybe how to handle incompatibilities of components (MPI vs Python).

Latest Comments

« First ‹ Previous 1 2 3

khau commented on 2019-03-19 06:55 (UTC)

Just a heads up, the dependency "python2-pygraphviz" should be renamed to "python2-graphviz".

Lindhe commented on 2017-12-06 12:57 (UTC)

First of all, like FlorianJacob said, Mercurial should be a dependency or this will not install properly. And so should pygoocanvas.

Secondly, I thought this would have given me python bindings to ns3. Does it not? Because I can not import ns or ns.core in python. It says there is no such module.

j3thr0 commented on 2017-07-31 18:04 (UTC)

Hi, It should work fine now, note: 1. pygoocanvas is breaking now so please use this to build https://raw.githubusercontent.com/dnut/PKGBUILDs/master/pygoocanvas/PKGBUILD 2. NS3 has RAM requirement so please make sure you have at least 2G memory.

pasqui23 commented on 2017-03-20 19:18 (UTC)

below is a working PKGBUILD pkgname=ns-3 pkgver=3.26 pkgrel=1 pkgdesc='Discrete-event network simulator to replace ns-2' arch=('i686' 'x86_64') url='http://www.nsnam.org/' license=('GPL') depends=('gsl' 'gtk2' 'libxml2' 'python2' 'sqlite3') depends=('gsl' 'gtk2' 'pygtk' 'libxml2' 'python2' 'sqlite' 'openmpi' 'doxygen' 'graphviz' 'imagemagick' 'dia' 'qt4' 'pygccxml' 'tcpdump' 'wireshark-gtk' 'boost' 'boost-libs' 'valgrind' 'python2-setuptools' #'python2-pydot' #'goocanvas' 'pygoocanvas' #'python2-pygraphviz' 'gdb') makedepends=('fakeroot' 'findutils') optdepends=('openmpi: mpi support''mercurial' 'bzr' 'texlive-bin' 'python2-sphinx' ) source=("https://www.nsnam.org/release/ns-allinone-$pkgver.tar.bz2") # md5sums=('ebddcb29f86e42e2d13fc8277b30234a') sha256sums=('af0dc9f71986199370188886ec240a983ed8ea3560353dda7e16d2d9f244ff69') prepare() { cd $srcdir/ns-allinone-$pkgver grep -rl '/usr/bin/env python' . | xargs sed -i \ 's/\/usr\/bin\/env\/python/\/usr\/bin\/python2/g' sed -i 's/\t/ /g' ./build.py sed -i \ 's/\/usr\/bin\/env\/python/\/usr\/bin\/python2/g' ./build.py } build() { cd $srcdir/ns-allinone-$pkgver ./build.py --enable-examples --enable-tests --qmake-path=/usr/bin/qmake-qt4 \ --build-options=--progress -- \ --enable-sudo --enable-mpi --with-python=/usr/bin/python2 --prefix=/usr \ --progress } package() { cd $srcdir/ns-allinone-$pkgver/ns-$pkgver ./waf install --destdir=$pkgdir/ }

str50 commented on 2016-09-13 19:00 (UTC)

The ns3 modules are installed into /usr/lib64 which would cause problems when installing. Should add the following build option in PKGBUILD --libdir=/usr/lib \ to ./build.py \ Also the pygccxml should suffice.

FlorianJacob commented on 2016-06-16 13:20 (UTC)

Maybe mercurial should not be an optional, but (or also) a build dependency? I got an error because it was not installed on my machine when it tried to download the sources.

Hawkido commented on 2016-05-19 12:15 (UTC)

I couldn't compile it using pygccxml-svn as dependency, i used pygccxml instead and it worked