How to fix these three errors:
Cannot load /usr/local/libexec/apache22/mod_dav_svn.so into server: Shared object "libaprutil-0.so.9" not found, required by "libsvn_repos-1.so.0" Cannot load /usr/local/libexec/apache22/mod_dav_svn.so into server: Shared object "libexpat.so.1" not found, required by "libsvn_repos-1. " Cannot load /usr/local/libexec/apache22/mod_dav_svn.so into server: Shared object "libapr-0.so.9" not found, required by "libsvn_repos-1.
You’ll need to use the locate command to see if you can find another copy of those files on your disk then link them to /usr/local/lib/
If you cannot locate a copy of them you can install subversion 1.4.6 in a chroot jail or on another freebsd machine, and then copy/link the files from there. Or just comment on this post and i’ll upload the files.
My system info:
[root@brakertech /]# svn --version svn, version 1.4.0 (r21228) compiled Jul 10 2010, 19:21:26 Copyright (C) 2000-2006 CollabNet. Subversion is open source software, see http://subversion.tigris.org/ This product includes software developed by CollabNet (http://www.Collab.Net/). The following repository access (RA) modules are available: * ra_svn : Module for accessing a repository using the svn network protocol. - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme [root@brakertech /]# pkg_info | grep -i apache apache-2.2.15_9 Version 2.2.x of Apache web server with prefork MPM. apr-devrandom-gdbm-db42-ldap23-mysql50-1.4.2.1.3.9_1 Apache Portabil [root@brakertech/]# uname -a FreeBSD devweb4 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 [email protected]:/usr/obj/usr/src/sys/SMP i386
Here’s the detailed commands of how I fixed the issue:
[root@brakertech /]# apachectl -k graceful httpd: Syntax error on line 127 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_dav_svn.so into server: Shared object "libaprutil-0.so.9" not found, required by "libsvn_repo s-1.so.0" [root@brakertech /]# locate libaprutil /u0/backups/httpd-2.2.11/srclib/apr-util/.libs/libaprutil-1.a /u0/backups/httpd-2.2.11/srclib/apr-util/.libs/libaprutil-1.la /u0/backups/httpd-2.2.11/srclib/apr-util/.libs/libaprutil-1.lai /u0/backups/httpd-2.2.11/srclib/apr-util/.libs/libaprutil-1.so /u0/backups/httpd-2.2.11/srclib/apr-util/.libs/libaprutil-1.so.3 /u0/backups/httpd-2.2.11/srclib/apr-util/.libs/libaprutil-1.so.3T /u0/backups/httpd-2.2.11/srclib/apr-util/libaprutil-1.la /u0/backups/httpd-2.2.11/srclib/apr-util/libaprutil.dsp /u0/backups/httpd-2.2.11/srclib/apr-util/libaprutil.rc /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr-util/.libs/libaprutil-0.a /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr-util/.libs/libaprutil-0.la /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr-util/.libs/libaprutil-0.lai /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr-util/.libs/libaprutil-0.so /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr-util/.libs/libaprutil-0.so.9 /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr-util/libaprutil-0.la /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr-util/libaprutil.dsp /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr-util/libaprutil.rc /usr/jails/apachejail/usr/local/lib/libaprutil-1.a /usr/jails/apachejail/usr/local/lib/libaprutil-1.la /usr/jails/apachejail/usr/local/lib/libaprutil-1.so /usr/jails/apachejail/usr/local/lib/libaprutil-1.so.3 /usr/local/lib/libaprutil-1.a /usr/local/lib/libaprutil-1.la /usr/local/lib/libaprutil-1.so /usr/local/lib/libaprutil-1.so.3 [root@brakertech /]# ln -s /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr-util/.libs/libaprutil-0.so.9 /usr/local/lib/libaprutil-0.so.9 [root@brakertech /]# apachectl -k graceful httpd: Syntax error on line 127 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_dav_svn.so into server: Shared object "libexpat.so.1" not found, required by "libsvn_repos-1. so.0" [root@brakertech /]# locate libexpat.so.1 /u0/home/sstonebraker/lib/libexpat.so.1 /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr-util/xml/expat/lib/.libs/libexpat.so.1 [root@brakertech /]# ln -s /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr-util/xml/expat/lib/.libs/libexpat.so.1 /usr/local/lib/libexpat.so.1 [root@brakertech /]# apachectl -k graceful httpd: Syntax error on line 127 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_dav_svn.so into server: Shared object "libapr-0.so.9" not found, required by "libsvn_repos-1. so.0" [root@brakertech /]# locate libapr-0.so.9 /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr/.libs/libapr-0.so.9 [root@brakertech /]# ln -s /usr/jails/apachejail/root/1/~1tmp/subversion-1.4.6/apr/.libs/libapr-0.so.9 /usr/local/lib/libapr-0.so.9 [root@brakertech /]# apachectl -k graceful [root@brakertech /]#