Subversion 安裝注意事項

Subversion 是一套比 CVS 還要好用的版本控管軟體,在 Windows 上的安裝說實在比 *Unix 上簡單太多了。本篇僅介紹 *unix 安裝 Subversion 的重點。


在 *Unix 安裝 Subversoin ,先到官方網站把所有的套件都裝好之後,記得要把 svn 的資料目錄 Owner 設為 apache ,範例指令如下:

# chown /usr/local/svn apache:apache -R

(如果新增一個 Repository 時,也記得同樣要把 Owner 指定給 apache,否則可能會出現 Could not open the requested SVN filesystem)

如果不能讀寫,記得要把權限設為 755

# chown 755 /usr/local/svn -R

這是比較容易忽略掉的地方,這樣大概就能保證 subversion 能正常執行了,如果還跑不起來,就檢查一下 Apache 的 httpd.conf 設定 svn 路徑正不正確,範例如下:

<Location /svn>
DAV svn
SVNParentPath /usr/local/svn
</Location>

[相關網址]

Subversion 官方網站
http://subversion.tigris.org/

Subversion 電子書繁體中文版
http://freebsd.sinica.edu.tw/~plasma/svnbook/

Subversion for Windows 安裝指南
http://huanlin.dyndns.org/techshare/viewArticle.action?articleID=2004061303

Subversion 0.22 on freebsd (中文)
http://plasma.z6i.org/archives/000933.html

4 comments On Subversion 安裝注意事項

  • 您好:
    請問您在UNIX上安裝的Subversion是Pre-compiled的版本嗎?因為我在官方網站上都找不到For UNIX的版本!如果您有的話,可否提供小弟下載網址或Email給我呢?謝謝!
    ※PS.我的UNIX是HP-UX 11.11 64bit版本...

  • My environment is fedora core 3.

    I get apache 2.0.55
    #./configure –enable-dav –enable-so –enable-maintainer-mode
    #make
    #make install

    I get subversion 1.2.3 ,for rebuild and install.
    #./configure –with-apxs=/usr/local/apache2/bin/apxs
    #make ; make install

    Follow the steps as following…

    (1)add something into /usr/local/apache2/conf/httpd.conf
    LoadModule dav_svn_module modules/mod_dav_svn.so

    DAV svn
    SVNPath /home/mysvn

    (2)
    #svnadmin create /home/mysvn
    #chown –R nobody /home/mysvn

    (3)start the apache2 server
    apachectl start

    And finally using the browser for checking…
    http://localhost/svn/repository/

    IT CANNOT WOK~~~ >_< always fails!

    Who could give me a hand???
    Thanks a lot!

    ===
    You could also mail to
    yuyuyuyu176@yahoo.com.tw

  • (1)
    Error Message is
    “Could not open the requested SVN filesystem”

    (2)
    As the suggestion,I modify the owner of the SVN repository directory to apache,
    It still fails… >_<

    Any ideas???

Leave a reply:

Your email address will not be published.

Site Footer

Sliding Sidebar