20120203 SVN安装 出现的问题处理
??
安裝新SVN,并導入之前SVN版本庫操作手記
分類:?GNU2012-03-15 09:43?274人閱讀?評論(0)?收藏?舉報目錄(?)[+]
svn服務器有2種運行方式:獨立服務器和借助apache。2種方式各有利弊,本次安裝時使用的是獨立用品方式。
 svn存儲版本數據也有2種方式:BDB和FSFS。因為BDB方式在服務器中斷時,有可能鎖住數據所以還是FSFS方式更安全一點,我安裝時也使用的是FSFS方式。
一.下載svn
下載地址:http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=260&expandFolder=74
選擇subversion-1.6.1.tar.gz?和?subversion-deps-1.6.1.tar.gz
二.安裝
cd /usr/local/
tar zxvf subversion-1.6.1.tar.gz
tar zxvf subversion-deps-1.6.1.tar.gz #會自動解壓到subversion-1.6.1下
 cd subversion-1.6.1
按照一些網絡資料的介紹,執行如下命令即可完成安裝
./configure --without-berkeley-db --prefix=/usr/local/subversion
make
make install
?
#錯誤提示1#
configure: error: We require OpenSSL; try --with-openssl
解決方法:
錯誤提示需要安裝openssl,所以我就安裝了一個openssl,安裝方法如下:
cd /usr/local
wget?http://www.openssl.org/source/openssl-1.0.0a.tar.gz
tar -zxvf openssl-1.0.0a.tar.gz
cd openssl-1.0.0a
./config?
 ./config -t?
 make depend
 make?
 make test?
 make install
安裝之后會在/usr/local下生成一個ssl目錄
設置環境變量,在/etc/profile的PATH中增加如下內容:
PATH=/usr/local/ssl/bin:/sbin/:$PATH:/usr/sbin
 export PATH
ok,錯誤提示1解決。
?
重新執行./configure --with-openssl=/usr/local/ssl #這里加上--with-openssl參數
#錯誤提示2#
configure: error: subversion requires zlib
?
解決方法:
cd /usr/local
wget? http://zlib.net/zlib-1.2.5.tar.gz
 tar -xvzf zlib-1.2.5.tar.gz
 cd zlib-1.2.5
 ./configure
 make
 make install
?
cd /usr/local
ln -s zlib-1.2.5 zlib
?
ok,錯誤提示2解決。
?
重新執行./configure --with-openssl=/usr/local/ssl --with-zlib=/usr/local/zlib?,成功!
?
接著執行如下命令:
make
make install
完成后屏幕會提示
You don't seem to have Berkeley DB version 4.0.14 or newer
 installed and linked to APR-UTIL.? We have created Makefiles which
 will build without the Berkeley DB back-end;?your repositories will
 use FSFS as the default back-end.? You can find the latest version of
 Berkeley DB here:
 http://www.oracle.com/technology/software/products/berkeley-db/index.html
?make && make install
?
ok,svn安裝完成。
建立版本庫
svnadmin create /work/svndata
進入/tmp目錄下,然后進行checkout操作
 svn co svn://192.168.1.111/svntest
查看文件log的歷史記錄
 [root@CentOS_Test_Server svntest]# svn log test
?
SVN遷移
SVN遷移可能有很多原因,?可能是我們想換Repository目錄,?或者是想換一臺機器,?等等.?
 SVN遷移很容易做,?按照下面步驟就可以:?
 1.?將原來的Repository導出為一個文件dumpfile?
 > svnadmin dump path/to/old-repo > dumpfile?
 2.?創建新的Repository,?創建方法可以參考?Windows?平臺安裝Subversion server?
 3.?將dumpfile導入到新的Repository?
 > svnadmin load path/to/new-repo < dumpfile?
 4.?檢查新的Repository的conf/目錄下的配置文件,?檢查hooks/目錄下的構子程序等等...
轉載于:https://blog.51cto.com/fccwcom/1131394
總結
以上是生活随笔為你收集整理的20120203 SVN安装 出现的问题处理的全部內容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: thumbnailator 一个好用的图
 - 下一篇: VS2010 测试功能之旅:编码的UI测