configure: error: We require OpenSSL; try --with-openssl 解决方法:
错误提示需要安装openssl,所以我就安装了一个openssl,下载openssl-1.0.0a.tar.gz放到root下,安装方法如下: cd /root
tar -zxvf openssl-1.0.0a.tar.gz cd openssl-1.0.0a ./config make
make install make clean
安装之后会在/usr/local下生成一个ssl目录
设置环境变量,在/etc/profile的PATH中增加如下内容: PATH=/usr/local/ssl/bin:/sbin PATH:/usr/sbin export PATH
重新执行./configure --with-openssl=/root/openssl-1.0.0a #这里加上--with-openssl参数 #错误提示2#
configure: error: subversion requires zlib 这是需要安装zlib 解决方法: cd /root
tar -xvzf zlib-1.2.5.tar.gz cd zlib-1.2.5 ./configure make
make install
cd /usr/local
ln -s zlib-1.2.5 zlib
重新执行./configure --with-openssl=/usr/local/ssl --with-zlib=/usr/local/zlib ,成功! 或者,subversion-1.6.2中自带zlib. cd subversion-1.6.2/zlib make
make install make clean OK。
#错误提示3#
> configure: error: no XML parser was found: expat or libxml 2.x required
这个时候 rpm -qa expat2 检查是否安装 expat2 如果没有就下载 expat2.tar.gz 安装:
tar -xvf expat2.tar.gz
export CPPFLAGS=-I/usr/local/expat-2.0.1/lib
这个时候 在subvision 下执行 ./configure 命令 会显示 不会出现 expat.h... no #错误提示4#
lib64/libssl.a: could not read symbols: Bad value
解决方法:我在网上查了许多资料,在Makefile里加过-fPIC,但问题得不到解决。后来是这样解决的:
./configure -enable-shared=no 然后make
此时,就会有这个错误: #错误提示5#
/bin/id: cannot find -lcrypto
> collect2: id returned 1 exit status
我就在整个文件夹下搜索libcrypto.a 搜到以后把它拷到usr/lib64下, 然后make,编译成功。
再make install的时候又出现这个错误: #错误提示6#
Cannot install “libaprutil-1.la” to a directory not ending in /home/svn/lib
这是因为之前安装过一次,现在与之前安装的目录不同,所以要make clean一下,然后再make install就可以了。
在命令行中svn -help,如果有帮助信息,说明安装成功。
因篇幅问题不能全部显示,请点此查看更多更全内容