Package Details: ns3 3.26-1

Git Clone URL: https://aur.archlinux.org/ns3.git (read-only)
Package Base: ns3
Description: Discrete-event network simulator for Internet systems
Upstream URL: http://www.nsnam.org/
Licenses: GPL
Submitter: yhfudev
Maintainer: j3thr0
Last Packager: j3thr0
Votes: 4
Popularity: 0.321339
First Submitted: 2015-10-07 15:56
Last Updated: 2017-07-31 19:12

Dependencies (38)

Required by (0)

Sources (4)

Pinned Comments

j3thr0 commented on 2017-07-31 18:04

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.

Latest Comments

j3thr0 commented on 2017-07-31 18:04

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

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

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

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

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