linux下安装svn出现configure: error: We require OpenSSL; try --with-openssl

解决方法:

错误提示需要安装openssl,所以我就安装了一个openssl,安装方法如下:

cd /usr/local

wget http://www.openssl.org/source/openssl-1.0.0a.tar.gz

tar -zxvf openssl-1.0.0a.tar.gz

cd openssl-1.0.0a

./config
./config -t
make depend
make
make test
make install



安装之后会在/usr/local下生成一个ssl目录

设置环境变量,在/etc/profile的PATH中增加如下内容:

PATH=/usr/local/ssl/bin:/sbin/:$PATH:/usr/sbin
export PATH



ok,错误提示解决。



重新执行./configure --with-openssl=/usr/local/ssl #这里加上--with-openssl参数

 
 

你可能感兴趣的:(Linux)