Mac OS X mavericks with Subversion + Apache

Posted on Updated on

  1. should rebuild subversion to x86_64 architecture
    • make link for Xcode, because subversion detect build tool chain with a specific rule but Mavericks as no such path for Xcode.

% sudo ln -s /Applications/  /Applications/

    • download svn (v1.8.3) download svn 1.6.18 (1.8.3 cannot work)
    • make and make install
% cd ~/Downloads/subversion-1.6.18
% cd ./configure
% make
    • copy and to /usr/libexec/apache2 or anywhere you want to locate the module binary files, this would be referenced in httpd_server_app.conf for Web Server.

% cp subversion/mod_dav_svn/.libs/ /usr/libexec/apache2

% cp subversion/mod_authz_svn/.libs/ /usr/libexec/apache2

  1. in /Library/Server/Web/Config/apache2/httpd_server_app.conf
    • add

LoadModule dav_svn_module libexec/apache2/
LoadModule authz_svn_module libexec/apache2/

    • notice the order, if loaded after, you got the error as launch web server.

httpd: Syntax error on line XXX of /Library/Server/Web/Config/apache2/httpd_server_app.conf: Cannot load /usr/libexec/apache2/ into server: dlopen(/usr/libexec/apache2/, 10): Symbol not found: _dav_svn_split_uri\n  Referenced from: /usr/libexec/apache2/\n  Expected in: flat namespace\n in /usr/libexec/apache2/

對「Mac OS X mavericks with Subversion + Apache」的一則回應

    bookstore said:
    14 十二月, 2013 at 4:14 上午

    ./configure for subversion failed:
    checking for Ruby minor version… -e:1:in `’: Use RbConfig instead of obsolete and deprecated Config.
    -e:1:in `’: Use RbConfig instead of obsolete and deprecated Config.
    checking for swig… none
    configure: Configuring python swig binding
    checking for Python includes… -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
    checking for compiling Python extensions… cc -arch x86_64 -arch i386 -pipe
    checking for linking Python extensions… cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -framework Python
    checking for linking Python libraries… -bundle -undefined dynamic_lookup -Wl,-F. -framework Python
    checking for apr_int64_t Python/C API format string…
    configure: error: failed to recognize APR_INT64_T_FMT on this platform

      cotton5415 responded:
      16 十二月, 2013 at 5:20 上午

      What’s your Mac OS X number? and did you install Xcode already?

    bookstore said:
    17 十二月, 2013 at 1:15 上午

    mac os X 10.9
    I installed Xcode 5.02 already.

    I found I can build subversion 1.8.5.


在下方填入你的資料或按右方圖示以社群網站登入: 標誌

您的留言將使用 帳號。 登出 /  變更 )

Google photo

您的留言將使用 Google 帳號。 登出 /  變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 /  變更 )


您的留言將使用 Facebook 帳號。 登出 /  變更 )

連結到 %s