Only for users of arch linux
Since the package of AUR is outdate, i made an edition of PKGBUILD thanks to the shared code in comments in the page of yaourt
I dont need to explain how to edit PKGBUILD since you manage to install ARCHLINUX , which is god damn hard, but of course with a quick google seach you can manage to find it :)
ok, let's paste this
# Maintainer: Andreas B. Wagner <Andreas...@pointfree.net>
# Maintainer: Bhoppi Chaw <bho...@hotmail.com>
# Contributor: Thiago Coutinho
# Contributor: Thomas Dziedzic
# Edited by frayar(giancarlo), code by morealaz
pkgname=ns-3
pkgver=3.22
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')
prepare()
{
cd $srcdir/ns-allinone-$pkgver
grep -rl '/usr/bin/env python' . | xargs sed -i 's/\/usr\/bin\/env python/\/usr\/bin\/python2/g'
}
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/
}
The script is almost self explanatory, if you want, you can use it everytime you want to install a new version of NS3 by changing just pkgver and md5sums.
i hope NS-3 gets into the official repository some day.
I hope a GUI too (and a ferrari)
Why i'm doing this, i dont know, i'm procrastinating
goodbye