On 29 August 2010 17:18, Patrick Dupre pd520@york.ac.uk wrote:
On Sun, 29 Aug 2010, Gordon Messmer wrote:
On 08/29/2010 08:27 AM, Patrick Dupre wrote:
With fedora 13, when I use Math:GSL, I get an error message: Can't load '/usr/local/lib/perl5/auto/Math/GSL/Errno/Errno.so' for module Math::GSL::Errno: /usr/local/lib/perl5/auto/Math/GSL/Errno/Errno.so: cannot restore segment prot after reloc: Permission denied at
Try:
chcon -t texrel_shlib_t \ /usr/local/lib/perl5/auto/Math/GSL/Errno/Errno.so
OK, it works for Errno.so, but I have to do it all the files of the package !
How about use find and xargs to do the work for you?
Something like this should work, (untested)
# find /usr/local/lib/perl5/auto/Math/GSL -type f -name '*.so' -print0 | xargs -0 chcon -t texrel_shlib_t
BTW, why not file a RFE for Math::GSL on the redhat bugzilla under Fedora? I already see lots of perl packages in the repository, adding another one might be quite simple for one the current maintainers? :)
Thank