Skip to content
Steven Galgano edited this page Apr 2, 2014 · 27 revisions

The following instructions are for building distribution packages from EMANE source. The emane git repository master branch always contains the latest EMANE release. Older versions are available as tags. Use the develop branch for access to the latest non-stable source.

See the Install page for information on installing EMANE from pre-built packages.

Contents

  • [Fedora 20](#Fedora 20)
  • [Fedora 19](#Fedora 19)
  • [Ubuntu 12.04 LTS](#Ubuntu 12.04 LTS)
  • [Ubuntu 13.10](#Ubuntu 13.10)

Fedora 20

  1. Install EMANE build dependencies:
# sudo yum install gcc-c++ autoconf automake libtool libxml2-devel protobuf-devel \
protobuf-python libpcap-devel pcre-devel libuuid-devel python-lxml rpm-build
  1. Install ACE:
# ACE_VERSION=6.2.5-45.2; sudo yum install \
http://download.opensuse.org/repositories/devel:/libraries:/ACE:/micro/Fedora_20/$(arch)/ace-$ACE_VERSION.$(arch).rpm \
http://download.opensuse.org/repositories/devel:/libraries:/ACE:/micro/Fedora_20/$(arch)/ace-devel-$ACE_VERSION.$(arch).rpm \
http://download.opensuse.org/repositories/devel:/libraries:/ACE:/micro/Fedora_20/$(arch)/mpc-$ACE_VERSION.$(arch).rpm

Note: Due to the way ORBZone publishes pre-built packages you will only be able to retrieve the latest version of ACE. Modify ACE_VERSION in the above command accordingly.

  1. Clone the EMANE repo:


4. Build RPMs:

cd emane

./configure && make rpm


5. Install RPMs:

cd .rpmbuild

sudo yum install RPMS/x86_64/.rpm RPMS/noarch/.rpm


## <a name='Fedora 19'></a>Fedora 19

1. Install EMANE build dependencies:
 

sudo yum install gcc-c++ autoconf automake libtool libxml2-devel protobuf-devel \

protobuf-python libpcap-devel pcre-devel libuuid-devel python-lxml rpm-build


2. Install ACE:

ACE_VERSION=6.2.5-45.2; sudo yum install \

http://download.opensuse.org/repositories/devel:/libraries:/ACE:/micro/Fedora_19/$(arch)/ace-$ACE_VERSION.$(arch).rpm
http://download.opensuse.org/repositories/devel:/libraries:/ACE:/micro/Fedora_19/$(arch)/ace-devel-$ACE_VERSION.$(arch).rpm
http://download.opensuse.org/repositories/devel:/libraries:/ACE:/micro/Fedora_19/$(arch)/mpc-$ACE_VERSION.$(arch).rpm


  Note: Due to the way [ORBZone](http://orbzone.org) publishes pre-built packages you will only be able to retrieve the latest version of ACE. Modify *ACE_VERSION* in the above command accordingly.

3. Clone the EMANE repo:


4. Build RPMs:

cd emane

autoreconf

./configure && make rpm


5. Install RPMs:

cd .rpmbuild

sudo yum install RPMS/x86_64/.rpm RPMS/noarch/.rpm


## <a name='Ubuntu 12.04 LTS'></a>Ubuntu 12.04 LTS

1. Add the ppa:ubuntu-toolchain-r/test repository for gcc 4.7 (required for C++11 support):

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

sudo apt-get update


2. Install EMANE build dependencies:
 

sudo apt-get install gcc-4.7 g++-4.7 autoconf automake libtool libxml2-dev libprotobuf-dev \

python-protobuf libpcap-dev libpcre3-dev uuid-dev libace-dev python-stdeb debhelper
pkg-config python-lxml libxml-simple-perl libxml-libxml-perl python-setuptools


3. Clone the EMANE repo:


4. Build debs:

cd emane

autoreconf

export CXX=g++-4.7

./configure && make deb


5. Install debs:

cd .debbuild

sudo dpkg -i emane*.deb


## <a name='Ubuntu 13.10'></a>Ubuntu 13.10

1. Install EMANE build dependencies:
 

sudo apt-get install gcc g++ autoconf automake libtool libxml2-dev libprotobuf-dev \

python-protobuf libpcap-dev libpcre3-dev uuid-dev libace-dev python-stdeb debhelper
pkg-config python-lxml libxml-simple-perl libxml-libxml-perl python-setuptools


3. Clone the EMANE repo:


4. Build debs:

cd emane

autoreconf

./configure && make deb


5. Install debs:

cd .debbuild

sudo dpkg -i emane*.deb