 |
| |
| META TOPICPARENT | name="WebHome" |
| |
> > | Updates
Note: this page is deprecated for Linux/Unix platforms. | | | This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
The steps described here applies to the releases after 2.2 and current CVS head branch. For instructions on how to build JXTA-C 2.1.* releases, look here |
| |
| META TOPICPARENT | name="WebHome" |
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
| | | Check out from CVS | |
< < | cvs -d :pserver:guest@cvs.jxta.org:/cvs login
cvs -d :pserver:guest@cvs.jxta.org:/cvs checkout jxta-c | > > | svn checkout https://jxta-c.dev.java.net/svn/jxta-c/jxta-c/trunk --username guest | | |
Step 2: Prepare for prerequisite | | | | |
< < | As how to prepare those prerequiste, it various on different operating systems. Please add information for your favorite system here: | > > | As how to prepare those prerequisite, it various on different operating systems. Please add information for your favorite system here: | | |
| | | For Win32 | |
< < | Stefan Lankes maintains the Win32 build environment. Goes to the win32 folder and you will find the jxta.sln file. Here is the instruction as in the README.txt file. | > > | Ruben Niederhagen maintains the Win32 build environment. Go to the win32 folder and you will find the jxta.sln file. Here is the instruction as in the README.txt file.
For Win32 you do also need the expat-library as described in the readme-file. | | |
General
=======
| |
< < | Currently, we support only Visual Studio .NET 2003 to build JXTA-C. Therefore,
the old VC6 project files in the current CVS tree are obsolete. | > > | Currently, we support only Visual Studio .NET 2005 to build JXTA-C. | | | To create JXTA-C on Windows you need following libraries: | | | - zlib (http://www.zlib.net/)
- sqlite3 (http://www.sqlite.org/)
- xml2 (http://xmlsoft.org/index.html) | |
> > | - expat (http://expat.sourceforge.net/) | | | Beside XML2 you can use the official distribution of these libraries. The
XML2 library has been modified in order to provide wild card searching | | | building this version of XML2. | |
< < | Check out the sources from CVS | > > | Check out the sources from SVN | | | ========================== | |
< < | cvs -d :pserver:guest@cvs.jxta.org:/cvs login
cvs -d :pserver:guest@cvs.jxta.org:/cvs checkout jxta-c | > > | svn checkout https://jxta-c.dev.java.net/svn/jxta-c/jxta-c/trunk --username guest | | |
Configuring the sources | | | You have to specify the environment variables (APACHE2, XML2, ZLIB, SQLITE3 and OPENSSL)
to the location of the necessary libraries. It is assumed that | |
< < | the headers are located in the subdirectory "include", the DLLs in the subdirtectory | > > | the headers are located in the subdirectory "include", the DLLs in the subdirectory | | | "bin" and the link libraries in the subdirectory "lib". For instance, zlib.h is located
at $(ZLIB)/include. | |
> > | The expat-stuff does not reside in an own directory for historical reasons; the library
and the header file need to be put into the APACHE2 directory. | | |
Building the sources
================ | |
< < | Open with Visual Studio .NET 2003 the project file jxta.sln in the directory "win32". | > > | Open with Visual Studio .NET 2005 the project file jxta.sln in the directory "win32". | | | Afterwards, press F7 to build the JXTA libraries and all examples.
|
| |
| META TOPICPARENT | name="WebHome" |
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
| | |
As how to prepare those prerequiste, it various on different operating systems. Please add information for your favorite system here: | |
< < |
| > > |
| | |
| Debian | apt-get install libapr1-dev libaprutil1-dev libsqlite3-dev libxml2-dev zlib1g-dev |
|
| |
| META TOPICPARENT | name="WebHome" |
| |
< < | | > > |
| | | This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
The steps described here applies to the releases after 2.2 and current CVS head branch. For instructions on how to build JXTA-C 2.1.* releases, look here | | | Download a source archive
You can get source code for JXTA-C releases at | |
< < | | > > | | | | Check out from CVS | | | | |
< < | As how to prepare those prerequiste, it various on different operating systems. For example, on a Debian based Linux distribution, apt-get with correct package names should give you most of it. | > > | As how to prepare those prerequiste, it various on different operating systems. Please add information for your favorite system here:
| | | Building Prerequisite Libraries from Source |
| |
| META TOPICPARENT | name="WebHome" |
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list | | |
Step 2: Prepare for prerequisite | |
< < | You will need the following libraries:
- Apache Portable Runtime: apr 1.2.1, apr-util 1.2.7 with SQLite3 support
- The apr-util driver for SQLite3 requires a patch for transaction support. (see Building Prerequisite Libraries from Source)
- libxml2: You will apply the patch comes with JXTA-C to enable wildcard search in XPath query
You will also need following libraries: | > > | You will need following libraries: | | | | |
> > |
You will also need to build the following libraries from source (see Building Prerequisite Libraries from Source):
- Apache Portable Runtime: apr-util 1.2.7 with SQLite3 support
- The apr-util driver for SQLite3 requires a patch for transaction support.
- libxml2: You will apply the patch comes with JXTA-C to enable wildcard search in XPath query
- SQLite3
| | | As how to prepare those prerequiste, it various on different operating systems. For example, on a Debian based Linux distribution, apt-get with correct package names should give you most of it. | | | You can always build from source code, refer to those projects for instructions on how to build them on your platform. The following are the considerations for JXTA-C. | |
> > |
- libXML2
- Apply the patch that comes with JXTA-C. Follow the directions in: JXTA-C directory/lib/libxml2/INSTALL
- SQLite
- Should be built with --enable-threadsafe option
- When using ephemeral address spaces, there is a problem in SQLite that creates a memory leak. The current CVS repository contains a fix for this problem and should be rebuilt. If ephemeral address spaces are not used the official release 3.3.6 is recommended.
| | |
- apr-util
- Version 1.2.7 of apr-util is required along with a fix for SQL transaction support. You have 2 options for building apr-util.
- You can download from the SVN repository revision 398048. This revision has been tested.
| | | make install
| |
< < |
- SQLite
- Should be built with --enable-threadsafe option
- When using ephemeral address spaces, there is a problem in SQLite that creates a memory leak. The current CVS repository contains a fix for this problem and should be rebuilt. If ephemeral address spaces are not used the official release 3.3.6 is recommended.
| | | Step 3: Build
For *nices |
| |
| META TOPICPARENT | name="WebHome" |
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list | | | You can always build from source code, refer to those projects for instructions on how to build them on your platform. The following are the considerations for JXTA-C. | |
< < |
- apr-util
- A patch is required for transaction support. Version 1.2.7 of apr-util is required. The source can be obtained from http://apr.apache.org/download.cgi. This patch fixes a problem with SQL transactions that JXTA-C now requires. The apr project has a fix but isn't in the current 1.2.7 release. This will only be required for the 1.2.7 version of apr-util. Download the tar ball for your system and extract the files. Create an apr_dbd_fix.patch file in the root directory of apr-util. Copy and paste the following patch into apr_dbd_fix.patch file.
| > > |
- apr-util
- Version 1.2.7 of apr-util is required along with a fix for SQL transaction support. You have 2 options for building apr-util.
- You can download from the SVN repository revision 398048. This revision has been tested.
svn co http://svn.apache.org/repos/asf/apr/apr-util/trunk apr-util -r 398048
-
-
- A patch can be applied to the current 1.2.7 release. The source can be obtained from http://apr.apache.org/download.cgi. Download the tar ball for your system and extract the files. Create an apr_dbd_fix.patch file in the root directory of apr-util. Copy and paste the following patch into apr_dbd_fix.patch file.
| | |
Index: dbd/apr_dbd_sqlite3.c | | | Execute the following commands to patch and build apr-util.
patch -p0 -i apr_dbd_fix.patch | |
< < | ./configure apr-util --apr=/location --with-sqlite3=/location | > > | ./configure --enable-layout=apr-util --with-apr=/location --with-sqlite3=/location | | | make
make install
| |
< < |
| > > |
- SQLite
- Should be built with --enable-threadsafe option
- When using ephemeral address spaces, there is a problem in SQLite that creates a memory leak. The current CVS repository contains a fix for this problem and should be rebuilt. If ephemeral address spaces are not used the official release 3.3.6 is recommended.
| | |
Step 3: Build |
| |
| META TOPICPARENT | name="WebHome" |
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list | | | You can always build from source code, refer to those projects for instructions on how to build them on your platform. The following are the considerations for JXTA-C.
| |
< < |
-
- A patch is required for transaction support. Version 1.2.7 of apr-util is required. The source can be obtained from http://apr.apache.org/download.cgi. Download the tar ball for your system and extract the files. Create an apr_dbd_fix.patch file in the root directory of apr-util. Copy and paste the following patch into apr_dbd_fix.patch file.
| > > |
-
- A patch is required for transaction support. Version 1.2.7 of apr-util is required. The source can be obtained from http://apr.apache.org/download.cgi. This patch fixes a problem with SQL transactions that JXTA-C now requires. The apr project has a fix but isn't in the current 1.2.7 release. This will only be required for the 1.2.7 version of apr-util. Download the tar ball for your system and extract the files. Create an apr_dbd_fix.patch file in the root directory of apr-util. Copy and paste the following patch into apr_dbd_fix.patch file.
| | |
Index: dbd/apr_dbd_sqlite3.c |
| |
| META TOPICPARENT | name="WebHome" |
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list | | | ===============================================================
dbd/apr_dbd_sqlite3.c (revision 392824)
+++ dbd/apr_dbd_sqlite3.c (working copy) | |
< < | apr_dbd_mutex_lock();
do {
+ int retry_count = 0;
+
ret = sqlite3_prepare(sql->conn, query, length, &stmt, &tail);
if (ret = SQLITE_OK) {
sqlite3_finalize(stmt);
break;
}
- ret = sqlite3_step(stmt);
+
+ while(retry_count++ <= MAX_RETRY_COUNT) {
+ ret = sqlite3_step(stmt);
+ if (ret = SQLITE_BUSY)
+ break;
+
+ apr_dbd_mutex_unlock();
+ apr_sleep(MAX_RETRY_SLEEP);
+ apr_dbd_mutex_lock();
+ }
+
*nrows = sqlite3_changes(sql->conn);
sqlite3_finalize(stmt);
length -= (tail - query); | |
< < | int ret = 0;
int nrows = 0;
- ret = dbd_sqlite3_query(handle, &nrows, "BEGIN TRANSACTION;");
+ ret = dbd_sqlite3_query(handle, &nrows, "BEGIN");
if (*trans) {
*trans = apr_pcalloc(pool, sizeof(apr_dbd_transaction_t));
(*trans)->handle = handle; | |
< < |
static int dbd_sqlite3_end_transaction(apr_dbd_transaction_t *trans)
{
- int ret = 0;
+ int ret = -1; /* ending transaction that was never started is an error */ | | | int nrows = 0;
if (trans) {
- ret = dbd_sqlite3_query(trans->handle, &nrows, "END TRANSACTION;");
if (trans->errnum) {
trans->errnum = 0; | |
< < | - ret = dbd_sqlite3_query(trans->handle, &nrows, "ROLLBACK;");
+ ret = dbd_sqlite3_query(trans->handle, &nrows, "ROLLBACK");
} else {
- ret = dbd_sqlite3_query(trans->handle, &nrows, "COMMIT;");
+ ret = dbd_sqlite3_query(trans->handle, &nrows, "COMMIT");
}
trans->handle->trans = NULL;
} | > > | ret = dbd_sqlite3_query(trans->handle, &nrows, "ROLLBACK;"); | | |
Execute the following commands to patch and build apr-util. |
| |
| META TOPICPARENT | name="WebHome" |
| |
< < |
| > > | | | | This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
The steps described here applies to the releases after 2.2 and current CVS head branch. For instructions on how to build JXTA-C 2.1.* releases, look here | | | Step 2: Prepare for prerequisite
You will need the following libraries: | |
< < | | > > |
- Apache Portable Runtime: apr 1.2.1, apr-util 1.2.7 with SQLite3 support
- The apr-util driver for SQLite3 requires a patch for transaction support. (see Building Prerequisite Libraries from Source)
| | |
- libxml2: You will apply the patch comes with JXTA-C to enable wildcard search in XPath query
You will also need following libraries: | | | As how to prepare those prerequiste, it various on different operating systems. For example, on a Debian based Linux distribution, apt-get with correct package names should give you most of it. | |
< < | You can always build from source code, refer to those projects for instructions on how to build them on your platform. | > > | Building Prerequisite Libraries from Source
You can always build from source code, refer to those projects for instructions on how to build them on your platform. The following are the considerations for JXTA-C.
- apr-util
- A patch is required for transaction support. Version 1.2.7 of apr-util is required. The source can be obtained from http://apr.apache.org/download.cgi. Download the tar ball for your system and extract the files. Create an apr_dbd_fix.patch file in the root directory of apr-util. Copy and paste the following patch into apr_dbd_fix.patch file.
Index: dbd/apr_dbd_sqlite3.c
===================================================================
--- dbd/apr_dbd_sqlite3.c (revision 392824)
+++ dbd/apr_dbd_sqlite3.c (working copy) | |
> > | apr_dbd_mutex_lock();
do {
+ int retry_count = 0;
+
ret = sqlite3_prepare(sql->conn, query, length, &stmt, &tail);
if (ret = SQLITE_OK) {
sqlite3_finalize(stmt);
break;
}
- ret = sqlite3_step(stmt);
+
+ while(retry_count++ <= MAX_RETRY_COUNT) {
+ ret = sqlite3_step(stmt);
+ if (ret = SQLITE_BUSY)
+ break;
+
+ apr_dbd_mutex_unlock();
+ apr_sleep(MAX_RETRY_SLEEP);
+ apr_dbd_mutex_lock();
+ }
+
*nrows = sqlite3_changes(sql->conn);
sqlite3_finalize(stmt);
length -= (tail - query); | |
> > | int ret = 0;
int nrows = 0;
- ret = dbd_sqlite3_query(handle, &nrows, "BEGIN TRANSACTION;");
+ ret = dbd_sqlite3_query(handle, &nrows, "BEGIN");
if (*trans) {
*trans = apr_pcalloc(pool, sizeof(apr_dbd_transaction_t));
(*trans)->handle = handle; | |
> > |
static int dbd_sqlite3_end_transaction(apr_dbd_transaction_t *trans)
{
- int ret = 0;
+ int ret = -1; /* ending transaction that was never started is an error */
int nrows = 0;
if (trans) {
- ret = dbd_sqlite3_query(trans->handle, &nrows, "END TRANSACTION;");
if (trans->errnum) {
trans->errnum = 0;
- ret = dbd_sqlite3_query(trans->handle, &nrows, "ROLLBACK;");
+ ret = dbd_sqlite3_query(trans->handle, &nrows, "ROLLBACK");
} else {
- ret = dbd_sqlite3_query(trans->handle, &nrows, "COMMIT;");
+ ret = dbd_sqlite3_query(trans->handle, &nrows, "COMMIT");
}
trans->handle->trans = NULL;
}
Execute the following commands to patch and build apr-util.
patch -p0 -i apr_dbd_fix.patch
./configure apr-util --apr=/location --with-sqlite3=/location
make
make install
| | | Step 3: Build
For *nices |
| |
| META TOPICPARENT | name="WebHome" |
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
| | | | |
> > | As how to prepare those prerequiste, it various on different operating systems. For example, on a Debian based Linux distribution, apt-get with correct package names should give you most of it.
You can always build from source code, refer to those projects for instructions on how to build them on your platform. | | | Step 3: Build
For *nices |
| |
| META TOPICPARENT | name="WebHome" |
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
| | | Step 1: Get the source code
Download a source archive | |
< < | You can get source code for 2.2 release at | > > | You can get source code for JXTA-C releases at | | | |
| |
| META TOPICPARENT | name="WebHome" |
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
| | |
Step 3: Build | |
> > | For *nices | | |
./configure
make
make install
| |
> > | For Win32
Stefan Lankes maintains the Win32 build environment. Goes to the win32 folder and you will find the jxta.sln file. Here is the instruction as in the README.txt file.
General
=======
Currently, we support only Visual Studio .NET 2003 to build JXTA-C. Therefore,
the old VC6 project files in the current CVS tree are obsolete.
To create JXTA-C on Windows you need following libraries:
- APR (http://apr.apache.org/)
- OpenSSL (http://www.openssl.org/)
- zlib (http://www.zlib.net/)
- sqlite3 (http://www.sqlite.org/)
- xml2 (http://xmlsoft.org/index.html)
Beside XML2 you can use the official distribution of these libraries. The
XML2 library has been modified in order to provide wild card searching
of text elements with the Enhanced Discovery Service. Therefore, you need to
create this custom version of XML2. See INSTALL in lib/xml2 for instructions on
building this version of XML2.
Check out the sources from CVS
==============================
cvs -d :pserver:guest@cvs.jxta.org:/cvs login
cvs -d :pserver:guest@cvs.jxta.org:/cvs checkout jxta-c
Configuring the sources
=======================
You have to specify the environment variables (APACHE2, XML2, ZLIB, SQLITE3 and OPENSSL)
to the location of the necessary libraries. It is assumed that
the headers are located in the subdirectory "include", the DLLs in the subdirtectory
"bin" and the link libraries in the subdirectory "lib". For instance, zlib.h is located
at $(ZLIB)/include.
Building the sources
====================
Open with Visual Studio .NET 2003 the project file jxta.sln in the directory "win32".
Afterwards, press F7 to build the JXTA libraries and all examples.
| | | |
| |
| META TOPICPARENT | name="WebHome" |
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
| |
< < | The steps described here applies to the releases after 2.2 and current CVS head branch. For instructions on how to build JXTA-C 2.1.* releases, look here? | > > | The steps described here applies to the releases after 2.2 and current CVS head branch. For instructions on how to build JXTA-C 2.1.* releases, look here | | | Step 1: Get the source code
Download a source archive | |
> > | You can get source code for 2.2 release at | | | Check out from CVS | | |
Step 2: Prepare for prerequisite | |
> > | You will need the following libraries:
You will also need following libraries:
Step 3: Build
./configure
make
make install
| | | |
| |
| META TOPICPARENT | name="WebHome" |
| |
< < | Work in Progress | > > |
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
| | | | |
< < | Before we have a nightly tarball, you will have to check out the code from CVS. | > > | The steps described here applies to the releases after 2.2 and current CVS head branch. For instructions on how to build JXTA-C 2.1.* releases, look here? | | | | |
< < | With the nightly/release build tarball, you don't need to have autotools, and just replace autogen.sh with configure in the following instruction, then you are ready to go. | > > | Step 1: Get the source code
Download a source archive | | | | |
< < | Check out from CVS | > > | Check out from CVS | | |
cvs -d :pserver:guest@cvs.jxta.org:/cvs login
cvs -d :pserver:guest@cvs.jxta.org:/cvs checkout jxta-c
| |
< < | Linux
On most Linux distribution, libapr was built with Berkeley DB support. I would recommend you to isntall the libapr distributed by your distribution and use Berkeley DB as the default DBM. I have tested this configuration with Debian and Suse(JDS does not seems to provide apr, however, you can try RPM from Suse 9)
To test if your system have libapr installed and support Berkeley DB,
$ apr-config --includedir
If libapr was installed, you should see it print out the folder which contains the header files. On Debian, it is /usr/include/apr-0, on Suse, it is /usr/include/apache2
Next step, make sure that libapr was built with Berkeley DB support.
grep APU_HAVE_DB /usr/include/apr-0/apu.h
You will see a line like following, if the value is 1, that means Berkeley DB support is built into libapr. You are good to use it to build jxta-c.
#define APU_HAVE_DB 1
System with libapr and Berkely DB isntalled
./autogen.sh --without-apr --with-dbm=db
make
make install
System without libapr, Berkeley DB or with libapr does not support Berkeley DB
You will need a patched build of apr-util for SDBM. You can download a pre-built library at
http://jxta-c.jxta.org/servlets/ProjectDocumentList. Create a lib folder in the jxta-c folder and untar the file.
./autogen.sh
make
make install
Windows
You will need a patched build of apr-util for SDBM. You can download a pre-built library at
http://jxta-c.jxta.org/files/documents/141/204/apr-0.9.6-win32.zip
Create a lib folder in your jxta-c folder and unzip the file.
You should now see a Apache2 folder within the lib folder.
The jxtalib.dsp can be located in win32/jxta/jxtalib/jxtalib.dsp, and the shell is in win32/JxtaShell/JxtaShell.dsp. I believe you know how to build it from here.  | > > | Step 2: Prepare for prerequisite | | | | |
> > | | | | |
| |
| META TOPICPARENT | name="WebHome" |
Work in Progress
Before we have a nightly tarball, you will have to check out the code from CVS. | |
< < | With the nightly-build tarball, you don't need to have autotools, and just replace autogen.sh with configure in the following instruction, then you are ready to go. | > > | With the nightly/release build tarball, you don't need to have autotools, and just replace autogen.sh with configure in the following instruction, then you are ready to go. | | | Check out from CVS | | | System with libapr and Berkely DB isntalled | |
< < | ./autogen --without-apr --with-dbm=db | > > | ./autogen.sh --without-apr --with-dbm=db | | | make
make install
System without libapr, Berkeley DB or with libapr does not support Berkeley DB | |
> > | You will need a patched build of apr-util for SDBM. You can download a pre-built library at
http://jxta-c.jxta.org/servlets/ProjectDocumentList. Create a lib folder in the jxta-c folder and untar the file. | | |
./autogen.sh
make | | |
Windows | |
< < | jxta-c provides a pre-built libapr with appropriate patch, you can find it(apache-2.0.49-win32.zip) in the lib folder. Unzip it into the lib folder. | > > | You will need a patched build of apr-util for SDBM. You can download a pre-built library at
http://jxta-c.jxta.org/files/documents/141/204/apr-0.9.6-win32.zip
Create a lib folder in your jxta-c folder and unzip the file. | | | You should now see a Apache2 folder within the lib folder.
The jxtalib.dsp can be located in win32/jxta/jxtalib/jxtalib.dsp, and the shell is in win32/JxtaShell/JxtaShell.dsp. I believe you know how to build it from here.  |
| |
| META TOPICPARENT | name="WebHome" |
Work in Progress | | | make install
| |
< < | System without libapr, Berkeley DB or libapr does not support Berkeley DB
General procedure to build with autotools under *nices | > > | System without libapr, Berkeley DB or with libapr does not support Berkeley DB | | |
./autogen.sh
make
make install
| |
> > | Windows
jxta-c provides a pre-built libapr with appropriate patch, you can find it(apache-2.0.49-win32.zip) in the lib folder. Unzip it into the lib folder.
You should now see a Apache2 folder within the lib folder.
The jxtalib.dsp can be located in win32/jxta/jxtalib/jxtalib.dsp, I believe you know how to build it from here.  |
| |
| META TOPICPARENT | name="WebHome" |
Work in Progress
Before we have a nightly tarball, you will have to check out the code from CVS. | |
< < | Check out from CVS | > > | Check out from CVS | | |
cvs -d :pserver:guest@cvs.jxta.org:/cvs login
cvs -d :pserver:guest@cvs.jxta.org:/cvs checkout jxta-c
| |
< < | Build with autotools under *nices | > > | Linux
On most Linux distribution, libapr was built with Berkeley DB support. I would recommend you to isntall the libapr distributed by your distribution and use Berkeley DB as the default DBM. I have tested this configuration with Debian and Suse(JDS does not seems to provide apr, however, you can try RPM from Suse 9)
To test if your system have libapr installed and support Berkeley DB, | | | | |
< < | ./autogen.sh | > > | $ apr-config --includedir
If libapr was installed, you should see it print out the folder which contains the header files. On Debian, it is /usr/include/apr-0, on Suse, it is /usr/include/apache2
Next step, make sure that libapr was built with Berkeley DB support.
grep APU_HAVE_DB /usr/include/apr-0/apu.h
You will see a line like following, if the value is 1, that means Berkeley DB support is built into libapr. You are good to use it to build jxta-c.
#define APU_HAVE_DB 1
System with libapr and Berkely DB isntalled
./autogen --without-apr --with-dbm=db | | | make
make install
| |
> > | System without libapr, Berkeley DB or libapr does not support Berkeley DB
General procedure to build with autotools under *nices
./autogen.sh
make
make install
|
|
> > |
| META TOPICPARENT | name="WebHome" |
Work in Progress
Before we have a nightly tarball, you will have to check out the code from CVS.
Check out from CVS
cvs -d :pserver:guest@cvs.jxta.org:/cvs login
cvs -d :pserver:guest@cvs.jxta.org:/cvs checkout jxta-c
Build with autotools under *nices
./autogen.sh
make
make install
|
|