Linux不少地方編譯的時候都會用到apr 若是找不到apr就會報錯 configure: WARNING: APR not found The Apache Portable Runtime (APR) library cannot be found. Please install APR on this system and configure Subversion with the appropriate –with-apr option. You probably need to do something similar with the Apache Portable Runtime Utility (APRUTIL) library and then configure Subversion with both the –with-apr and –with-apr-util options. apr是比較噁心的一個東東,由於用直接用yum install apr安裝apr後,當再安裝其餘東西須要apr環境時候 常常仍是找不到,儘管已經安裝它了。 這樣的話咱們只能經過下面這兩個參數來指定他們的位置了,可是首先要作的就是安裝apr和apr-until --with-apr --with-apr-util apr 和 apr-util官網下載地址: http://apr.apache.org/download.cgi 安裝順序是先安裝apr而後再安裝 apr-util,由於安裝apr-util須要apr環境 首先安裝apr 指定安裝到/usr/local/apr wget http://mirrors.cnnic.cn/apache/apr/apr-1.4.8.tar.gz tar zxvf apr-1.4.8.tar.gz cd apr-1.4.8 ./configure --prefix=/usr/local/apr make & make install 而後安裝apr-util,指定安裝到/usr/local/apr-util wget http://mirrors.cnnic.cn/apache/apr/apr-util-1.5.2.tar.gz tar zxvf apr-util-1.5.2.tar.gz cd apr-util-1.5.2 ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr make & make install 通過上面的步驟咱們就能夠安裝其餘程序了,好比編譯安裝svn的時候指定apr和apr-util 指定svn位置/usr/local/subversion 同時也要指定apr和apr-util位置,代碼以下 wget http://mirror.esocc.com/apache/subversion/subversion-1.8.3.tar.gz cd subversion-1.8.3.tar.gz ./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util make & make install
配置:
http://www.iitshare.com/linux-svn-installation-and-configuration.html