Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2011
    Posts
    38

    How to install Perl LWP, CGI and Fcntl modules

    I have a cPanel server and i wanted to install Perl with LWP, CGI and Fcntl modules.

    I gues CGI is already installed on the server, but is LWP and Fcntl already installed on cPanel server? if not, can someone tell me the ssh commands to install these modules.

    I will appreciate.

    Thanks.

  2. #2
    Join Date
    Mar 2012
    Location
    Los Angeles, CA
    Posts
    18
    All those modules should be installed.

    You can check with these one-liners:

    shell> perl -MLWP -e 1
    or

    shell> perl -e "use LWP"

    A missing module, would return something like:

    shell> perl -e "use Date::EzDate"
    Can't locate Date/EzDate.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at -e line 1.
    BEGIN failed--compilation aborted at -e line 1.

  3. #3
    Join Date
    Mar 2012
    Location
    Los Angeles, CA
    Posts
    18
    Sorry forgot you were asking about how to install:

    If you're shelled into the machine, you can do it two ways:

    shell> sudo cpanm LWP
    or

    shell> perl -MCPAN -e shell

    cpan> force install LWP

    Hope this helps...

  4. #4
    On Centos it would be better to use rpm:

    Code:
    yum install perl-libwww-perl perl-File-FcntlLock.x86_64
    supportex.net: Linux server management services
    setup, optimization, monitoring

Similar Threads

  1. Common Perl Modules, RPMs, Binaries, etc.. to install?
    By LiquidBlueX in forum Hosting Security and Technology
    Replies: 2
    Last Post: 06-20-2005, 05:31 PM
  2. Perl modules (bulk install??)
    By GaryPPC in forum Hosting Software and Control Panels
    Replies: 1
    Last Post: 02-08-2003, 04:23 AM
  3. Host won't install requested perl modules
    By mop in forum Web Hosting
    Replies: 10
    Last Post: 01-16-2003, 12:46 PM
  4. where do u install perl modules
    By stephenn in forum Hosting Security and Technology
    Replies: 5
    Last Post: 09-08-2002, 08:08 AM
  5. perl modules install problem
    By mpkapadia in forum Hosting Security and Technology
    Replies: 7
    Last Post: 07-29-2001, 02:30 AM

Posting Permissions

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