[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: perl in %post section, RedHat 8.0
- From: Philip Rowlands <phr doc ic ac uk>
- To: kickstart-list redhat com
- Subject: Re: perl in %post section, RedHat 8.0
- Date: Tue, 29 Apr 2003 22:35:19 +0100 (BST)
On Tue, 29 Apr 2003, Fong Vang wrote:
>Our kickstart process under RedHat 7.1 relies on a couple of perl scripts
>for customizations. These scripts do not work with kickstart under 8.0,
>complaining about not being able to load 'libperl.so'. These scripts run in
>a non-chroot-ed environmented. What's the easiest approach to get these
>perl scripts to work without a lot of modifications?
Does it really need to run non-chroot? You could include a
/mnt/sysimage -> / symlink inside chroot if you have hard-coded paths in
the perl script.
Otherwise, you need to let perl find the library it needs. libperl.so
lives in rpath, so this might work (untested):
%post
cd /usr/lib
ln -s /mnt/sysimage/usr/lib/perl5
/mnt/sysimage/usr/bin/perl your-script.pl
I found the rpath like this:
$ readelf -a perl |grep rpath
0x0000000f (RPATH) Library rpath: [/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE]
Hope this helps,
Phil
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]