Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Can't locate loadable object for module IO::Tty

by Perlbotics (Archbishop)
on Jul 16, 2013 at 20:30 UTC ( [id://1044652]=note: print w/replies, xml ) Need Help??


in reply to Can't locate loadable object for module IO::Tty

I would probably check...

  • if the files presented under INST_FILE above do really exist
  • if there are different versions of perl installed (PATH?)
  • if the value of PERL5LIB is suspicious
  • check permissions again:
root> find /usr/lib/perl5 -perm 0700 -type d -ls root> find /usr/lib/perl5 -perm 0600 -type f -ls root> find /usr/lib64/perl5 -perm 0700 -type d -ls root> find /usr/lib64/perl5 -perm 0600 -type f -ls
HTH

Update: The find-checks above are intended to detect typical access permissions problems. They only show files or directories in case the permissions are not set correctly. Ideally, files have permission 0644 or 0444 and directories and libraries (*.so, etc.) 0755 or 0555. There was a copy/paste error in the previous version of the code above, but now it is fixed without markup (lib and lib64 were swapped one time).

Often, when installing modules under Solaris (don't know what you have, but I observed it there regularly), permissions get set too restrictively - the find rules above can be helpful there. Other permissions like 0440 might also cause failures but personally, I didn't encountered them in the wild, yet. If you can install your own Perl, do it as a non-root user (e.g. perl5). That fixed the situation (here - YMMV) and feels a little saver when installing stuff.

Concerning PERL5LIB, if it is not set, you usually do not need to bother. Since you installed the modules in standard locations, there is no need to set this environment variable in order to fix the problem described.

You can fix the permissions of perllocal.pod but it will not fix your original problem. It would just allow anybody to read the local installation history by means of perldoc perllocal - which is not a bad thing either.

If it is not a permission problem, re-installation - as suggested by runrig - might be the easiest way to fix it.

Replies are listed 'Best First'.
Re^2: Can't locate loadable object for module IO::Tty
by rider754 (Novice) on Jul 16, 2013 at 20:52 UTC
    Thanks Perlbotics.
    • Yes - the INST_FILEs really do exist with permissions 755 :)
    • There are... but I'm referencing the right version (I am defaulted to 5.8.8)
    • There is no PERL5LIB environment variable specified... should one always be specified?
    • It turned up another file where the permission was restricted for non-root user -- /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod -- should this be corrected as well?
      And, did you mean to swap the permissions around? Looks like it's the same two find commands repeated twice(?) I can see these commands being very helpful, so thanks again :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1044652]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found