libperl.so应该放哪里才能让安装程序找到?

libperl.so应该放哪里才能让安装程序找到?

http://bbs.chinaunix.net/forum/viewtopic.php?t=611816&show_type=

我一台HP DL145服务器,用的是Opteron+CentOS 4.1,安装一个程序需要libperl.so,明明系统里面有却找不到,我该把文件放哪里才能让系统找到?我拷贝到下面一个目录不行:/usr/lib/perl5/5.8.5/CORE/

[Copy to clipboard] [ - ]
CODE:
[root@amd yum]# rpm -ivh perl-suidperl-5.8.0-88.i386.rpm
warning: perl-suidperl-5.8.0-88.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
        libperl.so is needed by perl-suidperl-5.8.0-88.i386
[root@amd yum]# locate libperl.so
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE/libperl.so
/usr/lib64/perl5/5.8.0/x86_64-linux-thread-multi/CORE/libperl.so
/usr/lib64/perl5/5.8.1/x86_64-linux-thread-multi/CORE/libperl.so
/usr/lib64/perl5/5.8.4/x86_64-linux-thread-multi/CORE/libperl.so
/usr/lib64/perl5/5.8.2/x86_64-linux-thread-multi/CORE/libperl.so
/usr/lib64/perl5/5.8.3/x86_64-linux-thread-multi/CORE/libperl.so
[root@amd yum]# ls /usr/lib/perl5/5.8.5/CORE/libperl.so -l
-r-xr-xr-x  1 root root 1385936 Sep 14 17:25 /usr/lib/perl5/5.8.5/CORE/libperl.so
[root@amd yum]#

执行

[Copy to clipboard] [ - ]
CODE:
echo '/usr/lib/perl5/5.8.5/CORE/' >;>; /etc/ld.so.conf; ldconfig

然后再试一下。
谢谢版主,好象不行……

[Copy to clipboard] [ - ]
CODE:
[root@amd ~]# echo '/usr/lib/perl5/5.8.5/CORE/' >;>; /etc/ld.so.conf; ldconfig
[root@amd ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/X11R6/lib
/usr/X11R6/lib64
/usr/lib/perl5/5.8.5/CORE/
[root@amd ~]# cd /var/cache/yum/
[root@amd yum]# rpm -ivh perl-suidperl-5.8.0-88.i386.rpm
warning: perl-suidperl-5.8.0-88.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
        libperl.so is needed by perl-suidperl-5.8.0-88.i386
[root@amd yum]# locate libperl.so
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE/libperl.so
/usr/lib64/perl5/5.8.0/x86_64-linux-thread-multi/CORE/libperl.so
/usr/lib64/perl5/5.8.1/x86_64-linux-thread-multi/CORE/libperl.so
/usr/lib64/perl5/5.8.4/x86_64-linux-thread-multi/CORE/libperl.so
/usr/lib64/perl5/5.8.2/x86_64-linux-thread-multi/CORE/libperl.so
/usr/lib64/perl5/5.8.3/x86_64-linux-thread-multi/CORE/libperl.so
[root@amd yum]# echo '/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE/' >;>; /etc/ld.so.conf;ldconfig
[root@amd yum]# rpm -ivh perl-suidperl-5.8.0-88.i386.rpm
warning: perl-suidperl-5.8.0-88.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
        libperl.so is needed by perl-suidperl-5.8.0-88.i386
[root@amd yum]#

还不行啊……
my libperl.so is under /usr/lib/ in debian.

also take a look at your perl -V output. see the libpath.

or, you could compile the perl source code.

and, why are you installing suidperl not perl ????
Open Webmail需要安装这个包

QUOTE:
[root@amd ~]# perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
    osname=linux, osvers=2.6.9-1.675_el, archname=x86_64-linux-thread-multi
    uname='linux x8664-build 2.6.9-1.675_el #1 tue jan 11 16:05:09 cst 2005 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -m64 -Dversion=5.8.5 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc.
……
Linker and Libraries:
    ld='gcc', ldflags =''
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.4.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.4'
……
[root@amd ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/X11R6/lib
/usr/X11R6/lib64
/usr/lib/perl5/5.8.5/CORE
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE
/usr/lib64/perl5/5.8.0/x86_64-linux-thread-multi/CORE
/usr/lib64
[root@amd ~]#

下面的只是猜测,你自己试试吧。

把 libperl.so 复制到 任意一个目录试试  /usr/local/lib64 /lib64 /usr/lib64

或者, 你该把你的 rpm 的 db rebuild 一下。
谢谢楼上的,最后我还是在rpmfind找到了forx86_64的rpm,装那个就好了。
我也遇到这个问题了,请问楼主怎么解决的?