linux 编译安装SVN

wget  https://downloads.apache.org/subversion/subversion-1.14.3.tar.bz2
tar -xvjf subversion-1.14.3.tar.bz2
cd /usr/lee/subversion-1.14.3
./configure --prefix=/var/svn --with-sqlite=/usr/local/sqlite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-lz4=internal --with-utf8proc=internal
make
make install
echo 'export PATH=/var/svn/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
svn --version
# 缺失中间件
wget http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz
wget http://archive.apache.org/dist/apr/apr-util-1.5.4.tar.gz
wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.39/pcre-8.39.tar.gz
wget https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz
wget http://zlib.net/zlib-1.2.11.tar.gz
cd /usr/lee
tar -zxf apr-1.5.2.tar.gz
cd  /usr/lee/apr-1.5.2
./configure --prefix=/usr/local/apr
make && make install
cd /usr/lee
tar -zxf apr-util-1.5.4.tar.gz
cd /usr/lee/apr-util-1.5.4
./configure  --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config
make && makeinstall
cd /usr/lee
tar -zxf sqlite-autoconf-3460100.tar.gz
cd /usr/lee/sqlite-autoconf-3460100
./configure  --prefix=/usr/local/sqlite
make && makeinstall
cd /usr/lee
tar -xvzf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make
make install
# 进入文件夹sqlite-amalgamation找到sqlite3.c将其复制到
# subversion-1.6.2/sqlite-amalgamation/sqlite3.c
点赞