阅读更多
所需软件包:
apr-1.5.2.tar.gz、apr-util-1.3.9.tar.gz、sqlite-amalgamation-3071501.zip、zlib-1.2.7.tar.gz、subversion-1.8.14.tar.gz、openssl-1.0.2c.tar.gz、serf-1.2.1.tar.bz2
1#、安装apr
tar zxvf apr-1.5.2.tar.gz
cd apr-1.4.8
./configure
make
sudo make install
2#、安装apr-util-1.3.9.tar.gz
tar zxvf apr-util-1.3.9.tar.gz
cd apr-util-1.5.2
./configure --with-apr=/usr/local/apr
make
sudo make install
3#、安装zlib-1.2.7.tar.gz
tar zxvf zlib-1.2.7.tar.gz
cd zlib-1.2.8
./configure --prefix=/usr/local/zlib
make
sudo make install
4#安装openssl openssl-1.0.2c.tar.gz;
1.下载openssl1.0.2 解压,进目录: tar zxvf openssl-1.0.2c.tar.gz & cd openssl-1.0.2c
2。./config --prefix=/usr/local/ssl shared zlib-dynamic
3。make
4。sudo make install
5# 安装 serf serf-1.2.1.tar.bz2 :
1。下载serf1.2 解压 ,进目录: tar jxvf serf-1.2.1.tar.bz2 & cd /serf-1.2.1
2。./configure --prefix=/usr/local/serf --with-openssl=/usr/local/ssl
3。make (提示 make: *** [test/serf_get] Error 1 ,忽略这个提示居然还能继续安装!)
4。sudo make install
6#、安装subversion-1.8.14.tar.gz
tar xvfz subversion-1.8.14.tar.gz
cp sqlite-amalgamation-3071501.zip ./subversion-1.8.14
cd subversion-1.8.14
unzip sqlite-amalgamation-3071501.zip
mv sqlite-amalgamation-3071501 sqlite-amalgamation
./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr ###这是没装serf 和openssl 之前的 ,装了 serf 和openssl 则使用下面的。
(./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --with-zlib=/usr/local/zlib/ --enable-maintainer-mode --with-serf=/usr/local/serf
改后的安装版本)
./configure 时会报错,subversion need sqlit。。。(solution:把 sqlite-amalgamation-3071501.zip 解压 ;再 mv sqlite-amalgamation-3071501 sqlite-amalgamation; 再 mv sqlite-amalgamation subversion-1.8.14 。。。再./configure .... 就行了)
make
sudo make install
------filepath = /home/imeamin2/work/svn-install-----
-----------------------------------------------------------------------------------------------
1.以上全部安装都是用的默认路径,没有特别设置
2.subversion默认安装到 /usr/local/bin/svn,如果原来有svn在/usr/bin/svn,需要删除掉
------------------------------------------------------------------------------------------------------------------
问题:svn unrecognized url scheme for ×××
solution :少了 serf 包,装上serf就ok了,(neon 好像不支持svn1.8了,网上说装neon就可以,可是我装了没用,svn1.8之前是支持neon的)。可是装serf 又会提示要装openssl ,那就先装openssl 吧
openssl;
1.下载openssl1.0.2 解压,进目录
2。./config --prefix=/usr/local/ssl shared zlib-dynamic
3。make
4。sudo make install
serf:
1。下载serf1.2 解压 ,进目录
2。./configure --prefix=/usr/local/serf --with-openssl=/usr/local/ssl
3。make
4。sudo make install
-----------------------------------------------------------------------------------------
configure的时候可能回出现 configure: error: no XML parser was found: expat or libxml 2.x required
安装以下库就可以解决
apt-get install libxml2 libxml2-dev expat
-----------------------------------------------------------------------------------------
--------------------------千万不要有单词拼错-------------------------
-------------------------------------------------------------------------------------------------------------------------