only want to install one module and the depended ones, but CPAN always install the whole Perl.
only want to install one module and the depended ones, but CPAN always install the whole Perl.
am 14.09.2007 23:23:45 von bill_j_chen
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.
Re: only want to install one module and the depended ones, but CPAN always install the whole Perl.
am 15.09.2007 01:50:34 von Petr Vileta
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.)
Re: only want to install one module and the depended ones, but CPAN always install the whole Perl.
am 18.09.2007 17:27:39 von bill_j_chen
On Sep 14, 6:50 pm, "Petr Vileta" wrote:
> 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
Re: only want to install one module and the depended ones, but CPANalways install the whole Perl.
am 18.09.2007 18:50:59 von paduille.4061.mumia.w+nospam
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 "?"
Re: only want to install one module and the depended ones, but CPAN always install the whole Perl.
am 19.09.2007 00:11:18 von Sherm Pendley
"bill_j_chen@yahoo.com" writes:
> 1) does CPAN always tries to install the latest Perl (whole package)?
That was a bug in an older version of CPAN.pm. The solution is to install
the latest CPAN.pm the old-fashioned way, by downloading the tarball and
running "perl Makefile.PL; make; make test; sudo make install".
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Re: only want to install one module and the depended ones, but CPAN always install the whole Perl.
am 19.09.2007 01:11:50 von Petr Vileta
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.)