Hi, Sam, Thanks, After installing development tools group, it works.
Regards Ben On Sun, Oct 5, 2014 at 6:02 PM, Sam <p...@net153.net> wrote: > 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 > > > On 10/04/2014 11:39 PM, Benjamin Fernandis wrote: > >> 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 <ekimduna...@gmail.com >> <mailto:ekimduna...@gmail.com>> wrote: >> >> 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 >> >> >> On 10/4/14, 8:32 PM, Benjamin Fernandis wrote: >> >>> 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-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >