安装svn注意问题

最新版本为:1.5.2        

  1. tar -jxvf subversion-1.5.2.tar.bz2
  2. cd subversion-1.5.2
  3. sudo ./configure --with-apxs=/usr/local/apache2/bin/apxs --prefix=/usr/local/subversion --with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2 --with-ssl --with-zlib=/usr/local/zlib --enable-maintainer-mode
  4. sudo make && sudo make install

ASDFSADF
注:第二次我编译1.5.3的版本时,出现下列错误configure: error: could not find library containing RSA_new

重新加了参数如下,原因是当初编译ssl的时候都是指定目录安装的,所以以后要编译什么东西都要指定目录了,不然会在默认的安装地方找不到。固以后大家安装一些基本点的库时,最好按照默认目录来安装,免得找不到。不过指定了目录,也会让自己更清楚安装的目录路径,孰好孰坏呢?

  1. sudo ./configure --with-apxs=/usr/local/apache2/bin/apxs --prefix=/usr/local/subversion --with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2 --with-ssl --with-zlib=/usr/local/zlib --with-openssl=/usr/local/ssl  --with-libs=/usr/local/ssl --enable-maintainer-mode/
  2. sudo make && sudo make install







配置通过

接下来进行编译

make

抱歉,又出错了:

/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value

collect2: ld returned 1 exit status

make[1]: *** [libserf-0.la] Error 1

make[1]: Leaving directory `/usr/local/subversion-1.6.16/serf’

make: *** [external-all] Error 1

这种情况下,我首先是安装了serf-0.7.2.tar.gz这个包,在配置的时候将指向这个包,但并不管用,所以我后来在配置的时候忽略掉了这个包,如下:

./configure  –with-ssl –with-openssl=/usr/local/ssl  –with-libs=/usr/local/ssl –without-serf–enable-maintainer-mode

也就是相比上面的加上了一句:–without-serf

这样配置后再进行make,编译通过了!

 

 

 

/usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 against `a local symbol' can not be used when


making a shared object; recompile with -fPIC

/usr/local/lib/libz.a: could not read symbols: Bad value



解决办法 : 重新安装 zlib-1.2.3.tar.gz


tar -zxvf zlib-1.2.3.tar.gz

cd zlib-1.2.3

./configure


vi Makefile

找到 CFLAGS=-O3 -DUSE_MMAP

在后面加入-fPIC,即变成CFLAGS=-O3 -DUSE_MMAP -fPIC




=======================================================================

lt-svnversion: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory


解决办法 : 


网上有千篇一律的解决方法:

意思是找不到libexpat.so.1这个文件

运行 whereis libexpat.so.1

libexpat.so: /lib/libexpat.so.0 /usr/local/lib/libexpat.so /usr/local/lib/libexpat.so.1

解决:vi /etc/ld.so.conf

加入libexpat.so.1的目录 /usr/local/lib/ 保存退出

运行 ldconfig 


但是试过N遍了还是出现同样的错误。向高手们请教!~


ps: yum install compat-expat1 -> no package

svn源文件里要找的libexpat.so.1文件路径是哪里呢?



include ld.so.conf.d/*.conf

include /usr/local/lib/

这是我的ld.so.conf的内容,看哪里错了?



------解决方案------

include /usr/local/lib/

改成

/usr/local/lib/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值