Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Could not find library libperl.so: (4 Items)
   
Could not find library libperl.so  
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. 

Yuan
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
Re: Could not find library libperl.so  
Sean,

Thank you. I switched to 6.3.2 from 6.4.0 due to some other requirement of
the system. When I added the rpath to the LD_LIBRARY_PATH, it worked.

BTW, I cannot find pkg_add command on the target machine. Should I add any
path or install it manually if I want to use it later on?

Yuan
Re: Could not find library libperl.so  
On Fri, Jul 30, 2010 at 11:56:25AM -0400, Yuan Sun wrote:
> Sean,
> 
> Thank you. I switched to 6.3.2 from 6.4.0 due to some other requirement of
> the system. When I added the rpath to the LD_LIBRARY_PATH, it worked.
> 
> BTW, I cannot find pkg_add command on the target machine. Should I add any
> path or install it manually if I want to use it later on?
> 

I think this os the 6.3.2 one:

http://community.qnx.com/sf/frs/do/listReleases/projects.pkgsrc/frs.qnx_bootstrap_binary_kit


-seanb