View Full Version : Install svn client (subversion-1.4.4) on HP-UX 11.11

Arjen Visser
04-02-2008, 01:34 PM
Installing Subversion client (svn) on HP-UX has been very problematic. The errors we got were:
checking for inflate in -lz... no
configure: error: subversion requires zlib
(zlib was installed).

System is:
HP-UX B.11.11 U 9000/785 PA-RISC 2.0
ELF-64 executable object file - PA-RISC 2.0 (LP64)

Finally we managed to get it done.
We used gcc compiler: hp-gcc64-3.4.5 (download gcc-hppa64-3.4.5.depot.gz from hpacxx.external.hp.com/gcc/?C=S;O=A)

The steps are:
download subversion-1.4.4.tar.gz
download subversion-deps-1.4.4.tar.gz
gunzip subversion-1.4.4.tar.gz
tar xfv subversion-1.4.4.tar
gunzip subversion-deps-1.4.4.tar.gz
tar xfv subversion-deps-1.4.4.tar
cd subversion-1.4.4/
--- You will need to install zlib seperately.
--- PATH to zlib needs to be given:
export PATH
--- Set CC variable to correct gcc compiler
export CC

cd ./zlib
make test
make install
cd ..
./configure --without-berkeley-db --without-apache --without-apxs --without-swig --disable-nls --disable-shared --prefix=/usr/local CPPFLAGS="-Izlib/ -Lzlib/" \
--with-ldflags="/usr/local/include" LDFLAGS="-L/usr/local/lib -L/usr/local/include" --with-zlib=/usr/local/include/zlib
make install

--- Then svn was working and we could check out with:
svn checkout