Friday, October 10, 2014

Config Apache SVN server for Mavericks

I have a post about Config Apache SVN server for Mountain Lion

This time, after upgrade to 10.9 Mavericks, Apache fails again.

The mod_dav_svn.so and mod_authz_svn.so are missing.

$ apachectl -S
httpd: Syntax error on line 501 of /private/etc/apache2/httpd.conf: Syntax error on line 2 of /private/etc/apache2/other/svn.conf: Cannot load /usr/libexec/apache2/mod_dav_svn.so into server: dlopen(/usr/libexec/apache2/mod_dav_svn.so, 10): image not found



Here's the fix

Download And Build Subversion

 http://archive.apache.org/dist/subversion/subversion-1.6.23.tar.bz2


add symlink
ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain
cd subversion-1.6.23
./configure
make
sudo cp subversion/mod_dav_svn/.libs/mod_dav_svn.so /usr/libexec/apache2/.
sudo cp subversion/mod_authz_svn/.libs/mod_authz_svn.so /usr/libexec/apache2/.



If you got this error when call "./configure"
"Apache version incompatible with APR version"

check reference [2],  replace the line

$EGREP "[apache_minor_version= *"$apache_minor_version_wanted_regex"]" >/dev/null 2>&1; then
to
$EGREP "apache_minor_version= *\"$apache_minor_version_wanted_regex\"" >/dev/null 2>&1; then :

Symlinks

To load the svn modules, add these symlinks. Copy and paste to terminal.

sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_repos-1.0.dylib /usr/local/lib/libsvn_repos-1.0.dylib
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_fs-1.0.dylib /usr/local/lib/libsvn_fs-1.0.dylib
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_fs_fs-1.0.dylib /usr/local/lib/libsvn_fs_fs-1.0.dylib
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_fs_util-1.0.dylib /usr/local/lib/libsvn_fs_util-1.0.dylib
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_delta-1.0.dylib /usr/local/lib/libsvn_delta-1.0.dylib
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_subr-1.0.dylib /usr/local/lib/libsvn_subr-1.0.dylib

# Optional ?
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_wc-1.0.dylib /usr/local/lib/libsvn_wc-1.0.dylib
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_client-1.0.dylib /usr/local/lib/libsvn_client-1.0.dylib
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_diff-1.0.dylib /usr/local/lib/libsvn_diff-1.0.dylib
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_ra-1.0.dylib /usr/local/lib/libsvn_ra-1.0.dylib
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_ra_local-1.0.dylib /usr/local/lib/libsvn_ra_local-1.0.dylib
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_ra_neon-1.0.dylib /usr/local/lib/libsvn_ra_neon-1.0.dylib
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_ra_serf-1.0.dylib /usr/local/lib/libsvn_ra_serf-1.0.dylib
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libsvn_ra_svn-1.0.dylib /usr/local/lib/libsvn_ra_svn-1.0.dylib

Web Sharing Preference Panel


There is a  replacement System Preferences pane "Web Sharing", you can check apache server status, and turn it on or off here.

OK. Everything done.

"It works!"


situee.blogspot.com

Remarks:

Terminal Commands
Starting: "sudo apachectl start"
Stopping: "sudo apachectl stop"
Restarting: "sudo apachectl restart"

Reference:

[1] Install SVN on Mac OS X - AGAIN!! (this time on MAVERICKS)

[2] Error while Compiling Subversion with a custom-compiled Apache on a shared server

[3] How do I start apache in OSX Mountain Lion / Mavericks?

No comments:

Post a Comment