perl-kde4 problem

Hi!

I’ve tried to compile the example problem from the QtCore4.pm documentation, but it failed, misses some shared library. Here are the details:

The example code(from perldoc QtCore4):

use QtCore4;
my $app = Qt::Application(\@ARGV);
my $button = Qt::PushButton( 'Hello, World!', undef);
$button->show();
exit $app->exit();

The error message:

Can't load '/usr/lib/perl5/vendor_perl/5.12.1/x86_64-linux-thread-multi/auto/QtCore4/QtCore4.so' for module QtCore4: libperl.so: could not open shared object: file or directory does not exist at /usr/lib/perl5/5.12.1/XSLoader.pm line 70.

Perl version:

This is perl 5, version 12, subversion 1 (v5.12.1) built for x86_64-linux-thread-multi   

perl-kde4 version: 4.5.0-160.1 from Index of /repositories/KDE:/Distro:/Factory/openSUSE_11.3

same problem here

The perl-library is not in the library path, so this is a configuration error in the perl-kde4 package.

SOLUTION:
Several work arounds are possible. One is to sym-link the perl-library to a directory and re-run ldconfig (this is also automatically run after updating or installing software packages).

sudo ln -s /usr/lib/perl5/5.12.1/i586-linux-thread-multi/CORE/libperl.so /usr/local/lib
sudo /sbin/ldconfig