These steps take no more than 15 mns to complete,starting from scratch. After you complete them, you should be all set to build the Tuscany C++ runtime.
From a shell prompt, create a $HOME/tuscany directory.
Install the following prerequisites:
In '$HOME/tuscany' do tar xzf apache-ant-1.6.5-bin.tar.gz.
export JAVA_HOME=$HOME/tuscany/jdk1.5.0_06
PATH=$JAVA_HOME/bin:$PATH
Download JDK 5.0 from java.sun.com.
From $HOME/tuscany run jdk-1_5_0_06-linux-i586.bin, this will extract the JDK in $HOME/tuscany/jdk1.5.0_06.
export JAVA_HOME=$HOME/tuscany/jdk1.5.0_06
PATH=$JAVA_HOME/bin:$PATH
Libxml2 2.6.20 or later.Libxml2 is already in most Linux distros, just check that you have version 2.6.20 or later. To see which version of libxml2 is installed on your system do rpm -aq | grep libxml2.
Configure your environment:export LIBXML2_LIB=/usr/lib
export LIBXML2_INCLUDE=/usr/include/libxml2
Download axis2c-bin-0.92-linux.tar.gz from Apache.org.
From $HOME/Tuscany do tar xzf axis2c-bin-0.92-linux.tar.gz, this will install Axis2C in $HOME/Tuscany/axis2c-bin-0.92-linux.
export AXIS2C_HOME=$HOME/tuscany/axis2c-bin-0.92-linux
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AXIS2C_HOME/lib
From $HOME/tuscany, do svn co http://svn.apache.org/repos/asf/incubator/tuscany/cpp, this will check out all the source code in $HOME/tuscany/cpp.
export TUSCANY_SCACPP=$HOME/tuscany/cpp/sca/deploy
export TUSCANY_SDOCPP=$HOME/tuscany/cpp/sdo/deploy
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TUSCANY_SDOCPP/lib:$TUSCANY_SCACPP/lib
The builds use the GNU automake + configure tools, which nicely analyze your environment and generate all the make files you need.
To build the SDO C++ runtime:
cd $HOME/tuscany/cpp/sdo ./autogen.sh ./configure --prefix=$TUSCANY_SDOCPP --enable-static=no make make install cd $HOME/tuscany/cpp/sdo/samples ./autogen.sh ./configure --prefix=$TUSCANY_SDOCPP --enable-static=no make make install
Note: Tuscany already has build.sh scripts that do all of this for you, but I wanted to use the individual commands to understand what was going on at each step. Also, when you make code changes in general you just run make and make install and not the whole set of steps.
To run the the SDO test suite:
cd $HOME/tuscany/cpp/sdo ./sdotest.shTo build the SCA C++ runtime:
cd $HOME/tuscany/cpp/sca ./autogen.sh ./configure --prefix=$TUSCANY_SCACPP --enable-static=no make make install cd $HOME/tuscany/cpp/sdo/samples ./autogen.sh ./configure --prefix=$TUSCANY_SCACPP --enable-static=no make make installTo run the SCA runtime tests:
cd $HOME/tuscany/cpp/sdo ./scatest.shTo run the SCA calculator sample:
cd $HOME/tuscany/cpp/sca/deploy/samples/Calculator/deploy/bin ./runclient.sh