Results 1 to 4 of 4

Thread: Perl module problem

  1. #1
    Advisor Outlaw's Avatar
    Join Date
    May 2001
    Location
    Clifton Park, NY
    Posts
    630

    Perl module problem

    Greets,
    I'm trying to use clusterssh which uses two perl modules. I compiled and installed the two modules and did as the clusterssh readme suggested:

    Code:
    For each of these modules, run the following command.  If it fails, download
    and install the module from http://search.cpan.org/
            Tk, Config::Simple
    
            $ perl -M<module> -e "print"
    i.e.
            $ perl -MTk -e "print"
    This does not work as a regular user. Each of those verifications works for root. The program launches if i run as root, but of course I use no direct root ssh access.

    Code:
    $ perl -MTk -e "print"
    Can't locate Tk/Event.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Tk.pm line 13.
    BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Tk.pm line 13.
    Compilation failed in require.
    BEGIN failed--compilation aborted.
    Code:
    # perl -MTk -e "print"
    #
    This looks like an environment or permission problem, but not sure where to begin. Modules were installed using

    Code:
    unpack to /tmp
    cd into module dir
    
    perl Makefile.PL
    make
    make test
    make install
    Any help would be most appreciated



  2. #2
    Mentor Stuart's Avatar
    Join Date
    May 2002
    Location
    nb.ca
    Posts
    1,087

    Re:Perl module problem

    You could (as the user) use perl -MCPAN -e 'install Module::Name::Here'

    That's not exactly elegant..

    If nobody here posts something better, I'd check the perl beginners mailing list.

  3. #3

    Re:Perl module problem

    Check for the modules in /usr/lib/perl or /usr/lib/perl5. Make sure the permissions all look good.

  4. #4
    Advisor Outlaw's Avatar
    Join Date
    May 2001
    Location
    Clifton Park, NY
    Posts
    630

    Re:Perl module problem

    [quote author=Tyr_7BE link=board=2;threadid=10412;start=0#msg93845 date=1115173854]
    Check for the modules in /usr/lib/perl or /usr/lib/perl5. Make sure the permissions all look good.
    [/quote]

    Gaah! Good 1

    The directories were installed according to root's strict umask. So a simple
    Code:
    find . -type d -exec chmod 755 {} \;
    in the /usr/lib/perl5/site_perl/5.8.0 directory fixed it.

    Thanks for the responses both!

    karma++ x2

Similar Threads

  1. Problem starting multiple X Servers
    By rh_bomani in forum Linux - General Topics
    Replies: 7
    Last Post: 08-07-2006, 08:34 PM
  2. Cannot start X again ....
    By DjiT in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 02-23-2005, 11:51 PM
  3. Resulution problem in KDE
    By Buller in forum Linux - General Topics
    Replies: 3
    Last Post: 08-13-2004, 05:25 PM
  4. Gentoo XF86Config
    By mojo jojo in forum Linux - Software, Applications & Programming
    Replies: 9
    Last Post: 02-06-2004, 07:26 PM
  5. fd0 not a block device
    By Pantheus in forum Linux - General Topics
    Replies: 25
    Last Post: 10-08-2002, 10:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •