Page 1 of 1

Install Subversion 1.9.4

Posted: Mon May 02, 2016 2:49 pm
by cah
1. Configure

Code: Select all

./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --with-apxs=/usr/local/apache2/bin/apxs CFLAGS="-std=gnu99"
NOTICE:

Code: Select all

1. SWIG
checking swig version... 3.0.8
configure: WARNING: Detected SWIG version 3.0.8
configure: WARNING: Subversion requires SWIG >= 1.3.24 and < 3.0.0 
I was using msgfmt version 0.10.35 earlier and that was giving "msgid_plural" error when trying to make .mo files.
I then downloaded, compiled and installed the latest GNU gettext (0.19.7). After installing the latest gettext, make ran successfully without any errors.

Install subversion

Code: Select all

make install
NOTICE: "mod_dav_svn.so" and "mod_authz_svn.so" were installed in /usr/local/libexec by deafult. "--with-apache-libexecdir" is needed for configure to know where to install the modules.

Code: Select all

  --with-apache-libexecdir[=PATH]
                          Install Apache modules to Apache's configured
                          modules directory instead of LIBEXECDIR; if PATH is
                          given, install to PATH.
However, when configured with --with-apache-libexecdir", it failed when trying to install modules:

Code: Select all

make install-mods-shared
if true ; then cd subversion/mod_dav_svn ; /usr/bin/ginstall -c -d "/usr/local/apache2/modules" ; /usr/local/apache2/bin/apxs -i -S LIBEXECDIR="/usr/local/apache2/modules"  -n dav_svn mod_dav_svn.la ; fi
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apr/build-1/libtool' mod_dav_svn.la /usr/local/apache2/modules
/usr/local/apr/build-1/libtool --mode=install cp mod_dav_svn.la /usr/local/apache2/modules/
libtool: install: error: cannot install `mod_dav_svn.la' to a directory not ending in /usr/local/libexec
apxs:Error: Command failed with rc=65536
.
make: *** [install-mods-shared] Error 1
If that's the case, simply install the modules in the default directory (/usr/local/libexec) and then manually copy over to /usr/local/apache2/modules.

Lesson learned: When trying to upgrade one application to the latest version, there will be a lot other applications need to be updated as well.