天天看點

Linux下安裝svn client

最簡單的方式就是 yum install subversion

Linux下安裝svn client

僅安裝 svn 的client:

1.下載下傳軟體 q s(h k�v;B _.O v;o

  1. wgethttp://archive.apache.org/dist/apr/apr-1.3.7.tar.gz
  2. wget http://archive.apache.org/dist/apr/apr-util-1.3.8.tar.gz
  3. wget http://www.sqlite.org/sqlite-amalgamation-3.6.16.tar.gz
  4. wget  http://www.webdav.org/neon/neon-0.28.4.tar.gz
  5. wget http://subversion.tigris.org/downloads/subversion-1.6.3.tar.bz2

8Z ] U!i+q#I#|:J R k 2.安裝 apr BSD愛好者樂園4Q6F D T"]$l N J*R Q

  1. tar zxvf apr-1.3.7.tar.gz
  2. cd apr-1.3.7
  3. ./configure -prefix=/usr/local/apr
  4. make
  5. make install
  6. cat /etc/ld.so.conf
  7. echo /usr/local/apr/lib >> /etc/ld.so.conf

] } / s } [ c s2C ^1S5k 3. 安裝apr-util BSD愛好者樂園 [!G e0|1V E P P8K

  1. tar zxvf apr-util-1.3.8.tar.gz
  2. cd apr-util-.1.3.8
  3. ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/
  4. make
  5. make install
  6. echo /usr/local/apr-util/lib >> /etc/ld.so.conf
  7. ldconfig -v

BSD愛好者樂園4? D(o;? R ]"f r p I3b y C

4.安裝sqlite BSD愛好者樂園�f ~:~"F c l S-/ V5R I

  1. tar zxvf sqlite-amalgamation-3.6.16.tar.gz
  2. cd sqlite-3.6.16/
  3. ./configure --prefix=/usr/local/sqlite
  4. make
  5. make install

i*n K%|�}6] 5.安裝neon

){9K:N v9~*{)b 不需要支援http協定可以略掉安裝BSD愛好者樂園5s V5d&s s b G

  1. tar zxvf neon-0.28.4.tar.gz
  2. cd neon-0.28.4
  3. ./configure --prefix=/usr/local/neon --enable-shared
  4. make
  5. make install

BSD愛好者樂園 q M#r0x O L#? }

在3時可能會提示configure: error: no XML parser was found: expat or libxml 2.x required,執行下面:

yum install expat-devel

帶上--enable-shared報錯時:執行下面的

CFLAGS="-O3 -fPIC" ./configure --prefix=/usr/local/neon

方式二:解壓後重命名為neon,移動至subversion編譯目錄

'E(n s-Z$e s 但subversion編譯時好像找不到neon

n;v Y P _ 報錯如下BSD愛好者樂園/p3z V J r l

  1. configure: checking neon library
  2. An appropriate version of neon could not be found, so libsvn_ra_neon
  3. will not be built.  If you want to build libsvn_ra_neon, please either
  4. install neon 0.28.4 on this system
  5. or
  6. get neon 0.28.4 from:
  7.     http://www.webdav.org/neon/neon-0.28.4.tar.gz
  8. unpack the archive using tar/gunzip and rename the resulting
  9. directory from ./neon-0.28.4/ to ./neon/
  10. no suitable neon found

*X l P+F j x 6.安裝 subversion BSD愛好者樂園 y ^ z:O"H+^ I

  1. tar -jxvf subversion-1.6.3.tar.bz2
  2. cd subversion-1.6.3
  3. ./configure --prefix=/usr/local/svn --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-sqlite=/usr/local/sqlite --with-neon=/usr/local/neon
  4. make
  5. make install

7G M c/| E n q c 7.檢查測試 BSD愛好者樂園'@+t2u N;V o;N8])s X

/usr/local/svn/bin/svn --version

然後将svn的path加到系統path中就好了~

繼續閱讀