Find the answer to your Linux question:
Results 1 to 3 of 3
Hi everybody, I am trying to install the perl modules like this. # perl -MCPAN -e 'install Text::Template' CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jul 2004
    Posts
    143

    problem with perl cpan


    Hi everybody,
    I am trying to install the perl modules like this.

    # perl -MCPAN -e 'install Text::Template'

    CPAN: Storable loaded ok
    Going to read /root/.cpan/Metadata
    Database was generated on Mon, 16 Apr 2007 07:14:42 GMT
    Running install for module Text::Template
    Running make for M/MJ/MJD/Text-Template-1.44.tar.gz
    CPAN: Digest::MD5 loaded ok
    Checksum for /root/.cpan/sources/authors/id/M/MJ/MJD/Text-Template-1.44.tar.gz ok
    Scanning cache /root/.cpan/build for sizes
    Text-Template-1.44/
    Text-Template-1.44/t/
    Text-Template-1.44/t/13-taint.t
    Text-Template-1.44/t/10-delimiters.t
    Text-Template-1.44/t/04-safe.t
    Text-Template-1.44/t/09-error.t
    Text-Template-1.44/t/00-version.t
    Text-Template-1.44/t/03-out.t
    Text-Template-1.44/t/07-safe3.t
    Text-Template-1.44/t/06-ofh.t
    Text-Template-1.44/t/01-basic.t
    Text-Template-1.44/t/14-broken.t
    Text-Template-1.44/t/08-exported.t
    Text-Template-1.44/t/12-preprocess.t
    Text-Template-1.44/t/05-safe2.t
    Text-Template-1.44/t/11-prepend.t
    Text-Template-1.44/t/02-hash.t
    Text-Template-1.44/COPYING
    Text-Template-1.44/Artistic
    Text-Template-1.44/MANIFEST
    Text-Template-1.44/lib/
    Text-Template-1.44/lib/Text/
    Text-Template-1.44/lib/Text/Template/
    Text-Template-1.44/lib/Text/Template/Preprocess.pm
    Text-Template-1.44/lib/Text/Template.pm
    Text-Template-1.44/INSTALL
    Text-Template-1.44/README
    Text-Template-1.44/Makefile.PL
    Removing previously used /root/.cpan/build/Text-Template-1.44

    CPAN.pm: Going to build M/MJ/MJD/Text-Template-1.44.tar.gz

    Checking if your kit is complete...
    Looks good
    Writing Makefile for Text::Template
    -- NOT OK
    Running make test
    Can't test without successful make
    Running make install
    make had returned bad status, install seems impossible


    Why the module is not getting installed.
    Please suggest me..

    Thanks Inadvance,
    Mummaneni.

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    From what I can tell, primarily from:
    http://www.cpanforum.com/threads/502

    Do you have make installed? You can run the command 'which make' to see. If you do not, you need to install make, and then try again.

    EDIT:

    If you DO have make installed, then run: perl -MCPAN -e shell

    When the shell pops up, enter: o conf make /usr/bin/make

    This may fix it.

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Posts
    98
    I was getting that same type of error. There are two solutions that may solve your problem. The first one is: perl CPAN -e force install Module:Name to force install (not recommended solution). The second is (recommended solution): install it from source. Go to CPAN and there you can find the the zipped source code for your module that you want to install and you can also find the instructions on how to install it.

  4. $spacer_open
    $spacer_close

Posting Permissions

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