Changes between Version 8 and Version 9 of BaseInstall


Ignore:
Timestamp:
Jan 22, 2009, 8:49:07 PM (15 years ago)
Author:
Christoph Mayer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BaseInstall

    v8 v9  
    44
    55Ariba currently build on Linux systems. Our reference platform is Ubuntu 8.04 with the gcc compiler version 4.2.4. Download the latest Ariba package from the the [https://projekte.tm.uka.de/trac/spovnet-base/downloads download site]:
    6 {{{
    7 > wget https://projekte.tm.uni-karlsruhe.de/download/ariba/releases/ariba-x.x.x.tar.gz
    8 }}}
    96
    107Extract the archive and change into the project directory:
     
    1411}}}
    1512
    16 Now, configure, compile, and install Ariba:
     13Now, configure, compile, and install Ariba (if not all libraries needed by Ariba are available on your system, read the section 'Prequisites'):
    1714{{{
    1815> ./configure
     
    2320In case you don't want to install Ariba into your system but to a local place, do:
    2421{{{
    25 > mkdir ariba
    26 > ./configure --prefix=/home/user/ariba/
     22> mkdir build
     23> ./configure --prefix=$PWD/build
    2724> make
    2825> make install
    2926}}}
    3027
     28== Running the PingPong Sample ==
     29
     30-configs anpassen etc
     31
    3132== Prequisites ==
    3233
    33 Ariba depends on some libraries that may not be installed on your system: [http://www.boost.org Boost], [http://logging.apache.org/log4cxx Log4cxx], [http://gmplib.org GMP], and optionally [http://www.stack.nl/~dimitri/doxygen/ Doxygen]. Furthermore, you need default development tools that are most likely already installed on your system (gcc, autoconf, automake, aclocal, libtool, ...).
     34Ariba depends on libraries that may not be installed on your system:
    3435
    35 If you have root privileges on your system you can easily install the needed libraries using apt-get:
     36 * [http://www.boost.org Boost]
     37 * [http://logging.apache.org/log4cxx Log4cxx]
     38 * [http://gmplib.org GMP]
     39
     40Furthermore, you need default development tools - that are most likely already installed on your system - such as gcc, autoconf, automake, aclocal, libtool, ...
     41
     42If you installed some of the libraries locally and not system wide (e.g. using {{{./configure --prefix=MYPATH}}}, you have to tell Ariba where the libraries are installed. In this example we assume that (1) all libraries are installed locally, and not system wide, and (2) that you want to install Ariba locally. The installation process would then look as follow:
     43
    3644{{{
    37 > apt-get install
     45> mkdir build
     46> ./configure
     47  --prefix=$PWD/build
     48  --with-boost=/home/user/libraries/boost_1_35_0/build   
     49  CPPFLAGS='-I/home/user/libraries/gmp_4_2_2/build/include
     50  -I/home/user/libraries/log4cxx_0_10_0/build/include'
     51  LDFLAGS='-L/home/user/libraries/gmp_4_2_2/build/lib
     52  -L/home/user/libraries/log4cxx_0_10_0/build/lib
     53  -L/home/user/libraries/boost_1_35_0/build/lib'
     54> make
     55> make install
    3856}}}
    3957
     58This will build and install Ariba into the created {build} folder.
    4059
    41 TODO: ariba
     60== Building for Simulations ==
     61
     62Ariba support transparent simulation integration for [http://www.omnetpp.org OMNeT++] and the INET framework. Currently v3 of OMNeT++ is supported. Porting to OMNeT++ 4 will be finished soon. Furthermore, interation with [http://www.oversim.org OverSim] is in the queue. 
     63
     64To build Ariba for simulated environment, use the {{{--enable-simulation=yes}}} option to {{{configure}}}. Furthermore, you have to tell Ariba where OMNeT++ and INET include files reside. This time we assume that you have installed the required libraries (like Boost) system wide. If this is not the case, you would have include the paths as shown above
     65
    4266{{{
    43 cd spovnet/trunk;
    44 mkdir build;
    45 ./configure --prefix=/home/mayer/SpoVNet/development-ka/spovnet/trunk/build --with-boost=/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/boost_1_35_0/build CPPFLAGS='-I/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/gmp_4_2_2/build/include -I/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/log4cxx_0_10_0/build/include' LDFLAGS='-L/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/gmp_4_2_2/build/lib -L/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/log4cxx_0_10_0/build/lib -L/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/boost_1_35_0/build/lib'
     67> ./configure --prefix=$PWD/build
     68  CPPFLAGS='-I/home/user/omnet/include
     69  -I/home/user/inet/Network/IPv4
     70  -I/home/user/inet/Base
     71  -I/home/user/inet/Network/Contract
     72  -I/home/user/inet/NetworkInterfaces/Contract
     73  -I/home/user/inet/Transport/TCP
     74  -I/home/user/inet/Transport/UDP
     75  -I/home/user/inet/Transport/Contract'
     76  --enable-simulation=yes
     77> make
     78> make install
    4679}}}
    4780
    48 TODO mcpo
    49 {{{
    50 cd mcpo/trunk;
    51 mkdir build;
    52 ./configure --prefix=/home/mayer/SpoVNet/development-ka/mcpo/trunk/build --with-boost=/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/boost_1_35_0/build CPPFLAGS='-I/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/log4cxx_0_10_0/build/include -I/home/mayer/SpoVNet/development-ka/spovnet/trunk/build/include' LDFLAGS='-L/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/log4cxx_0_10_0/build/lib -L/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/boost_1_35_0/build/lib -L/home/mayer/SpoVNet/development-ka/spovnet/trunk/build/lib'
    53 }}}
     81This will compile the Ariba library with simulation support and the PingPong sample with simulation support. Note, that the PingPong example will now be compiled as a shared library and reside in {{{build/lib}}}. Details on how to run the simulated PingPong sample are detailed in the next section.
    5482
    55 TODO ariba simulation
    56 {{{
    57 cd spovnet/trunk;
    58 mkdir buikld;
    59 ./configure --prefix=/home/mayer/SpoVNet/development-ka/spovnet/trunk/build --with-boost=/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/boost_1_35_0/build CPPFLAGS='-I/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/gmp_4_2_2/build/include -I/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/log4cxx_0_10_0/build/include -I/home/mayer/Distack/omnet/include -I/home/mayer/Distack/inet/Network/IPv4 -I/home/mayer/Distack/inet/Base -I/home/mayer/Distack/inet/Network/Contract -I/home/mayer/Distack/inet/NetworkInterfaces/Contract -I/home/mayer/Distack/inet/Transport/TCP -I/home/mayer/Distack/inet/Transport/UDP -I/home/mayer/Distack/inet/Transport/Contract' LDFLAGS='-L/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/gmp_4_2_2/build/lib -L/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/log4cxx_0_10_0/build/lib -L/home/mayer/SpoVNet/development-ka/spovnet/trunk/lib/boost_1_35_0/build/lib' --enable-simulation=yes
    60 }}}
     83== Running the Simulated PingPong Sample ==
     84
     85== Overview of special {{{configure}}} options ==
     86
     87There are several options to {{{configure}}} that are specific to Ariba:
     88
     89 * {{{--enable-debug=yes}}} - for building a debug build
     90 * {{{--enable-simulation=yes}}} - for building for simulation integration
     91 * {{{--enable-profiling=yes}}} - for profiling with gprof
     92