svn: error while loading shared libraries: libsvn_client-1.so.0
来源:互联网 发布:疯狂的程序员 mobi 编辑:程序博客网 时间:2024/05/13 20:27
http://www.cnblogs.com/mangu-uu/archive/2012/08/23.html
svn安装在了tools目录外面,把文件夹移动tools/下的时候,发现svn不能用了,报错
error while loading shared libraries: libsvn_client-1.so.0: cannot open shared object file: No such file or directory
1、之前出现过这样的问题,大师教招:strace。于是用strace svn跑了下,发现
strace ./bin/svn
execve("./bin/svn", ["./bin/svn"], [/* 22 vars */]) = 0
uname({sys="Linux", node="cq01-testing-img12.vm.baidu.com", ...}) = 0
brk(0) = 0x52e000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95556000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/home/work/svn/lib/tls/x86_64/libsvn_client-1.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/home/work/svn/lib/tls/x86_64", 0x7fbfffed30) = -1 ENOENT (No such file or directory)
open("/home/work/svn/lib/tls/libsvn_client-1.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/home/work/svn/lib/tls", 0x7fbfffed30) = -1 ENOENT (No such file or directory)
..open("/usr/lib64/tls/x86_64/libsvn_client-1.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/tls/x86_64", 0x7fbfffed30) = -1 ENOENT (No such file or directory)
open("/usr/lib64/tls/libsvn_client-1.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/tls", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib64/x86_64/libsvn_client-1.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/x86_64", 0x7fbfffed30) = -1 ENOENT (No such file or directory)
open("/usr/lib64/libsvn_client-1.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib64", {st_mode=S_IFDIR|0755, st_size=24576, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=75094, ...}) = 0
mmap(NULL, 75094, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95557000
close(3) = 0
open("/lib64/tls/x86_64/libsvn_client-1.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib64/tls/x86_64", 0x7fbfffed30) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libsvn_client-1.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib64/tls", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/lib64/x86_64/libsvn_client-1.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib64/x86_64", 0x7fbfffed30) = -1 ENOENT (No such file or directory)
open("/lib64/libsvn_client-1.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib64", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib64/tls/libsvn_client-1.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/libsvn_client-1.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
修改了bashrc中的path变量,加入这个路径还是有问题。只能请教大师
2、大师招数1——ldd命令查看 so文件,发现so not found
libsvn_client-1.so.0 => not found
libsvn_wc-1.so.0 => not found
3、大师招数2——查看LD_LIBRARY_PATH变量
发现是空的
于是传授入下
1)LD_LIBRARY_PATH变量设置上svn的lib路径
于是在~/.bashrc里面加入了
“export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/tools/”
source ~/.bashrc后解决
- svn: error while loading shared libraries: libsvn_client-1.so.0
- svn: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No suc
- error while loading shared libraries: libgnutls.so
- error while loading shared libraries: libgnutls.so
- error while loading shared libraries: libICTCLAS50.so
- error while loading shared libraries: libcudart.so.##.
- error while loading shared libraries: libjli.so
- error while loading shared libraries: libevent-1.x.so.1
- error while loading shared libraries: libgtk-x11-2.0.so.0
- error while loading shared libraries: libpcre.so.0的解决办法
- error while loading shared libraries: libsqlora8-2.3.so.0
- error while loading shared libraries libSDL-1.2.so.0
- snort:error while loading shared libraries : libsfbpf.so.0
- error while loading shared libraries: libpcre.so.0的解决办法
- Ubuntu error while loading shared libraries: ****.so.0 解决方法
- svn: error while loading shared libraries: /usr/local/lib/libsvn_ra_dav-1.so.0: cannot restore segment port after reloc: Permiss
- [error]error while loading shared libraries: libpcre.so.1 解决
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- poj 3268 Silver Cow Party
- dubbo 学习笔记 -- consumer端
- CodeIgniter 核心代码阅读-输入数据处理文件Input.php
- Java对象的生命周期-内存分配、回收内存
- 详解Wavedev2模式的音频驱动
- svn: error while loading shared libraries: libsvn_client-1.so.0
- oracle使用cursor动态更新线上初始化数据
- Ensemble连接oracle数据库的3种方法
- #小练习 HTMLParser
- ROBOT VISION (MIT)--introduction
- const 理解
- poj水题
- android中安装,启动和卸载应用
- gcc编译调用opencv库函数遇到的问题总结