Skip to content


Dreamhost上编译Subversion

因为Dreamhost主机上的Subversion不是最新的1.5,所以决定自己编译一个。

SSH登录到Dreamhost主机,下载最新的Subversion源代码包以及dep包:

mkdir soft

cd soft

wget http://subversion.tigris.org/downloads/subversion-1.5.5.tar.gz

wget http://subversion.tigris.org/downloads/subversion-deps-1.5.5.tar.gz

解压缩:

tar xzvf subversion-1.5.5.tar.gz

tar xzvf subversion-deps-1.5.5.tar.gz

进入目录:

cd subversion-1.5.5

设定环境变量

export RUN=${HOME}

因为我的python是自己重新安装的,安装在${home}/opt/bin中,所以还要执行下面这一步:

# ${PYVERS} Python version
export PYVERS=`${RUN}/opt/bin/python -V 2>&1 | cut -d ' ' -f 2`
# ${PYLIBPKG} Python library site packages directory
export PYLIBPKG=`${RUN}/opt/bin/python <<EOF
import sys
print sys.path[-1]
EOF`

然后为了生成python绑定,还要输入如下内容:

SVNPYTHON=" PYTHON=${RUN}/opt/bin/python"

然后运行:

./configure ${SVNPYTHON} ${SVNRUBY} –prefix=${RUN} \ –without-berkeley-db –with-ssl –enable-shared \ ${SVNSWIG}

然后就是漫长的等待,如果没有发现error,下面

make

make install

然后在$HOME/.bash_profile下增加

export PATH=$HOME/bin:$PATH

source $HOME/.bash_profile

最后看结果:

[coke]$ svn –version
svn, version 1.5.5 (r34862)
compiled Jan 16 2009, 00:48:07

Copyright (C) 2000-2008 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_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles ‘http’ scheme
- handles ‘https’ scheme
* 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
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- handles ‘http’ scheme
- handles ‘https’ scheme

安装完成。

参考文档:

http://wiki.dreamhost.com/Subversion_Installation

Related posts:

  1. Subversion: Export changed Files in a revision range
  2. Subversion导出修订版本范围中修改过的文件
  3. 上传工作拷贝中改变的文件
  4. 今天用Google,发现有趣的功能
  5. Subversion 1.5发布说明

Posted in subversion. Tagged with , , , .

One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. 帮帮忙吧404错误
    Ubuntu 9.04 Desktop
    SVN 1.5.4
    apache2
    Server version: Apache/2.2.11 (Ubuntu)
    Server built: Aug 18 2009 14:26:31

    http.conf 配置如下:

    DAV svn
    SVNPath /home/svn/ARMRepo
    #SVNParentPath /home/svn
    AuthType Basic
    #AuthName “ARM subversion repository”
    AuthUserFile /etc/subversion/passwd
    AuthzSVNAccessFile /etc/apache2/authz
    Require valid-user

    空仓库为ARMRepo
    apache2已启动

    权限:
    $ ll /home/svn/
    drwxrwsr-x 6 svn svn 4096 2009-10-19 13:54 ARMRepo

    打开http://192.168.0.200
    It works!

    打开http://192.168.0.200/svn/armrepo时
    Not Found

    The requested URL /svn/armrepo was not found on this server.
    Apache/2.2.11 (Ubuntu) DAV/2 SVN/1.5.4 mod_ssl/2.2.11 OpenSSL/0.9.8g Server at 192.168.0.200 Port 80

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.