- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Perl with shared libperl.sl
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 02:57 AM
02-28-2002 02:57 AM
binary with a shared libperl.sl on
HP-UX 11.00. building and installing
goes fine but the installed Perl binary is linked against the libperl.sl
located in the build and not the installation directory.
chatr /opt/local/perl/perl-5.005_03-a6/bin/perl | grep libperl
says
static /home/foo/tmp/perl/perl5.005_03/libperl.sl
when i delete the build directory and try to execute Perl i get the following error message:
/usr/lib/dld.sl: Can't open shared library: /home/aspa/tmp/perl/perl5.005_03/libperl.sl
/usr/lib/dld.sl: No such file or directory
Abort (core dumped)
Perl has been linked against the following libraries: -lpthread -lcl -lm. these seem to be required when using DBI & DBD::Oracle.
how do i correctly build a Perl binary with a shared libperl.sl on HP-UX?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 03:29 AM
02-28-2002 03:29 AM
Re: Perl with shared libperl.sl
1. Either add the libperl library path to the SHLIB_PATH environment variable, or alternatively you can re-link the executable specifying the +b
2. Enable the library for runtime path lookup:
$ chatr -l
3. Make sure the run-time path lookup options are enabled:
$ chatr +s enable +b enable
Hope this helps!
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 04:33 AM
02-28-2002 04:33 AM
Re: Perl with shared libperl.sl
look at
http://pxr.perl.org/source/INSTALL
947
948 You can often recognize failures to build/use a shared libperl from error
949 messages complaining about a missing libperl.so (or libperl.sl in HP-UX),
950 for example:
951 18126:./miniperl: /sbin/loader: Fatal Error: cannot map libperl.so
952
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 05:36 AM
02-28-2002 05:36 AM
Re: Perl with shared libperl.sl
chatr +s enable /opt/local/perl/perl-5.005_03-d1/bin/perl
and set SHLIB_PATH to /opt/local/perl/perl-5.005_03-d1/lib/5.00503/PA-RISC2.0/CORE
chatr says:
shared executable
shared library dynamic path search:
SHLIB_PATH enabled second
embedded path disabled first Not Defined
shared library list:
static /home/aspa/tmp/perl/perl5.005_03-d1/libperl.sl
but perl still won't start:
/usr/lib/dld.sl: Can't open shared library: /home/aspa/tmp/perl/perl5.005_03-d1/libperl.sl
/usr/lib/dld.sl: No such file or directory
Abort (core dumped)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 05:53 AM
02-28-2002 05:53 AM
Re: Perl with shared libperl.sl
As per my earlier post, run the following command to fix this:
$ chatr -l
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 06:21 AM
02-28-2002 06:21 AM
Re: Perl with shared libperl.sl
is there a way of "hard coding" the libperl.sl search path (in installation directory) to the perl executable without recompiling so that the SHLIB_PATH won't have to be set for every process which uses perl?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 06:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 07:12 AM
02-28-2002 07:12 AM
Re: Perl with shared libperl.sl
-Dldflags='-Wl,+b,/opt/local/perl/perl-5.005_03-d5/lib/5.00503/PA-RISC2.0/CORE::'
to the Perl configuration command line and rebuilt perl with a shared libperl.sl. after installation i ran:
chatr -l /home/aspa/tmp/perl/perl5.005_03-d5/libperl.sl /opt/local/
perl/perl-5.005_03-d5/bin/perl
and now perl runs without setting the SHLIB_PATH variable. thanks for the help.