|
Re: Could not find library libperl.so
|
07/30/2010 9:34 AM
post61182
|
Re: Could not find library libperl.so
On Thu, Jul 29, 2010 at 10:52:02PM -0400, Yuan Sun wrote:
> Hi everyone,
>
> I experienced a problem while installing perl 5.
>
> My target system is qnx 6.3.2, in which ssh is not installed by default. So I need to install openssh manually to
transfer files between the target machine and the host machine( run on fedora 10). And openssl and perl 5 are required
by the openssh installation. I tried to download and install under the instructions on the following website, but failed
:
> http://community.qnx.com/sf/frs/do/viewRelease/projects.pkgsrc/frs.qnx_binary_packages_for_pkgsrc_2.head?_pagenum=4
>
> The perl version I downloaded is perl-5.8.8nb4.tgz. I unzipped the file to /usr, add /usr/perl/bin to PATH and /usr/
perl/lib to LD_LIBRARY_PATH, log out and log in.
> Then I tried to install openssl, which needed perl 5. But there was error information shown as:
> "Could not find library libperl.so"
> I checked the /usr/perl/lib and didn't find libperl.so either.
>
> Could you tell me how to figure this out?
>
> Thank you.
On my system:
# objdump -x /usr/pkg/bin/perl | grep NEEDED
NEEDED libperl.so
NEEDED libm.so.2
NEEDED libc.so.3
NEEDED libsocket.so.3
# readelf -d /usr/pkg/bin/perl | grep RPATH
0x0000000f (RPATH) Library rpath: [/usr/pkg/lib:/usr/pkg/lib/perl5/5.10.0/x86pc-nto/CORE]
# ls -l /usr/pkg/lib/perl5/5.10.0/x86pc-nto/CORE/libperl.so
-r-xr-xr-x 1 root root 1325778 Jun 02 15:44
/usr/pkg/lib/perl5/5.10.0/x86pc-nto/CORE/libperl.so
rpath overrides LD_LIBRARY_PATH. The root of your problem
is probably that you should use 'pkg_add' rather than 'tar'
to add packages so they're installed in the same prefix as
they were built (usually /usr/pkg).
Or you can usr 6.4.1+ which ships with ssh and friends.
Regards,
-seanb
|
|
|