2009-11-23 05:48:11 +00:00
|
|
|
Apache Tuscany SCA Runtime
|
|
|
|
==========================
|
|
|
|
|
2011-06-28 15:50:47 +00:00
|
|
|
Automated installation on Ubuntu Server 10.10
|
2010-11-14 09:27:28 +00:00
|
|
|
=============================================
|
2010-03-13 18:40:42 +00:00
|
|
|
|
2011-06-28 15:50:47 +00:00
|
|
|
Tuscany provides two automated install scripts for Ubuntu Server 10.10. You can
|
|
|
|
start with a fresh Ubuntu Server 10.10 system and these scripts will take care
|
|
|
|
of all the download, build and installation steps for you.
|
|
|
|
|
|
|
|
ubuntu/ubuntu-install:
|
|
|
|
Build and installation of the most commonly used Tuscany features with most
|
|
|
|
dependencies built from source.
|
2010-06-05 05:38:55 +00:00
|
|
|
|
|
|
|
ubuntu/ubuntu-install-all:
|
2011-06-28 15:50:47 +00:00
|
|
|
Build and installation of all the Tuscany features with most dependencies
|
|
|
|
built from source.
|
2010-06-05 05:38:55 +00:00
|
|
|
|
|
|
|
System dependencies are downloaded and installed using sudo apt-get. Source
|
|
|
|
dependencies are downloaded and built in the current directory.
|
2010-03-13 18:40:42 +00:00
|
|
|
|
|
|
|
To run the automated installation:
|
|
|
|
mkdir tuscany
|
|
|
|
cd tuscany
|
2011-06-28 15:50:47 +00:00
|
|
|
curl -OL http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/ubuntu/ubuntu-install
|
|
|
|
chmod +x ./ubuntu-install
|
|
|
|
./ubuntu-install
|
2010-03-15 06:13:25 +00:00
|
|
|
|
2010-06-05 05:38:55 +00:00
|
|
|
The installation script will display each command as it's executed.
|
2010-03-13 18:40:42 +00:00
|
|
|
|
|
|
|
That's all you need to do to build and install the Tuscany SCA runtime on
|
2011-06-28 15:50:47 +00:00
|
|
|
Ubuntu Server 10.10.
|
|
|
|
|
|
|
|
Automated installation on Max OS X 10.6.7
|
|
|
|
=========================================
|
|
|
|
|
|
|
|
Tuscany provides an automated install script for Mac OS X 10.6.7. You can start
|
|
|
|
with a fresh Mac OS X 10.6.7 system and the script will take care of all the
|
|
|
|
download, build and installation steps for you.
|
|
|
|
|
|
|
|
macos/macos-install:
|
|
|
|
Build and installation of the most commonly used Tuscany features with all
|
|
|
|
dependencies built from source.
|
|
|
|
|
|
|
|
The only required system dependency is the GCC C++ compiler 4.4.5+. All other
|
|
|
|
dependencies are downloaded and built from source in the current directory.
|
|
|
|
|
|
|
|
Before running the automated installation install GCC 4.6 from the HPC for Mac
|
|
|
|
OS X project (http://hpc.sourceforge.net/) like this:
|
|
|
|
curl -OL http://prdownloads.sourceforge.net/hpc/gcc-snwleo-intel-bin.tar.gz
|
|
|
|
sudo tar -xf $build/gcc-snwleo-intel-bin.tar.gz -C /
|
|
|
|
|
|
|
|
or if you prefer to use GCC from Macports (http://www.macports.org/), install
|
|
|
|
GCC 4.4.5+ like this:
|
|
|
|
sudo port install gcc44
|
|
|
|
|
|
|
|
then adjust the following line in macos/macos-install:
|
|
|
|
./configure CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ ...
|
|
|
|
to point to the GCC binaries you've installed.
|
|
|
|
|
|
|
|
To run the automated installation:
|
|
|
|
mkdir tuscany
|
|
|
|
cd tuscany
|
|
|
|
curl -OL http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/macos/macos-install
|
|
|
|
chmod +x ./macos-install
|
|
|
|
./macos-install
|
|
|
|
|
|
|
|
The installation script will display each command as it's executed.
|
|
|
|
|
|
|
|
That's all you need to do to build and install the Tuscany SCA runtime on Mac
|
|
|
|
OS X 10.6.7.
|
2010-03-13 18:40:42 +00:00
|
|
|
|
|
|
|
|
2011-06-28 15:50:47 +00:00
|
|
|
Step by step build and installation
|
|
|
|
===================================
|
2010-03-13 18:40:42 +00:00
|
|
|
|
2011-06-28 15:50:47 +00:00
|
|
|
For manual build and install steps on systems other than Ubuntu 10.10 and
|
|
|
|
Mac OS X 10.6.7, or if you need to customize your installation, read on...
|
2009-11-23 05:48:11 +00:00
|
|
|
|
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-11-14 09:27:28 +00:00
|
|
|
autoconf-2.67
|
2010-03-13 18:40:42 +00:00
|
|
|
automake-1.11
|
2010-01-05 09:17:17 +00:00
|
|
|
libtool-2.2.6
|
2010-11-14 09:27:28 +00:00
|
|
|
doxygen-1.7.1
|
|
|
|
gcc-g++-4.4.5
|
2010-01-06 06:35:48 +00:00
|
|
|
|
|
|
|
Then install the following development dependencies:
|
2009-11-23 05:48:11 +00:00
|
|
|
|
2010-02-01 07:57:32 +00:00
|
|
|
Apache HTTP server and APR:
|
2010-12-25 01:58:38 +00:00
|
|
|
httpd-2.3.10 (http://httpd.apache.org/)
|
2010-12-27 05:59:19 +00:00
|
|
|
apr-1.4.x (http://apr.apache.org/)
|
2010-11-14 09:27:28 +00:00
|
|
|
built with OpenSSL libssl-0.9.8, libpcre3-8.02,
|
|
|
|
and expat 2.0.1
|
2009-11-30 08:36:59 +00:00
|
|
|
|
2010-03-29 06:26:16 +00:00
|
|
|
Memcached:
|
2010-10-20 04:59:46 +00:00
|
|
|
memcached-1.4.5 (http://memcached.org/)
|
2010-11-14 09:27:28 +00:00
|
|
|
built with libevent-1.4.13
|
2010-03-29 06:26:16 +00:00
|
|
|
|
2010-02-01 07:57:32 +00:00
|
|
|
XML:
|
2010-04-04 07:31:28 +00:00
|
|
|
libxml2-2.7.7 (http://xmlsoft.org/)
|
2009-11-23 05:48:11 +00:00
|
|
|
|
2010-02-01 07:57:32 +00:00
|
|
|
CURL:
|
2010-04-22 07:34:35 +00:00
|
|
|
curl-7-19-5
|
2010-03-13 18:40:42 +00:00
|
|
|
libcurl4-openssl-7.19.5
|
2010-01-06 06:35:42 +00:00
|
|
|
|
2010-02-01 07:57:32 +00:00
|
|
|
JSON:
|
2011-08-14 21:53:15 +00:00
|
|
|
Mozilla SpiderMonkey libmozjs 1.8.5 and
|
2011-08-11 09:28:49 +00:00
|
|
|
(https://developer.mozilla.org/en/SpiderMonkey)
|
2011-08-14 21:53:15 +00:00
|
|
|
built with Mozilla nspr-4.8.8
|
2010-04-04 07:31:28 +00:00
|
|
|
|
|
|
|
Key/value store:
|
|
|
|
tinycdb-0.77 (http://www.corpit.ru/mjt/tinycdb.html)
|
2009-11-23 05:48:11 +00:00
|
|
|
|
2010-01-30 08:06:00 +00:00
|
|
|
Optional dependencies:
|
2010-01-05 09:17:17 +00:00
|
|
|
|
2011-06-28 15:50:47 +00:00
|
|
|
Web application firewall:
|
|
|
|
Mod-security 2.6.0 (http://www.modsecurity.org/)
|
|
|
|
with the Mod-security core rule set 2.2.0
|
|
|
|
|
2010-02-01 07:57:32 +00:00
|
|
|
Web Services:
|
|
|
|
Apache Axis2/C 1.6.0 (http://ws.apache.org/axis2/c/)
|
|
|
|
|
|
|
|
Queueing:
|
|
|
|
Apache Qpid/C++ 0.6 (http://qpid.apache.org/)
|
2010-11-14 09:27:28 +00:00
|
|
|
built with libuuid-2.17.2, libboost-1.42.0, libboost-program-options-1.42.0 and
|
|
|
|
libboost-filesystem-1.42.0
|
2010-02-01 07:57:32 +00:00
|
|
|
|
|
|
|
Python:
|
2010-11-14 09:27:28 +00:00
|
|
|
Python 2.6.6 (http://www.python.org/)
|
2010-12-06 07:19:13 +00:00
|
|
|
Google AppEngine 1.4.0 (http://code.google.com/appengine/)
|
2010-02-01 07:57:32 +00:00
|
|
|
|
2011-08-28 02:50:09 +00:00
|
|
|
OpenCL:
|
|
|
|
an OpenCL SDK (http://software.intel.com/en-us/articles/opencl-sdk/,
|
|
|
|
http://developer.nvidia.com/, http://developer.amd.com/sdks/amdappsdk)
|
|
|
|
|
2010-02-01 07:57:32 +00:00
|
|
|
Java:
|
|
|
|
a Java 5+ JDK (http://openjdk.java.net/, http://harmony.apache.org/)
|
|
|
|
|
2010-09-19 00:09:52 +00:00
|
|
|
OpenID authentication:
|
2010-06-27 16:16:58 +00:00
|
|
|
Mod_auth_openid (http://trac.butterfat.net/public/mod_auth_openid)
|
|
|
|
build it from source at http://github.com/jsdelfino/mod_auth_openid
|
|
|
|
requires Libopkele (http://kin.klever.net/libopkele/ or
|
|
|
|
http://github.com/jsdelfino/libopkele)
|
|
|
|
and HTML Tidy (http://tidy.sourceforge.net/)
|
|
|
|
|
2010-09-19 00:09:52 +00:00
|
|
|
OAuth authorization:
|
|
|
|
Liboauth 0.9.1 (http://liboauth.sourceforge.net/)
|
|
|
|
|
2010-02-01 07:57:32 +00:00
|
|
|
XMPP Chat:
|
2010-03-21 22:00:32 +00:00
|
|
|
Apache Vysper 0.5 (http://mina.apache.org/)
|
|
|
|
|
2010-05-31 17:42:16 +00:00
|
|
|
Libstrophe (http://code.stanziq.com/strophe/)
|
|
|
|
build it from source at git://github.com/jsdelfino/libstrophe.git
|
2010-01-17 09:02:57 +00:00
|
|
|
|
2010-04-04 07:31:28 +00:00
|
|
|
SQL Database:
|
2011-02-26 20:59:52 +00:00
|
|
|
postgresql-9.0.3 (http://www.postgresql.org/)
|
2010-04-04 07:31:28 +00:00
|
|
|
|
2010-05-16 05:22:18 +00:00
|
|
|
Logging:
|
2010-05-16 21:08:34 +00:00
|
|
|
Facebook Scribe 2.2 (http://github.com/facebook/scribe/downloads)
|
2010-05-31 17:42:16 +00:00
|
|
|
requires Apache Thrift 0.2.0 (http://incubator.apache.org/thrift/)
|
2010-05-16 21:08:34 +00:00
|
|
|
|
|
|
|
Cloud deployment:
|
|
|
|
Apache Libcloud 0.3.1 (http://incubator.apache.org/libcloud/)
|
|
|
|
|
2010-01-06 06:35:48 +00:00
|
|
|
|
2010-01-05 09:17:17 +00:00
|
|
|
To configure the Tuscany SCA build do this:
|
2010-02-17 04:14:31 +00:00
|
|
|
./bootstrap
|
2009-11-23 05:48:11 +00:00
|
|
|
./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
|
|
|
|
|
2010-02-17 04:14:31 +00:00
|
|
|
To enable multi-threading (required by the Queue and Chat components and
|
|
|
|
for running with the HTTPD worker or event multi-threaded MPMs):
|
2010-01-05 09:17:17 +00:00
|
|
|
--enable-threads
|
|
|
|
|
2010-01-11 08:30:15 +00:00
|
|
|
To enable support for Python component implementations:
|
|
|
|
--enable-python
|
|
|
|
|
2011-08-28 02:50:09 +00:00
|
|
|
To enable support for OpenCL component implementations:
|
|
|
|
--enable-opencl
|
|
|
|
|
2010-01-11 08:30:15 +00:00
|
|
|
To enable support for Java component implementations:
|
|
|
|
--enable-java
|
|
|
|
|
2010-02-01 07:57:32 +00:00
|
|
|
To build the Queue utility component (requires Apache Qpid/C++):
|
|
|
|
--enable-queue
|
|
|
|
|
2010-03-10 09:34:11 +00:00
|
|
|
To build the Chat utility component (requires Libstrophe and optionally Apache
|
|
|
|
Vysper if you want to run the tests with a local Vysper XMPP server):
|
2010-02-01 07:57:32 +00:00
|
|
|
--enable-chat
|
|
|
|
|
2010-06-05 05:38:55 +00:00
|
|
|
To build the Log utility component (requires Facebook Scribe and Apache Thrift):
|
|
|
|
--enable-log
|
|
|
|
|
2010-04-04 07:31:28 +00:00
|
|
|
To build the SQL Database utility component (requires PostgreSQL):
|
|
|
|
--enable-sqldb
|
|
|
|
|
2010-06-05 05:38:55 +00:00
|
|
|
To build the Web service utility component (requires Apache Axis2/C):
|
|
|
|
--enable-webservice
|
|
|
|
|
2010-09-19 00:09:52 +00:00
|
|
|
To build the support for OAuth authorization:
|
2010-09-06 07:45:00 +00:00
|
|
|
--enable-oauth
|
|
|
|
|
|
|
|
To build the support for OpenID authentication:
|
|
|
|
--enable-openid
|
|
|
|
|
2011-06-28 15:50:47 +00:00
|
|
|
To build the support for Mod-security:
|
|
|
|
--enable-mod-security
|
|
|
|
|
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
|
|
|
|
2011-06-28 15:50:47 +00:00
|
|
|
Here's an example configuration tested on Ubuntu 10.10, with the system
|
2010-02-01 07:57:32 +00:00
|
|
|
dependencies installed in the standard system directories and some of the
|
|
|
|
dependencies installed under $HOME:
|
2010-01-05 09:17:17 +00:00
|
|
|
|
|
|
|
./configure --prefix=$HOME/tuscany-sca-cpp-bin \
|
2010-12-27 05:59:19 +00:00
|
|
|
--with-apr=$HOME/apr-1.4.x-bin --with-httpd=$HOME/httpd-2.3.10-bin \
|
2010-10-20 04:59:46 +00:00
|
|
|
--with-memcached=$HOME/memcached-1.4.5-bin \
|
2010-04-04 07:31:28 +00:00
|
|
|
--with-tinycdb=$HOME/tinycdb-0.77-bin \
|
|
|
|
--with-curl=$HOME/curl-7.19.5-bin --with-libxml2=/usr \
|
2011-08-11 09:28:49 +00:00
|
|
|
--with-js-include=$HOME/js-1.8.5-bin/include \
|
|
|
|
--with-js-lib=$HOME/js-1.8.5-bin/lib \
|
2010-06-05 05:38:55 +00:00
|
|
|
--enable-libcloud \
|
2010-05-16 21:08:34 +00:00
|
|
|
--with-libcloud=$HOME/libcloud-0.3.1-bin \
|
2010-02-17 04:14:31 +00:00
|
|
|
--enable-threads \
|
2010-01-11 08:30:15 +00:00
|
|
|
--enable-python --with-python=/usr \
|
2011-08-28 02:50:09 +00:00
|
|
|
--enable-opencl --with-opencl-include=/usr/include --with-opencl-lib=/usr/lib \
|
2010-04-11 03:13:15 +00:00
|
|
|
--enable-gae --with-gae=$HOME/google_appengine \
|
2010-01-11 08:30:15 +00:00
|
|
|
--enable-java --with-java=/usr/lib/jvm/default-java \
|
|
|
|
--enable-webservice --with-axis2c=$HOME/axis2c-1.6.0-bin \
|
2010-04-04 07:31:28 +00:00
|
|
|
--with-libxml2=$HOME/libxml2-2.7.7-bin \
|
2010-02-01 07:57:32 +00:00
|
|
|
--enable-queue --with-qpidc=$HOME/qpidc-0.6-bin \
|
2010-04-10 23:01:32 +00:00
|
|
|
--enable-chat --with-libstrophe=$HOME/libstrophe-bin \
|
2010-03-27 16:57:21 +00:00
|
|
|
--with-vysper=$HOME/vysper-0.5 \
|
2011-02-26 20:59:52 +00:00
|
|
|
--enable-sqldb --with-pgsql=$HOME/postgresql-9.0.3-bin \
|
2010-05-16 05:22:18 +00:00
|
|
|
--enable-log --with-thrift=$HOME/thrift-0.2.0-bin \
|
|
|
|
--with-scribe=$HOME/scribe-2.2-bin \
|
2010-06-27 16:16:58 +00:00
|
|
|
--enable-openid --with-mod-auth-openid=$HOME/mod-auth-openid-bin \
|
2010-09-19 00:09:52 +00:00
|
|
|
--enable-oauth --with-liboauth=$HOME/liboauth-0.9.1-bin \
|
2011-06-28 15:50:47 +00:00
|
|
|
--enable-mod-security --with-mod-security=$HOME/modsecurity-apache-2.6.0-bin \
|
2010-01-30 08:06:00 +00:00
|
|
|
--enable-maintainer-mode
|
2010-01-05 09:17:17 +00:00
|
|
|
|
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
|
|
|
To install the Tuscany SCA binaries, do this:
|
2010-01-05 09:17:17 +00:00
|
|
|
make install
|
|
|
|
|
2011-06-28 15:50:47 +00:00
|
|
|
|