Building Subversion and Apache Trunks
Posted by hardwarehank, Wed Jun 14 02:32:33 UTC 2006
I was trying to move the subversion server today, and found some good tips, but I had some problems today building subversion, so I decided I better write the process down. While I’m at it, I better detail the steps to install apache as well.
Apache
Get the trunk, and go to the source library directory:
svn co http://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x httpd-2.0
cd httpd-2.0/srclib
Now, check APR out of svn:
svn co http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x apr
svn co http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x apr-util
cd ..
Build with some awesome options:
./buildconf
./configure --enable-so --enable-dav --enable-rewrite --enable-ssl --enable-proxy --enable-proxy-http --enable-proxy-connect --enable-proxy-ftp
make
sudo make install
Make sure to edit the httpd.conf file’s ServerName and, if necessary, User and Group. Also, make a conf.d and include it in your config file:
Include conf.d/*.conf
Then, make a sweet config file for subversion (conf.d/svn.conf):
<Location /repos>
DAV svn
SVNParentPath /path/to/repos
AuthType Basic
AuthName "GINA Beta Subversion Repository"
AuthUserFile /path/to/repos/svn-auth-file
AuthGroupFile /path/to/repos/svn-group-file
# read-only access to repos
# only authenticated users may modify repos
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require group devel
</LimitExcept>
<Limit GET PROPFIND OPTIONS REPORT>
require valid-user
</Limit>
</Location>
Subversion
Now, just get it:
svn co http://svn.collab.net/repos/svn/trunk subversion
cd subversion
Now, get APR again:
svn co http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x apr
svn co http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x apr-util
Configure it (buildconf first), build it, install it, then do SWiG Ruby stuff:
./buildconf
./configure --with-apxs=/usr/local/apache2/bin/apxs
make
sudo make install
make swig-rb
make check-swig-rb # This might have some bdb failures. Who cares?
sudo make install-swig-rb
Now, it should be up and running. Next time, Collaboa.

Blog Posts