2009-11-23 05:48:11 +00:00
|
|
|
Apache Tuscany SCA Runtime
|
|
|
|
==========================
|
|
|
|
|
|
|
|
Building
|
|
|
|
========
|
|
|
|
|
2010-01-05 09:17:17 +00:00
|
|
|
The Tuscany SCA Linux build uses the GNU Autotools tool chain.
|
|
|
|
|
2010-01-06 06:35:48 +00:00
|
|
|
First install the following development tools:
|
2010-01-05 09:17:17 +00:00
|
|
|
autoconf-2.64
|
|
|
|
automake-1.4
|
2010-01-06 06:35:42 +00:00
|
|
|
g++-4.4.1
|
2010-01-05 09:17:17 +00:00
|
|
|
libtool-2.2.6
|
|
|
|
doxygen-1.6.1
|
|
|
|
|
2010-01-06 06:35:48 +00:00
|
|
|
Install the following binaries:
|
|
|
|
curl-7.19.5
|
|
|
|
memcached-1.2.8
|
|
|
|
|
|
|
|
|
|
|
|
Then install the following development dependencies:
|
2009-11-23 05:48:11 +00:00
|
|
|
|
|
|
|
HTTP server and APR
|
|
|
|
httpd-2.2-13
|
|
|
|
libapr-1-0.3.8
|
|
|
|
libaprutil-1-0.3.9
|
2009-11-30 08:36:59 +00:00
|
|
|
|
2010-01-05 09:17:17 +00:00
|
|
|
Recommended HTTPD configure options:
|
|
|
|
--with-included-apr to build HTTPD with the included APR distribution,
|
|
|
|
--with-mpm=worker to run HTTPD modules in multiple threads.
|
2009-11-23 05:48:11 +00:00
|
|
|
|
|
|
|
XML
|
|
|
|
libxml2-2.7.5
|
|
|
|
|
2010-01-06 06:35:42 +00:00
|
|
|
CURL
|
|
|
|
libcurl4-7.19.5
|
|
|
|
|
2009-11-23 05:48:11 +00:00
|
|
|
JSON
|
|
|
|
SpiderMonkey libmozjs
|
|
|
|
(included in xulrunner-1.9.1.5)
|
|
|
|
|
2010-01-05 09:17:17 +00:00
|
|
|
Python
|
|
|
|
libpython2.6
|
|
|
|
|
2010-01-06 06:35:48 +00:00
|
|
|
|
2010-01-05 09:17:17 +00:00
|
|
|
To configure the Tuscany SCA build do this:
|
2009-11-23 05:48:11 +00:00
|
|
|
./autogen.sh
|
|
|
|
./configure --prefix=<install dir>
|
|
|
|
|
2010-01-05 09:17:17 +00:00
|
|
|
To enable debugging and strict warning compile options, add:
|
|
|
|
--enable-maintainer-mode
|
|
|
|
|
|
|
|
To enable gprof profiling, add:
|
|
|
|
--enable-profiling
|
|
|
|
|
|
|
|
To enable multi-threading with the HTTPD worker MPM, add:
|
|
|
|
--enable-threads
|
|
|
|
|
2010-01-11 08:30:15 +00:00
|
|
|
To enable support for Python component implementations:
|
|
|
|
--enable-python
|
|
|
|
|
|
|
|
To enable support for Java component implementations:
|
|
|
|
--enable-java
|
|
|
|
|
|
|
|
To build the Web service utility component (using Axis2C):
|
|
|
|
--enable-webservice
|
|
|
|
|
2010-01-05 09:17:17 +00:00
|
|
|
To generate doxygen documentation, add:
|
|
|
|
--enable-doxygen
|
2009-11-30 08:36:59 +00:00
|
|
|
|
2010-01-05 09:17:17 +00:00
|
|
|
To configure where to find dependencies, see the --with-* options described
|
|
|
|
in the configure help:
|
2009-11-23 05:48:11 +00:00
|
|
|
./configure --help
|
|
|
|
|
2010-01-06 06:35:48 +00:00
|
|
|
|
2010-01-05 09:17:17 +00:00
|
|
|
Here's an example configuration, tested on Ubuntu 9.10, with development
|
|
|
|
dependencies installed in the standard directories and a build of the
|
|
|
|
HTTPD worker MPM in $HOME/httpd-2-2.13-bin:
|
|
|
|
|
|
|
|
./configure --prefix=$HOME/tuscany-sca-cpp-bin \
|
|
|
|
--with-apr=$HOME/httpd-2.2.13-bin --with-httpd=$HOME/httpd-2.2.13-bin \
|
2010-01-11 08:30:15 +00:00
|
|
|
--with-curl=/usr --with-libxml2=/usr \
|
2010-01-05 09:17:17 +00:00
|
|
|
--with-js-include=/usr/include/xulrunner-1.9.1.5/unstable \
|
|
|
|
--with-js-lib=/usr/lib/xulrunner-1.9.1.5 \
|
2010-01-11 08:30:15 +00:00
|
|
|
--enable-python --with-python=/usr \
|
|
|
|
--enable-java --with-java=/usr/lib/jvm/default-java \
|
|
|
|
--enable-webservice --with-axis2c=$HOME/axis2c-1.6.0-bin \
|
2010-01-05 09:17:17 +00:00
|
|
|
--enable-threads --enable-maintainer-mode
|
|
|
|
|
2010-01-06 06:35:48 +00:00
|
|
|
|
|
|
|
To build the Tuscany SCA runtime, do this:
|
2009-11-23 05:48:11 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
To run the tests, do this:
|
|
|
|
make check
|
|
|
|
|
|
|
|
To build ctags for the source, do this:
|
|
|
|
make ctags
|
|
|
|
|
|
|
|
To build a source distribution, do this:
|
|
|
|
make dist
|
|
|
|
|
|
|
|
To build a binary distribution, do this:
|
|
|
|
make bindist
|
|
|
|
|
2010-01-06 06:35:48 +00:00
|
|
|
|
2010-01-05 09:17:17 +00:00
|
|
|
Installing
|
|
|
|
==========
|
|
|
|
|
2010-01-06 06:35:48 +00:00
|
|
|
To install the Tuscany SCA binaries, do this:
|
2010-01-05 09:17:17 +00:00
|
|
|
make install
|
|
|
|
|