Re: perl in %post section, RedHat 8.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux