I'm compiling subversion-1.8.5 from source with the following supporting projects. The system is a linux box running Lubuntu 12.04 64bit.

subversion-1.8.5
serf-1.3.2
apache-apr-1.5.0
apache-apr-util-1.5.3


After compiling from source, when run 'svn', the following error occurs.

$ /usr/local/bin/subversion-1.8.5/bin/svn
/usr/local/bin/subversion-1.8.5/bin/svn: error while loading shared libraries: libserf-1.so.1: cannot open shared object file: No such file or directory


I know that serf had been compiled and it's location was given as a parameter to the subversion 'configure' app. I do not know why it insists on finding libserf-1.so.1 when libserf-1.so.1.3.0 was compiled.

Any help is greatly appreciated.
Thanks in advance.



How to reproduce the issue:

o) compile apache-apr-1.5.0

./configure --prefix=/usr/local/bin/apache-apr-1.5.0
make; make test
sudo make install

o) compile apache-apr-util-1.5.3

./configure --prefix=/usr/local/bin/apache-apr-util-1.5.3 --with-apr=/usr/local/bin/apache-apr-1.5.0
make; make test
sudo make install

o) compile serf-1.3.2

$ scons APR=/usr/local/bin/apache-apr-1.5.0 APU=/usr/local/bin/apache-apr-util-1.5.3
$ sudo scons install

Details of the output are here: http://pastebin.ca/2492961

The resulting serf headers and libraries are installed here:

/usr/local/lib/libserf-1.a
/usr/local/lib/libserf-1.so.1.3.0
/usr/local/include/serf-1/serf.h
/usr/local/include/serf-1/serf_bucket_types.h
/usr/local/include/serf-1/serf_bucket_util.h
/usr/local/lib/pkgconfig/serf-1.pc

o) compile subversion-1.8.5

$ ./configure --prefix=/usr/local/bin/subversion-1.8.5 --with-apxs=/usr/local/bin/apache-httpd-2.4.7/bin/apxs --with-jdk --enable-javahl --enable-mod-activation --enable-shared --with-openssl --with-serf=/usr/local
-output of the config.log is here: http://pastebin.ca/2492975
$ make
-output of the make is here: http://pastebin.ca/2492985
$ sudo make install


After a successful compile and install of all projects.

$ /usr/local/bin/subversion-1.8.5/bin/svn
/usr/local/bin/subversion-1.8.5/bin/svn: error while loading shared libraries: libserf-1.so.1: cannot open shared object file: No such file or directory



Reply via email to