diff options
author | Bernard Normier <bernard@zeroc.com> | 2016-05-11 17:00:32 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2016-05-11 17:00:32 -0400 |
commit | f31072fec2e6d926c4d1722e9110b2fd084583f5 (patch) | |
tree | 1b9d0690fe480ad410f693b0dcb6d751ac551e81 /cpp/BuildInstructionsAIX.md | |
parent | Refresh AIX port (diff) | |
download | ice-f31072fec2e6d926c4d1722e9110b2fd084583f5.tar.bz2 ice-f31072fec2e6d926c4d1722e9110b2fd084583f5.tar.xz ice-f31072fec2e6d926c4d1722e9110b2fd084583f5.zip |
Replaced BDB by LMDB
Diffstat (limited to 'cpp/BuildInstructionsAIX.md')
-rw-r--r-- | cpp/BuildInstructionsAIX.md | 85 |
1 files changed, 11 insertions, 74 deletions
diff --git a/cpp/BuildInstructionsAIX.md b/cpp/BuildInstructionsAIX.md index cda7de3ab76..327e3c37e44 100644 --- a/cpp/BuildInstructionsAIX.md +++ b/cpp/BuildInstructionsAIX.md @@ -22,8 +22,8 @@ packages that Ice depends on, and install some build tools. ### Third-Party Packages -Ice depends on several open-source packages: Berkeley DB 5.3, bzip2 1.0, -expat 2.x, mcpp 2.7.2 (+patches) and OpenSSL. +Ice depends on several open-source packages: bzip2 1.0, expat 2.x, LMDB 0.9.x, +mcpp 2.7.2 (+patches) and OpenSSL. OpenSSL is a system package on AIX. RPM packages for bzip2 and expat are available in the [AIX Toolbox for Linux Applications][1]. You can install @@ -37,7 +37,7 @@ rpm -i ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/expat/expat ``` -Berkeley DB and mcpp must be built from sources, as described below. +LMDB and mcpp must be built from sources, as described below. ### Build Tools @@ -50,14 +50,6 @@ rpm -i ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/make/make-4 The preferred way to retrieve the Ice and mcpp source distributions is with git. A RPM for git is available from [bullfreeware.com][2]. -You also need wget, GNU tar and GNU patch to retrieve and build Berkeley DB: -``` -# As root -rpm -i ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/wget/wget-1.9.1-1.aix5.1.ppc.rpm -rpm -i ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/tar/tar-1.22-1.aix6.1.ppc.rpm -rpm -i ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/patch/patch-2.5.4-4.aix4.3.ppc.rpm -``` - ### Building mcpp from Sources If building 64-bit binaries, set `OBJECT_MODE` to 64: @@ -76,64 +68,17 @@ gmake This build creates a static library, `lib/libmcpp.a`. `libmcpp.a` is used only when building Ice from sources, and does not need to be installed. -### Building Berkeley DB from Sources - -#### Download Sources - -Download the Berkeley DB 5.3.28 source archive from [Oracle][3] or ZeroC. You -may use the distribution with encryption or without encryption. Since Ice does -not use Berkeley DB's encryption features, we recommend downloading the -no-encryption (-NC) source archive: - -``` -wget http://zeroc.com/download/berkeley-db/db-5.3.28.NC.tar.gz -``` - -Then unpack this archive: -``` -gtar xzf db-5.3.28.NC.tar.gz -``` +### Building LMDB from Sources -#### Patch - -Patch Berkeley DB with GNU patch: -``` -wget http://zeroc.com/download/berkeley-db/berkeley-db.5.3.28.patch -cd db-5.3.28.NC -/opt/freeware/bin/patch -p0 < ../berkeley-db.5.3.28.patch -``` - -#### Configure - -If building 64-bit binaries, set `OBJECT_MODE` to 64: -``` -export OBJECT_MODE=64 -``` -Otherwise, leave `OBJECT_MODE` unset. - -Then configure Berkeley DB with C++ support, and set the installation prefix, -for example: -``` -cd build_unix -../dist/configure --enable-cxx --prefix=/opt/db53 -``` - -#### Build and Install -``` -gmake -... - -# run gmake install as root or change permissions on /opt/db53 before install -gmake install -``` +TBD ## Building Ice for C++ ### Clone zeroc-ice/ice ``` -git clone -b 3.6 https://github.com/zeroc-ice/ice.git -cd ice/cpp +git clone https://github.com/zeroc-ice/ice.git +cd ice ``` ### Configure @@ -141,22 +86,15 @@ cd ice/cpp Edit `config/Make.rules` to establish your build configuration. The comments in the file provide more information. -Make sure to set `DB_HOME` to your Berkeley DB 5.3 installation directory -(`/opt/db53` if built as described above), and `MCPP_HOME` to your mcpp build -directory (for example `$(HOME)/builds/mcpp`). - -`LP64` is not used on AIX. To build 64 bit binaries, set the environment -variable `OBJECT_MODE` to 64: -``` -export OBJECT_MODE=64 -``` -Otherwise, leave this environment variable unset. +Make sure to set `LMDB_HOME` to your LMDB installation directory and +`MCPP_HOME` to your mcpp build directory (for example `$(HOME)/builds/mcpp`). ### Build Use the gmake `-j` option to speed up the build: ``` +cd cpp gmake -j8 ``` @@ -170,7 +108,7 @@ gmake install This installs Ice for C++ in the directory specified by `prefix` in `config/Make.rules`. By default, all Ice binaries embed the library path -`prefix/lib:$DB_HOME/lib:/usr/lib`. +`prefix/lib:/usr/lib`. After installation, make sure that the `prefix/bin` directory is in your `PATH`. @@ -204,4 +142,3 @@ failure, the tests abort with `failed`. [1]: http://www-03.ibm.com/systems/power/software/aix/linux [2]: http://www.bullfreeware.com -[3]: http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html |