Attachment 'Ubuntu_6.06.txt'

Download

   1 Installing the Tuscany build system on Ubuntu 6.06 LTS
   2 
   3 Author: Geoff Winn
   4 Date: 12-Oct-2006
   5 
   6 These instructions are verified correct at the time of writing. However,
   7 version numbers will inevitably change over time and the current
   8 instructions for building and testing Tuscany can be found on the project
   9 website at http://incubator.apache.org/tuscany/cpp-projects.html
  10 
  11 Assuming that you have just installed Ubuntu Linux 6.06 LTS 
  12 
  13 Install Pre-requisites.
  14 
  15 Use the Synaptic Package Manager, which you launch from the System menu via
  16 System -> Administration -> Synaptic Package Manager (it will ask for the root
  17 password).
  18 
  19 From the (long) list of packages you will need to select
  20 
  21 subversion 1.3.1
  22 libxml2-dev 2.6.24
  23 autogen 5.8.1
  24 libtool 1.5.22
  25 automake 1.9
  26 gcc 4.0.3
  27 make 3.8
  28 
  29 And then apply the changes, which will take a few minutes.
  30 
  31 You should find that ant 1.6.5 is already installed.
  32 
  33 Several other components have to be installed manually, along with the Tuscany
  34 source code itself. We will assume that all these components are to be
  35 installed in $HOME/tuscany. They can be installed elsewhere as long as the
  36 appropriate environment variables are set correctly.
  37 
  38 The Tuscany build system will require the following environment variables to
  39 be set.
  40 
  41 export LIBXML2_LIB=/usr/lib
  42 export LIBXML2_INCLUDE=/usr/include/libxml2
  43 
  44 Install a Java 1.5 JDK. You can obtain this from
  45 http://java.sun.com/j2se/1.5.0/download.jsp, currently
  46 jdk-1_5_0_06-linux-i586.bin
  47 
  48 Run the .bin file (you may need to change the permissions to make it
  49 executable). This will extract the JDK into $HOME/tuscany/jdk1.5.0_06
  50 To make this JDK usable, you must add it to the PATH and also create a
  51 JAVA_HOME environmnet variable as follows.
  52 
  53 export JAVA_HOME=$HOME/tuscany/jdk1.5.0_06
  54 PATH=$JAVA_HOME/bin:$PATH
  55 
  56 It is best to add the location of the new JDK to the beginning of PATH to
  57 avoid confusion with the older JDK that is already installed.
  58 
  59 You will also need Axis2C, currently version 0.94. This is available as
  60 axis2c-bin-0.94-linux.tar.gz from http://ws.apache.org/axis2/c.
  61 
  62 In $HOME/Tuscany do
  63 
  64 $ tar xzf axis2c-bin-0.94-linux.tar.gz
  65 
  66 This will extract the contents of the archive into $HOME/tuscany/axis2c-bin-0.94-linux
  67 
  68 Then you must set the following environment variables.
  69 
  70 export AXIS2C_HOME=$HOME/tuscany/axis2c-bin-0.94-linux
  71 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AXIS2C_HOME/lib
  72 
  73 To download the Tuscany C++ code:
  74 
  75 From $HOME/tuscany, do
  76 
  77 $ svn checkout http://svn.apache.org/repos/asf/incubator/tuscany/cpp 
  78 
  79 This will check out all the source code into $HOME/tuscany/cpp.
  80 
  81 Configure your environment:
  82 export TUSCANY_SCACPP=$HOME/tuscany/cpp/sca/deploy
  83 export TUSCANY_SDOCPP=$HOME/tuscany/cpp/sdo/deploy
  84 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TUSCANY_SDOCPP/lib:$TUSCANY_SCACPP/lib
  85 
  86 The builds use the GNU automake and configure tools, which analyze your
  87 environment and generate the make files you need.
  88 
  89 To build the SDO C++ runtime:
  90 
  91 cd $HOME/tuscany/cpp/sdo
  92 ./autogen.sh
  93 ./configure --prefix=$TUSCANY_SDOCPP --enable-static=no
  94 make
  95 make install
  96 
  97 To build the SDO C++ samples:
  98 
  99 cd $HOME/tuscany/cpp/sdo/samples
 100 ./autogen.sh
 101 ./configure --prefix=$TUSCANY_SDOCPP --enable-static=no
 102 make
 103 make install
 104 
 105 Alternatively, Tuscany provides build.sh scripts that do all of this for you.
 106 
 107 Also, when you make code changes in general you just run make and make
 108 install and not the whole set of steps.
 109 
 110 To run the the SDO test suite:
 111 cd $HOME/tuscany/cpp/sdo
 112 ./sdotest.sh
 113 
 114 or use
 115 
 116 make check
 117 
 118 To build the SCA C++ runtime:
 119 
 120 cd $HOME/tuscany/cpp/sca
 121 ./autogen.sh
 122 ./configure --prefix=$TUSCANY_SCACPP --enable-static=no
 123 make
 124 make install
 125 
 126 To build the SCA C++ samples:
 127 
 128 cd $HOME/tuscany/cpp/sdo/samples
 129 ./autogen.sh
 130 ./configure --prefix=$TUSCANY_SCACPP --enable-static=no
 131 make
 132 make install
 133 
 134 To run the SCA calculator sample:
 135 
 136 cd $HOME/tuscany/cpp/sca/deploy/samples/Calculator/deploy/bin
 137 ./runclient.sh

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.