This may be more info than you want, but here is some info on how I
built Subversion 1.4.3 for AIX 5.3.
1) Install the IBM C compiler version 6.0.0.15 (as documented at
http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=13876484&cat=72&thread=124105&treeDisplayType=threadmode1&forum=905#13876484).
2) Install the following RPMs, which can be downloaded from
http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html.
Some of these RPMs probably aren't needed, but it is what I ended up
with when I successfully compiled everything.
gcc-c++-4.0.0-1
gcc-4.0.0-1
libgcc-4.0.0-1
libstdc++-4.0.0-1
libstdc++-devel-4.0.0-1
make-3.80-1
readline-4.3-2
zlib-1.2.2-4
tar-1.14-1
m4-1.4.1-1
autoconf-2.59-1
diffutils-2.8.1-1
rcs-5.7-2
automake-1.8.5-1
libtool-1.5.8-1
binutils-2.14-3
3) Run the following script, which will build an FSFS Subversion
server and Apache, along with all dependencies, as well as some
interpreters and cvs2svn. I also build LDAP because I authenticate
against Active Directory. Note that I have all code checked into
another Subversion repository, and the script uses a pre-built
Subversion client to checkout that code and build Subversion and all
of its dependencies. You will have to download the tarred gzipped
files and extract them as appropriate.
#!/bin/ksh93
## Define variables
base_dir=/svn
build_dir=$base_dir/build
repos_url="URL_TO_MY_REPO"
svn=/opt/svn/bin/svn
## Create initial directories
mkdir -p $build_dir
mkdir -p $base_dir/logs
## Build openssl
cd $build_dir
$svn export $repos_url/vendorsrc/openssl.org/openssl/0.9.8d openssl-0.9.8d
cd $build_dir/openssl-0.9.8d
env CC=cc ./Configure aix-cc shared threads -D_REENTRANT --prefix=$base_dir
make
make install
## Build openldap
cd $build_dir
$svn export $repos_url/vendorsrc/openldap.org/openldap/2.3.31 openldap-2.3.31
cd $build_dir/openldap-2.3.31
env CC=cc \
CFLAGS="-I$base_dir/include -I/usr/include" \
CPPFLAGS="-I$base_dir/include -I/usr/include" \
LDFLAGS="-L$base_dir/lib -L/usr/lib" \
./configure \
--prefix=$base_dir \
--enable-slapd=no \
--enable-bdb=no \
--enable-static=no \
--enable-shared=yes
make depend MKDEP=$PWD/build/mkdep.aix
make
make install
## APR
cd $build_dir
$svn export $repos_url/vendorsrc/apache.org/httpd/2.2.3 httpd-2.2.3
cd $build_dir/httpd-2.2.3/srclib/apr
env CC=cc CFLAGS="-I$base_dir/include -I/usr/include" \
CPPFLAGS="-I$base_dir/include -I/usr/include" \
LDFLAGS="-L$base_dir/lib -L/usr/lib" \
./configure \
--prefix=$base_dir/apache2.2 \
--enable-static=no \
--enable-shared=yes
make
make install
## APR UTIL
cd $build_dir/httpd-2.2.3/srclib/apr-util
env CC=cc CFLAGS="-I$base_dir/include -I$base_dir/apache2.2/include" \
LDFLAGS="-L$base_dir/lib -L$base_dir/apache2.2/lib" \
./configure \
--prefix=$base_dir/apache2.2 \
--enable-static=no \
--enable-shared=yes \
--with-ldap=ldap \
--with-ldap-include=$base_dir/include \
--with-ldap-lib=$base_dir/lib \
--enable-ldap=shared \
--enable-authnz-ldap=shared \
--with-apr=$base_dir/apache2.2/bin/apr-1-config
make
make install
## APACHE
cd $build_dir/httpd-2.2.3
env CC=cc ./configure \
--prefix=$base_dir/apache2.2 \
--with-apr=$base_dir/apache2.2/bin/apr-1-config \
--with-apr-util=$base_dir/apache2.2/bin/apu-1-config \
--enable-static=no \
--enable-shared=yes \
--enable-so \
--without-berkeley-db \
--enable-ssl=shared \
--with-ssl=$base_dir \
--enable-dav=shared \
--enable-dav-fs=shared \
--enable-dav-lock=shared \
--enable-ldap \
--with-ldap=$base_dir \
--with-ldap-include=$base_dir/include \
--with-ldap-lib=$base_dir/lib \
--enable-authnz-ldap \
--enable-deflate \
--with-z=/svn/lib \
--enable-rewrite
make
make install
## Build cronolog
cd $build_dir
$svn export $repos_url/vendorsrc/cronolog.org/cronolog/1.6.2 cronolog-1.6.2
cd $build_dir/cronolog-1.6.2
env CC=cc ./configure --prefix=$base_dir
make
make install
## Make sure log files are owned by our admin ID and not root.
chmod u+s /svn/sbin/cronolog
chmod g+s /svn/sbin/cronolog
chmod u+s /svn/sbin/cronosplit
chmod g+s /svn/sbin/cronosplit
## Build Berkeley DB, used only by Python so we can run cvs2svn
cd $build_dir
$svn export $repos_url/vendorsrc/sleepycat.com/db/4.4.20 db-4.4.20
$svn export $repos_url/vendorsrc/sleepycat.com/db/patch.4.4.20.1.txt
$svn export $repos_url/vendorsrc/sleepycat.com/db/patch.4.4.20.2.txt
$svn export $repos_url/vendorsrc/sleepycat.com/db/patch.4.4.20.3.txt
$svn export $repos_url/vendorsrc/sleepycat.com/db/patch.4.4.20.4.txt
cd $build_dir/db-4.4.20
patch -p0 < ../patch.4.4.20.1.txt
patch -p0 < ../patch.4.4.20.2.txt
patch -p0 < ../patch.4.4.20.3.txt
patch -p0 < ../patch.4.4.20.4.txt
cd $build_dir/db-4.4.20/build_unix
env CC=cc ../dist/configure \
--prefix=$base_dir/BerkeleyDB4.4 \
--disable-largefile \
--enable-shared=yes \
--enable-static=no
make
make install
## Build Subversion
cd $build_dir
$svn export $repos_url/vendorsrc/tigris.org/subversion/1.4.3 subversion-1.4.3
$svn export --force
$repos_url/vendorsrc/tigris.org/subversion-deps/1.4.3 subversion-1.4.3
# Must build zlib first or it will fail.
cd $build_dir/subversion-1.4.3/zlib
env CC=cc ./configure --prefix=$base_dir
make install
cd $build_dir/subversion-1.4.3
# Have to export these vars to openssl and libxml or expat can be found.
env CC=cc \
CFLAGS="-I$base_dir/include -I$base_dir/apache2.2/include/apr-1" \
LDFLAGS="-L$base_dir/lib -L$base_dir/apache2.2/lib" \
./configure \
--prefix=$base_dir \
--with-apxs=$base_dir/apache2.2/bin/apxs \
--with-apr=$base_dir/apache2.2/bin/apr-1-config \
--with-apr-util=$base_dir/apache2.2/bin/apu-1-config \
--without-berkeley-db \
--with-libs=$base_dir/lib \
--with-includes=$base_dir/include \
--enable-static=no \
--enable-shared=yes
make
# Bug in makefile. Just copy file to where it expects it for now.
#cp subversion/svnsync/svnsync.1 subversion/svnversion/svnsync.1
make install
## Build Python
cd $build_dir
$svn export $repos_url/vendorsrc/python.org/python/2.4.3 python-2.4.3
cd $build_dir/python-2.4.3
env CC=cc CXX=xlC ./configure --prefix=$base_dir \
--disable-ipv6
make
make install
make install # 2x to get around problem first time through
## Build pybsddb, used by cvs2svn
cd $build_dir
$svn export $repos_url/vendorsrc/sourceforge.net/pybsddb/4.4.2 pybsddb-4.4.2
cd $build_dir/pybsddb-4.4.2
env CC=cc python setup.py --berkeley-db=/svn/BerkeleyDB4.4
--lflags="-brtl" build
python setup.py --berkeley-db=/svn/BerkeleyDB4.4 install
## Build Perl
cd $build_dir
$svn export $repos_url/vendorsrc/perl.com/perl/5.8.8 perl-5.8.8
cd $build_dir/perl-5.8.8
rm -f config.sh Policy.sh
sh Configure -Dcc=cc -Dprefix=$base_dir/perl -de
make
make install
## Install CPAN and other needed modules
perl -e 'print "\n\n\n\n\n\n\n\nfollow\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n5\n4\n1
4 5\n\nquit\n"' > answers
perl -MCPAN -eshell < answers
rm answers
cpan URI < /dev/null
## Build cvs2svn
cd $build_dir
$svn export $repos_url/vendorsrc/tigris.org/cvs2svn/1.5.0 cvs2svn-1.5.0
cd $build_dir/cvs2svn-1.5.0
make install
-Justin
On 4/25/07, Giulio Troccoli <Giulio.Troccoli@uk.linedata.com> wrote:
>
>
>
>
>
> Hi Danny,
>
>
>
> I spent days trying to install Subversion 1.4.3 on a AIX 5.3 machine, but I
> did it.
>
>
>
> This is the configure command I used
>
>
>
> CC="/usr/vac/bin/cc" CFLAGS="-qmaxmem=-1 -O2 -qlanglvl=extended"
> CPPFLAGS="-I/usr/local/include" ./configure --prefix=/usr/local
> --enable-shared=no --enable-ssl=no --without-barkeley-db
> --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr
> --with-neon=/usr/local
>
>
>
> You probably don't need CC, CFLAGS and CPPFLAGS but I left them just in
> case. I have to say that I had to install the new version of apr, zlib,
> expat, apr-util, and neon before Subversion, but it all works fine now.
>
>
>
> Giulio
>
>
>
>
>
>
>
> Linedata Services (UK) Ltd
> Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
> Registered in England and Wales No 3027851 VAT Reg No 778499447
>
>
>
> ________________________________
>
>
>
>
>
>
> From: Danny.McKinney@sungard.com [mailto:Danny.McKinney@sungard.com]
> Sent: 24 April 2007 21:51
> To: users@subversion.tigris.org
> Subject: Help Building Subversion Server on AIX 5L 5.3.0
>
>
>
>
> I am trying to run configure in order to build Subversion 1.4.3 client and
> mod_dav support. I am receiving the following error:
>
>
>
> checking for stdint.h... yes
>
> checking for unistd.h... yes
>
> configuring libtool now
>
> ./configure[5829]: syntax error at line 5930 : `(' unexpected
>
>
>
> Has anyone run into this issue or have suggestions of what I may need to
> look at in order to solve it.
>
>
>
> Thanks in advance for any help.
>
>
>
>
>
> Danny McKinney • Senior Software Engineer • SunGard • Investar*ONE • 2300
> Main Street Suite 400, Kansas City, MO 64108
> Tel 816-460-3226 • Fax 816-472-8230 • www.sungard.com/investarone.
Received on Thu Apr 26 16:27:50 2007