Linux笔记-centos7编译安装svn 1.14.1
生活随笔
收集整理的這篇文章主要介紹了
Linux笔记-centos7编译安装svn 1.14.1
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
最近準備搭個創庫,方面代碼備份。服務器采用Linux,在百度上,差不多都是用yum安裝。而且版本都太老了,不適合新時代程序員。
對此閱讀了下官方文檔。記錄下目前(2021-03-14 13:12:47)最新版subversion(1.14.1)的Linux服務端編譯安裝。
?
首先用yum安裝這2個庫:
yum install expat-devel yum install libtool安裝Python3
wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz tar -xf Python-3.6.8.tar cd Python-3.6.8 ./configure prefix=/usr/local/python3 make make install ln -s /usr/local/python3/bin/python3.6 /usr/bin/python3 python3 -v?
隨后依次安裝
Apr-1.7.0
wget https://archive.apache.org/dist/apr/apr-1.7.0.tar.bz2 tar -xjf apr-1.7.0.tar.bz2 cd apr-1.7.0 ./configure --prefix=/usr \--disable-static \--with-installbuilddir=/usr/share/apr-1/buildmake make install?
Apr-Util-1.6.1
wget https://archive.apache.org/dist/apr/apr-util-1.6.1.tar.bz2 tar -xjf apr-util-1.6.1.tar.bz2 cd apr-util-1.6.1 ./configure --prefix=/usr \--with-apr=/usr \--with-gdbm=/usr \--with-openssl=/usr \--with-crypto make make install?
最后SQLite-3.34.1
wget https://sqlite.org/2021/sqlite-autoconf-3340100.tar.gz tar -zxvf java.tar.gz cd sqlite-autoconf-3340100 ./configure --prefix=/usr \--disable-static \--enable-fts5 \CPPFLAGS="-DSQLITE_ENABLE_FTS3=1 \-DSQLITE_ENABLE_FTS4=1 \-DSQLITE_ENABLE_COLUMN_METADATA=1 \-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \-DSQLITE_ENABLE_DBSTAT_VTAB=1 \-DSQLITE_SECURE_DELETE=1 \-DSQLITE_ENABLE_FTS3_TOKENIZER=1" make make install?
最后搞Subversion-1.14.1
wget https://archive.apache.org/dist/subversion/subversion-1.14.1.tar.bz2 tar -xjf subversion-1.14.1.tar.bz2 cd subversion-1.14.1 PYTHON=python3 ./configure --prefix=/usr \--disable-static \--with-apache-libexecdir \--with-lz4=internal \--with-utf8proc=internal make make install這樣服務端就搭建好了。
查看版本號:
svnserve --version創建好創庫后
svnserve -d -r /var/svn端口號為3690
lsof -i:3690?
PS:
停止svnserver命令:
killall svnserve?
?
總結
以上是生活随笔為你收集整理的Linux笔记-centos7编译安装svn 1.14.1的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux笔记-设置SSH公钥免密码登录
- 下一篇: Linux笔记-centos7替换yum