Click here to get back home

only want to install one module and the depended ones, but CPAN always install the whole Perl.

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
only want to install one module and the depended ones, but CPAN always install the whole Perl. bill_j_chen@yahoo.com 09-14-2007
Get Chitika Premium
Posted by bill_j_chen@yahoo.com on September 14, 2007, 5:23 pm
Please log in for more thread options


Hi, there,

In the system (solaris) the Perl is shipped with the OS. Even though
it is a littlbe bit old but still good enough.

I am trying to install one Module

MIME::Entity

using the following command:

perl -MCPAN -e 'install MIME::Entity'

The MIME::Entity depends on a couple of other modules (totally 5
modules) which are not included in the existing perl. That is ther
main reason that I use CPAN instead of the manual installation.

But I found CPAN is always installed the latest perl and compile the
whole thing.

Here come my questions:

1) does CPAN always tries to install the latest Perl (whole package)?
or it is just some latest modules I want to install require the last
Perl?
2) is there anyway for us to specify the version of the module(s) we
want to install, then CPAN will not go through the whole thing? I just
want to install modules, not the whole Perl.

Thanks.


Posted by Petr Vileta on September 14, 2007, 7:50 pm
Please log in for more thread options


bill_j_chen@yahoo.com wrote:
> Hi, there,
>
> In the system (solaris) the Perl is shipped with the OS. Even though
> it is a littlbe bit old but still good enough.
>
> I am trying to install one Module
>
> MIME::Entity
>
> using the following command:
>
> perl -MCPAN -e 'install MIME::Entity'
>
Try
perl -MCPAN -e shell
and now
search MIME
CPAN module in interactive mode will show you all MIME modules and you can
install selected by command
install 3
where 3 is number of module in showed list.
I'm using RedHat 7.3 (very obsolete version of Linux) and I have no problems
to install single module only to my Perl 5.6.
In CPAN module shell you can use the command "help" too ;-)
--

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)



Posted by bill_j_chen@yahoo.com on September 18, 2007, 11:27 am
Please log in for more thread options


> bill_j_c...@yahoo.com wrote:
> > Hi, there,
>
> > In the system (solaris) the Perl is shipped with the OS. Even though
> > it is a littlbe bit old but still good enough.
>
> > I am trying to install one Module
>
> > MIME::Entity
>
> > using the following command:
>
> > perl -MCPAN -e 'install MIME::Entity'
>
> Try
> perl -MCPAN -e shell
> and now
> search MIME
> CPAN module in interactive mode will show you all MIME modules and you can
> install selected by command
> install 3
> where 3 is number of module in showed list.
> I'm using RedHat 7.3 (very obsolete version of Linux) and I have no problems
> to install single module only to my Perl 5.6.
> In CPAN module shell you can use the command "help" too ;-)
> --
>
> Petr Vileta, Czech republic
> (My server rejects all messages from Yahoo and Hotmail. Send me your mail
> from another non-spammer site please.)


Thanks for the reply.

somehow in perl -MCPAN -e shell
search command is not available. Do I need to install some other
module first to enable the search functionality ?

Thx


Posted by Mumia W. on September 18, 2007, 12:50 pm
Please log in for more thread options


On 09/18/2007 10:27 AM, bill_j_chen@yahoo.com wrote:
> [...]
> somehow in perl -MCPAN -e shell
> search command is not available. Do I need to install some other
> module first to enable the search functionality ?
>
> Thx
>

Read the CPAN manual first: man CPAN

Then search this way: m /MIME/

Inside the CPAN shell, you can get help by entering "?"

Posted by Petr Vileta on September 18, 2007, 7:11 pm
Please log in for more thread options


bill_j_chen@yahoo.com wrote:
>> Try
>> perl -MCPAN -e shell
>> and now
>> search MIME
>
> somehow in perl -MCPAN -e shell
> search command is not available. Do I need to install some other
> module first to enable the search functionality ?
>
Sorry I mistake CPAN module with ppm.bat from ActiveState Perl. But in CPAN
you can use
force install module_name
and before you run your script check if it is error free by command
perl -c your_script.pl

--

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)




Similar ThreadsPosted
Remote install of Perl Module April 12, 2005, 10:47 am
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails May 10, 2005, 9:51 pm
Use CPAN or CPAN::Shell for LOCAL ONLY install from tarballs? May 9, 2008, 1:04 pm
unix perl module install errors November 11, 2004, 3:36 pm
Failing to install IPTables::IPv4 perl module June 30, 2005, 11:10 am
install whole CPAN ? April 19, 2006, 10:39 am
CPAN install issues February 21, 2007, 6:48 pm
XML::Parser CPAN install error with Expat.o October 1, 2004, 4:36 pm
XML::Parser CPAN install error with Expat.o October 1, 2004, 4:36 pm
install Bundle::CPAN in Cygwin failed October 17, 2004, 9:09 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap