The only issue is - perl can't find their own libaries. I installed perl-ui-dialog using gslapt. After that I tried to run this script, example from the man page Gtk2::Dialog:
Code: Select all
Use Gtk2::Dialog
# create a new dialog with some buttons - one stock, one not.
$dialog = Gtk2::Dialog->new ($title, $parent_window, $flags,
'gtk-cancel' => 'cancel',
'Do it' => 'ok');
# create window contents for yourself.
$dialog->get_content_area ()->add ($some_widget);
$dialog->set_default_response ('ok');
# show and interact modally -- blocks until the user
# activates a response.
$response = $dialog->run;
if ($response eq 'ok') {
do_the_stuff ();
}
# activating a response does not destroy the window,
# that's up to you.
$dialog->destroy;
BEGIN failed--compilation aborted at dlg.pl line 5.
I know that Dialog.pm is located here: /usr/lib/perl5/vendor_perl/5.12.3/UI/Dialog.pm
By the way, I also have Curses::UI installed, and, unlike ui-dialog, it works just fine.
Why does not perl see it if /usr/lib/perl5/vendor_perl is included in @INC? What can I do to fix it?