Discussion:
Best way to install perl modules
Benjamin Fernandis
2014-10-05 01:32:43 UTC
Permalink
Hi,

Many times I face problem with module installation and then have to go to
google and apply trial and error to resolve this permanently, could u
please suggest me best and correct method to get resolved it?

i mean if i installed centos 7 freshly then what are pre-requisites from OS
side to get perl module installation successfully. What steps require to
follow?

Previously i tried cpanm and cpan console but some times faced installation
faild error.

Is there any specific guideline to resolve this problem? I am using centos
based distro.

Regards
Ben
Mike
2014-10-05 01:51:55 UTC
Permalink
Use cpanminus.

To install:

sudo curl -L http://cpanmin.us | perl - --sudo App::cpanminus

To use: sudo cpanm <module to install>

Here's the official documentation:
http://search.cpan.org/~miyagawa/App-cpanminus-1.7012/lib/App/cpanminus.pm
Post by Benjamin Fernandis
Hi,
Many times I face problem with module installation and then have to go
to google and apply trial and error to resolve this permanently, could
u please suggest me best and correct method to get resolved it?
i mean if i installed centos 7 freshly then what are pre-requisites
from OS side to get perl module installation successfully. What steps
require to follow?
Previously i tried cpanm and cpan console but some times faced
installation faild error.
Is there any specific guideline to resolve this problem? I am using
centos based distro.
Regards
Ben
Benjamin Fernandis
2014-10-05 04:39:46 UTC
Permalink
Hi Mike,

Thanks for your kind response. I tried cpanm instead of cpan, but many
times, it does not install require dependencies for module.

For example, when i was trying to install
cpanm XML::SAX -> it failed and said no Fatal.pm module , then i manually
first installed that module and then i tried to install XML::SAX and it
works.

It happens many times while installing different modules. I mean cpanm does
not automatically fetch require dependencies for module. like yum in centos
to install packages.

Is there any tool or something like yum for perl module installations. Or
Is there , I am missing anything ?

Regards
Ben
Post by Mike
Use cpanminus.
sudo curl -L http://cpanmin.us | perl - --sudo App::cpanminus
To use: sudo cpanm <module to install>
http://search.cpan.org/~miyagawa/App-cpanminus-1.7012/lib/App/cpanminus.pm
Hi,
Many times I face problem with module installation and then have to go
to google and apply trial and error to resolve this permanently, could u
please suggest me best and correct method to get resolved it?
i mean if i installed centos 7 freshly then what are pre-requisites from
OS side to get perl module installation successfully. What steps require to
follow?
Previously i tried cpanm and cpan console but some times faced
installation faild error.
Is there any specific guideline to resolve this problem? I am using
centos based distro.
Regards
Ben
Sam
2014-10-05 05:02:12 UTC
Permalink
You probably need to give us more info as both cpan and cpanm will auto
resolve and install needed dependencies.

The dependency installs could be failing because a compiler or something
similar is missing.

If you are on a redhat based system, trying running:
yum groupinstall "Development Tools"

If you are on a debian based system try running:
aptitude install build-essential


--Sam
Post by Benjamin Fernandis
Hi Mike,
Thanks for your kind response. I tried cpanm instead of cpan, but many
times, it does not install require dependencies for module.
For example, when i was trying to install
cpanm XML::SAX -> it failed and said no Fatal.pm module , then i
manually first installed that module and then i tried to install
XML::SAX and it works.
It happens many times while installing different modules. I mean cpanm
does not automatically fetch require dependencies for module. like yum
in centos to install packages.
Is there any tool or something like yum for perl module installations.
Or Is there , I am missing anything ?
Regards
Ben
Use cpanminus.
sudo curl -L http://cpanmin.us | perl - --sudo App::cpanminus
To use: sudo cpanm <module to install>
http://search.cpan.org/~miyagawa/App-cpanminus-1.7012/lib/App/cpanminus.pm
Post by Benjamin Fernandis
Hi,
Many times I face problem with module installation and then have
to go to google and apply trial and error to resolve this
permanently, could u please suggest me best and correct method to
get resolved it?
i mean if i installed centos 7 freshly then what are
pre-requisites from OS side to get perl module installation
successfully. What steps require to follow?
Previously i tried cpanm and cpan console but some times faced
installation faild error.
Is there any specific guideline to resolve this problem? I am
using centos based distro.
Regards
Ben
--
To unsubscribe, e-mail: beginners-***@perl.org
For additional commands, e-mail: beginners-***@perl.org
http://learn.perl.org/
Benjamin Fernandis
2014-10-05 05:17:08 UTC
Permalink
Hi, Sam,

Thanks, After installing development tools group, it works.

Regards
Ben
Post by Sam
You probably need to give us more info as both cpan and cpanm will auto
resolve and install needed dependencies.
The dependency installs could be failing because a compiler or something
similar is missing.
yum groupinstall "Development Tools"
aptitude install build-essential
--Sam
Post by Benjamin Fernandis
Hi Mike,
Thanks for your kind response. I tried cpanm instead of cpan, but many
times, it does not install require dependencies for module.
For example, when i was trying to install
cpanm XML::SAX -> it failed and said no Fatal.pm module , then i
manually first installed that module and then i tried to install
XML::SAX and it works.
It happens many times while installing different modules. I mean cpanm
does not automatically fetch require dependencies for module. like yum
in centos to install packages.
Is there any tool or something like yum for perl module installations.
Or Is there , I am missing anything ?
Regards
Ben
Use cpanminus.
sudo curl -L http://cpanmin.us | perl - --sudo App::cpanminus
To use: sudo cpanm <module to install>
http://search.cpan.org/~miyagawa/App-cpanminus-1.7012/
lib/App/cpanminus.pm
Post by Benjamin Fernandis
Hi,
Many times I face problem with module installation and then have
to go to google and apply trial and error to resolve this
permanently, could u please suggest me best and correct method to
get resolved it?
i mean if i installed centos 7 freshly then what are
pre-requisites from OS side to get perl module installation
successfully. What steps require to follow?
Previously i tried cpanm and cpan console but some times faced
installation faild error.
Is there any specific guideline to resolve this problem? I am
using centos based distro.
Regards
Ben
--
http://learn.perl.org/
Benjamin Fernandis
2014-10-07 01:58:05 UTC
Permalink
Hi,

Today I face same previous problem to install package with cpanm.

This time i have already installed Development Tools as suggested by Sam.


For testing it more, i was trying to install dancer by cpanm. First trial,
i got failed and then looked into build log and found some dependent
modules are not there so then i tried to first install them and those also
have some more dependencies and then i have to resolve first from those and
then step by step do install manually and lastly dancer installation works
for me.

Below is my manually package installation.

Please suggest me to resolve this installation problem. Also suggest me if
I am missing anything at OS level.

OS : cenots 7

Regards
Ben

cpanm Dancer
334
335 vim /root/.cpanm/work/1412646550.26687/build.log
336
337 cpanm HTTP::Server::Simple
338 vim /root/.cpanm/work/1412646612.26849/build.log
339 cpanm Test::Pod
340 cpanm HTTP::Server::Simple
341 vim /root/.cpanm/work/1412646658.27040/build.log
342 cpanm Test::Pod::Coverage
343 cpanm HTTP::Server::Simple
344 vim /root/.cpanm/work/1412646703.27571/build.log
345 cpanm HTTP::Server
346 cpanm Env
347 cpanm HTTP::Server::Simple
348 cpanm Dancer
349 instmodsh
350 history
Post by Benjamin Fernandis
Hi, Sam,
Thanks, After installing development tools group, it works.
Regards
Ben
Post by Sam
You probably need to give us more info as both cpan and cpanm will auto
resolve and install needed dependencies.
The dependency installs could be failing because a compiler or something
similar is missing.
yum groupinstall "Development Tools"
aptitude install build-essential
--Sam
Post by Benjamin Fernandis
Hi Mike,
Thanks for your kind response. I tried cpanm instead of cpan, but many
times, it does not install require dependencies for module.
For example, when i was trying to install
cpanm XML::SAX -> it failed and said no Fatal.pm module , then i
manually first installed that module and then i tried to install
XML::SAX and it works.
It happens many times while installing different modules. I mean cpanm
does not automatically fetch require dependencies for module. like yum
in centos to install packages.
Is there any tool or something like yum for perl module installations.
Or Is there , I am missing anything ?
Regards
Ben
Use cpanminus.
sudo curl -L http://cpanmin.us | perl - --sudo App::cpanminus
To use: sudo cpanm <module to install>
http://search.cpan.org/~miyagawa/App-cpanminus-1.7012/
lib/App/cpanminus.pm
Post by Benjamin Fernandis
Hi,
Many times I face problem with module installation and then have
to go to google and apply trial and error to resolve this
permanently, could u please suggest me best and correct method to
get resolved it?
i mean if i installed centos 7 freshly then what are
pre-requisites from OS side to get perl module installation
successfully. What steps require to follow?
Previously i tried cpanm and cpan console but some times faced
installation faild error.
Is there any specific guideline to resolve this problem? I am
using centos based distro.
Regards
Ben
--
http://learn.perl.org/
Mike
2014-10-07 01:59:51 UTC
Permalink
Please provide us with any errors from the installation log you've
received when using cpanm.
Post by Benjamin Fernandis
Hi,
Today I face same previous problem to install package with cpanm.
This time i have already installed Development Tools as suggested by Sam.
For testing it more, i was trying to install dancer by cpanm. First
trial, i got failed and then looked into build log and found some
dependent modules are not there so then i tried to first install them
and those also have some more dependencies and then i have to resolve
first from those and then step by step do install manually and lastly
dancer installation works for me.
Below is my manually package installation.
Please suggest me to resolve this installation problem. Also suggest
me if I am missing anything at OS level.
OS : cenots 7
Regards
Ben
cpanm Dancer
334
335 vim /root/.cpanm/work/1412646550.26687/build.log
336
337 cpanm HTTP::Server::Simple
338 vim /root/.cpanm/work/1412646612.26849/build.log
339 cpanm Test::Pod
340 cpanm HTTP::Server::Simple
341 vim /root/.cpanm/work/1412646658.27040/build.log
342 cpanm Test::Pod::Coverage
343 cpanm HTTP::Server::Simple
344 vim /root/.cpanm/work/1412646703.27571/build.log
345 cpanm HTTP::Server
346 cpanm Env
347 cpanm HTTP::Server::Simple
348 cpanm Dancer
349 instmodsh
350 history
On Sun, Oct 5, 2014 at 6:17 PM, Benjamin Fernandis
Hi, Sam,
Thanks, After installing development tools group, it works.
Regards
Ben
You probably need to give us more info as both cpan and cpanm
will auto resolve and install needed dependencies.
The dependency installs could be failing because a compiler or
something similar is missing.
yum groupinstall "Development Tools"
aptitude install build-essential
--Sam
Hi Mike,
Thanks for your kind response. I tried cpanm instead of
cpan, but many
times, it does not install require dependencies for module.
For example, when i was trying to install
cpanm XML::SAX -> it failed and said no Fatal.pm module , then i
manually first installed that module and then i tried to install
XML::SAX and it works.
It happens many times while installing different modules.
I mean cpanm
does not automatically fetch require dependencies for
module. like yum
in centos to install packages.
Is there any tool or something like yum for perl module
installations.
Or Is there , I am missing anything ?
Regards
Ben
On Sun, Oct 5, 2014 at 2:51 PM, Mike
Use cpanminus.
sudo curl -L http://cpanmin.us | perl - --sudo
App::cpanminus
To use: sudo cpanm <module to install>
http://search.cpan.org/~miyagawa/App-cpanminus-1.7012/lib/App/cpanminus.pm
<http://search.cpan.org/%7Emiyagawa/App-cpanminus-1.7012/lib/App/cpanminus.pm>
Hi,
Many times I face problem with module installation
and then have
to go to google and apply trial and error to
resolve this
permanently, could u please suggest me best and
correct method to
get resolved it?
i mean if i installed centos 7 freshly then what are
pre-requisites from OS side to get perl module
installation
successfully. What steps require to follow?
Previously i tried cpanm and cpan console but some
times faced
installation faild error.
Is there any specific guideline to resolve this
problem? I am
using centos based distro.
Regards
Ben
--
http://learn.perl.org/
Benjamin Fernandis
2014-10-07 03:07:18 UTC
Permalink
+ Attaching log file.
Post by Mike
Please provide us with any errors from the installation log you've
received when using cpanm.
Hi,
Today I face same previous problem to install package with cpanm.
This time i have already installed Development Tools as suggested by Sam.
For testing it more, i was trying to install dancer by cpanm. First
trial, i got failed and then looked into build log and found some dependent
modules are not there so then i tried to first install them and those also
have some more dependencies and then i have to resolve first from those and
then step by step do install manually and lastly dancer installation works
for me.
Below is my manually package installation.
Please suggest me to resolve this installation problem. Also suggest me
if I am missing anything at OS level.
OS : cenots 7
Regards
Ben
cpanm Dancer
334
335 vim /root/.cpanm/work/1412646550.26687/build.log
336
337 cpanm HTTP::Server::Simple
338 vim /root/.cpanm/work/1412646612.26849/build.log
339 cpanm Test::Pod
340 cpanm HTTP::Server::Simple
341 vim /root/.cpanm/work/1412646658.27040/build.log
342 cpanm Test::Pod::Coverage
343 cpanm HTTP::Server::Simple
344 vim /root/.cpanm/work/1412646703.27571/build.log
345 cpanm HTTP::Server
346 cpanm Env
347 cpanm HTTP::Server::Simple
348 cpanm Dancer
349 instmodsh
350 history
Post by Benjamin Fernandis
Hi, Sam,
Thanks, After installing development tools group, it works.
Regards
Ben
Post by Sam
You probably need to give us more info as both cpan and cpanm will auto
resolve and install needed dependencies.
The dependency installs could be failing because a compiler or something
similar is missing.
yum groupinstall "Development Tools"
aptitude install build-essential
--Sam
Post by Benjamin Fernandis
Hi Mike,
Thanks for your kind response. I tried cpanm instead of cpan, but many
times, it does not install require dependencies for module.
For example, when i was trying to install
cpanm XML::SAX -> it failed and said no Fatal.pm module , then i
manually first installed that module and then i tried to install
XML::SAX and it works.
It happens many times while installing different modules. I mean cpanm
does not automatically fetch require dependencies for module. like yum
in centos to install packages.
Is there any tool or something like yum for perl module installations.
Or Is there , I am missing anything ?
Regards
Ben
Use cpanminus.
sudo curl -L http://cpanmin.us | perl - --sudo App::cpanminus
To use: sudo cpanm <module to install>
http://search.cpan.org/~miyagawa/App-cpanminus-1.7012/lib/App/cpanminus.pm
Post by Benjamin Fernandis
Hi,
Many times I face problem with module installation and then have
to go to google and apply trial and error to resolve this
permanently, could u please suggest me best and correct method to
get resolved it?
i mean if i installed centos 7 freshly then what are
pre-requisites from OS side to get perl module installation
successfully. What steps require to follow?
Previously i tried cpanm and cpan console but some times faced
installation faild error.
Is there any specific guideline to resolve this problem? I am
using centos based distro.
Regards
Ben
--
http://learn.perl.org/
Kent Fredric
2014-10-07 03:19:49 UTC
Permalink
Post by Benjamin Fernandis
+ Attaching log file.
Lacking Env.pm basically means your vendor's Perl is broken. Env.pm is
shipped with Perl itself, and subsequently things may forget to depend on
it ( at least, in a way that cpan tools recognise ) and be silently broken
as a consequence.

It *might* be worth filing a bug with the respective packages saying "hey,
you need Env.pm, but dont depend on it"

But the thing that will make life easiest for you is working out why you
don't have things installed that are EXPECTED to be installed as part of a
standard perl installation.

But the general problem is, sometimes people in Perl have external
dependencies and forget to declare them as such.

When they do that, things break.

When things break like that, if you're sure the problem is them failing to
declare the dependency, then you file a bug requesting they declare the
dependency.

Once the dependency is declared, CPAN, CPANPLUS and cpanm will detect and
respond to it.
--
Kent

*KENTNL* - https://metacpan.org/author/KENTNL
Shlomi Fish
2014-10-09 08:12:43 UTC
Permalink
Hi Benjamin,

On Sun, 5 Oct 2014 17:39:46 +1300
Post by Benjamin Fernandis
Hi Mike,
Thanks for your kind response. I tried cpanm instead of cpan, but many
times, it does not install require dependencies for module.
For example, when i was trying to install
cpanm XML::SAX -> it failed and said no Fatal.pm module , then i manually
first installed that module and then i tried to install XML::SAX and it
works.
It happens many times while installing different modules. I mean cpanm does
not automatically fetch require dependencies for module. like yum in centos
to install packages.
Is there any tool or something like yum for perl module installations. Or
Is there , I am missing anything ?
The equivalents of yum in the Perl-world are cpan/CPAN.pm and
cpanp/CPANPLUS.pm . Also see what I wrote about it here:

* http://perl-begin.org/topics/cpan/

* http://perl-begin.org/topics/cpan/wrappers-for-distributions/

Note that the CentOS/RHEL/Fedora perl is suffering from several issues and the
general wisdom is that you should install your own perl under a prefix using
perlbrew - http://perlbrew.pl/ .

Regards,

Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Apple Inc. is Evil - http://www.shlomifish.org/open-source/anti/apple/

You can never truly appreciate The Gilmore Girls until you’ve watched it in
the original Klingon.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--
To unsubscribe, e-mail: beginners-***@perl.org
For additional commands, e-mail: beginners-***@perl.org
http://learn.perl.org/
Benjamin Fernandis
2014-10-09 09:11:41 UTC
Permalink
Hi Shlomi,

Thanks. I also feel that centos/rhel perl seems brokern in terms of
dependencies issues and some others.

Regards
Post by Shlomi Fish
Hi Benjamin,
On Sun, 5 Oct 2014 17:39:46 +1300
Post by Benjamin Fernandis
Hi Mike,
Thanks for your kind response. I tried cpanm instead of cpan, but many
times, it does not install require dependencies for module.
For example, when i was trying to install
cpanm XML::SAX -> it failed and said no Fatal.pm module , then i
manually
Post by Benjamin Fernandis
first installed that module and then i tried to install XML::SAX and it
works.
It happens many times while installing different modules. I mean cpanm
does
Post by Benjamin Fernandis
not automatically fetch require dependencies for module. like yum in
centos
Post by Benjamin Fernandis
to install packages.
Is there any tool or something like yum for perl module installations. Or
Is there , I am missing anything ?
The equivalents of yum in the Perl-world are cpan/CPAN.pm and
* http://perl-begin.org/topics/cpan/
* http://perl-begin.org/topics/cpan/wrappers-for-distributions/
Note that the CentOS/RHEL/Fedora perl is suffering from several issues and the
general wisdom is that you should install your own perl under a prefix using
perlbrew - http://perlbrew.pl/ .
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Apple Inc. is Evil - http://www.shlomifish.org/open-source/anti/apple/
You can never truly appreciate The Gilmore Girls until you’ve watched it in
the original Klingon.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Sam
2014-10-09 12:36:58 UTC
Permalink
Take note at least on rehl, you have to run 'yum install perl perl-core'
to get a full working perl (If I remember right).

--Sam
Post by Benjamin Fernandis
Hi Shlomi,
Thanks. I also feel that centos/rhel perl seems brokern in terms of
dependencies issues and some others.
Regards
Hi Benjamin,
On Sun, 5 Oct 2014 17:39:46 +1300
Post by Benjamin Fernandis
Hi Mike,
Thanks for your kind response. I tried cpanm instead of cpan, but many
times, it does not install require dependencies for module.
For example, when i was trying to install
cpanm XML::SAX -> it failed and said no Fatal.pm module , then i manually
first installed that module and then i tried to install XML::SAX and it
works.
It happens many times while installing different modules. I mean cpanm does
not automatically fetch require dependencies for module. like yum in centos
to install packages.
Is there any tool or something like yum for perl module installations. Or
Is there , I am missing anything ?
The equivalents of yum in the Perl-world are cpan/CPAN.pm and
* http://perl-begin.org/topics/cpan/
* http://perl-begin.org/topics/cpan/wrappers-for-distributions/
Note that the CentOS/RHEL/Fedora perl is suffering from several issues and the
general wisdom is that you should install your own perl under a prefix using
perlbrew - http://perlbrew.pl/ .
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Apple Inc. is Evil - http://www.shlomifish.org/open-source/anti/apple/
You can never truly appreciate The Gilmore Girls until you’ve watched it in
the original Klingon.
Please reply to list if it's a mailing list post -
http://shlom.in/reply .
--
To unsubscribe, e-mail: beginners-***@perl.org
For additional commands, e-mail: beginners-***@perl.org
http://learn.perl.org/
Shlomi Fish
2014-10-09 13:12:46 UTC
Permalink
Hi Benjamin,

On Thu, 9 Oct 2014 22:11:41 +1300
Post by Benjamin Fernandis
Hi Shlomi,
Thanks. I also feel that centos/rhel perl seems brokern in terms of
dependencies issues and some others.
You're welcome.

Regards,

Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
http://www.shlomifish.org/humour/bits/Google-Discontinues-Services/

<Botje> Khisanth =~ s/must sleep/must give Botje all my money/ .
— Freenode’s #perl

Please reply to list if it's a mailing list post - http://shlom.in/reply .
--
To unsubscribe, e-mail: beginners-***@perl.org
For additional commands, e-mail: beginners-***@perl.org
http://learn.perl.org/
Continue reading on narkive:
Loading...