0

I have a problem with the Tkx package. I use Perl 5.14.2 on CentOS, and I know that this version of Perl basically contains the Tkx package. When I try to get the version of Tkx (with the following code snipet)

perl -MTkx -e 'print Tkx::info("patchlevel");'

And I get the following error message:

couldn't load file "/tmp/tclpWVq4S": libXss.so.1: cannot open shared object file: 
No such file or directory at -e line 0. 
Compilation failed in require. 
BEGIN failed--compilation aborted.

I searched for a sollution but I didn't find answer for it. Can anyone tell me what's going on here?

zsidanyi
  • 105
  • 1
  • 2
  • 6
  • Does it help if you install the libXScrnSaver and/or libXScrnSaver-devel package? – Slaven Rezic Jul 17 '13 at 12:31
  • Don't know. The problem is I'm not root on that machine but I'll give it a try and hopefully this will solve the problem. Thanks :). – zsidanyi Jul 17 '13 at 12:36
  • check whether you find a file named `libXss.so.1` on your file system (typically in `/usr/lib`, `/usr/lib/local`). check whether you have access rights to it. it should be some symbolic link to `libXss.so`. **WARNING**: the recipe to follow might work and is practical for test/development, but **should not be applied in production environments**. if you find the latter, you can try to set up a proper symbolic link (`ln -s `) in a part of the file system you have write access to and complement your `PERL5LIB` environment variable accordingly. – collapsar Jul 17 '13 at 12:57
  • you may also wish to check for dependencies of the library using `ldd libXss.so.1` in the directory where `libXss.so.1` resides (if it does). – collapsar Jul 17 '13 at 13:02
  • Another idea: does it work if you prepend `PERL_DL_NONLAZY=1` in the cmdline? – Slaven Rezic Jul 17 '13 at 13:03
  • Thanks for the reply! I made the link in my home dir. Modified the PERL5LIB like this: export PERL5LIB=/home/myhome and gives the same result. – zsidanyi Jul 17 '13 at 13:25
  • @SlavenRezic don't want to work with this either. – zsidanyi Jul 17 '13 at 13:28
  • Maybe I figured it out. If I want to add the libXss.so to the "include" path I have to config add it via ldconfig. As I said I dont have root permission on this computer so I cant manage to add it like this. Maybe I just use Gtk2 package instead using Tkx. However thanks for the ideas and replies :). – zsidanyi Jul 18 '13 at 07:52
  • Or use good old Tk. It's usually easier to install than Tkx, as it's self-contained (no need for an installed libtk and libtcl). – Slaven Rezic Jul 18 '13 at 09:37

0 Answers0