Am trying to install perl module "File::Find", but not able it gave the following cpan[1]> install File::Find CPAN: Storable loaded ok (v2.15) Going to read /root/.cpan/Metadata Database was generated on Thu, 21 Aug 2008 02:03:21 GMT Running install for module 'File::Find' The most recent version "1.12" of the module "File::Find" is part of the perl-5.10.0 distribution. To install that, you need to run force install File::Find --or-- install R/RG/RGARCIA/perl-5.10.0.tar.gz CPAN: Time::HiRes loaded ok (v1.9715) Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: RGARCIA/perl-5.10.0.tar.gz : make NO isa perl cpan[2]> quit Lockfile removed. [root at PowerEdge1 ftpsync-1.2.33]# perl -version This is perl, v5.8.8 built for x86_64-linux-thread-multi Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. -- Your search - madunix - did not match any documents. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080821/266dd45d/attachment-0005.html>
Mad Unix wrote:> Am trying to install perl module "File::Find", but not able it gave the > following > > cpan[1]> install File::Find<snip> I made the mistake of trying to use cpan when I was young. I am now older and wiser and have read things like: http://wiki.centos.org/PackageManagement/SourceInstalls?highlight=(cpan) -- Sincerely, John Thomas
"Mad Unix" <madunix at gmail.com> wrote:> Am trying to install perl module "File::Find", but not able it gave the > following > > cpan[1]> install File::Find > CPAN: Storable loaded ok (v2.15) > Going to read /root/.cpan/Metadata > Database was generated on Thu, 21 Aug 2008 02:03:21 GMT > Running install for module 'File::Find' > The most recent version "1.12" of the module "File::Find" > is part of the perl-5.10.0 distribution. To install that, you need to run > force install File::Find --or-- > install R/RG/RGARCIA/perl-5.10.0.tar.gz > CPAN: Time::HiRes loaded ok (v1.9715) > Running make test > Can't test without successful make > Running make install > Make had returned bad status, install seems impossible > Failed during this command: > RGARCIA/perl-5.10.0.tar.gz : make NO isa perl > > > cpan[2]> quit > Lockfile removed. > [root at PowerEdge1 ftpsync-1.2.33]# perl -version > > This is perl, v5.8.8 built for x86_64-linux-thread-multi > > Copyright 1987-2006, Larry Wall > > Perl may be copied only under the terms of either the Artistic License or > the > GNU General Public License, which may be found in the Perl 5 source kit. > > Complete documentation for Perl, including FAQ lists, should be found on > this system using "man perl" or "perldoc perl". If you have access to the > Internet, point your browser at http://www.perl.org/, the Perl Home Page.That is just cpan's user friendly way of telling you that File:Find is already installed: [dave at bend ~]# rpm -q --whatprovides /usr/lib/perl5/5.8.8/File/Find.pm perl-5.8.8-10.el5_2.3 The command "man File::Find" should succeed and provide you with the man page. Cheers, Dave -- Politics, n. Strife of interests masquerading as a contest of principles. -- Ambrose Bierce
John Thomas wrote:> Mad Unix wrote: > > Am trying to install perl module "File::Find", but not able it gave > > the following > > > > cpan[1]> install File::Find > <snip> > > I made the mistake of trying to use cpan when I was young. I am now > older and wiser and have read things like: > http://wiki.centos.org/PackageManagement/SourceInstalls?highlight=(cpan)I attempted this once while building a new machine. It was amazing how fast I got bogged down in dependencies. Almost none of the modules that I needed were available from the repos and as soon as I packaged up one and tried to install it, I found I needed 3 more for dependencies (which also weren't available). I finally gave up trying to install Perl modules via Yum/rpm. I now use CPAN to install Perl packages and Yum for everything else. I find this works well for me and saves an incredible amount of time. If someone would come up with a way to automate the dependency resolution so that I could grab and package everything at once, then I would do it, but I just don't have time to go through the download, package, install, find dependencies, download, package, install, ... process. Apparently, this is on the wishlist for cpan2rpm, but is not implemented yet. -- Bowie
Karanbir Singh wrote:> Steve Huff wrote: > > > > If someone would come up with a way to automate the dependency > > > > resolution so that I could grab and package everything at once, > > > > then I would do it, > > > dag has a script that does just this. > > can you post a link? i've just been searching dag's site and > > rpmrepo.org for a while, and i can't find any such script. this > > would be very useful to me as well. > > Here we go: > http://svn.rpmforge.net/svn/trunk/tools/dar/dar-perl.py > > I am sure Dag will appreciate feedback and info on the script.It's not in an rpm??? :) Thanks for the link. I don't think I can start using it now since I have everything installed via CPAN at the moment, but I'll keep it in mind for the next installation. -- Bowie
Mad Unix wrote:> Am trying to install ftpsync-1.2.33, prerequisite > [root at PowerEdge1 ftpsync-1.2.33]# cat README | grep :: > - File::Find, IO::Handle > - Net::FTP > - File::Listing > > cpan[2]> install File::Find > Running install for module 'File::Find' > The most recent version "1.12" of the module "File::Find" > is part of the perl-5.10.0 distribution. To install that, you need to > run force install File::Find --or-- > install R/RG/RGARCIA/perl-5.10.0.tar.gzCpan is trying to install the latest File::Find, but since File::Find is part of the base Perl distribution, it can't upgrade it without upgrading your Perl version as well (which is not allowed by default). To determine if you have File::Find already installed (which you should), do this: perl -e 'use File::Find' If that runs without errors, it is already installed and you don't have to worry about it. -- Bowie
Karanbir Singh wrote:> Steve Huff wrote: > > > > If someone would come up with a way to automate the dependency > > > > resolution so that I could grab and package everything at once, > > > > then I would do it, > > > dag has a script that does just this. > > can you post a link? i've just been searching dag's site and > > rpmrepo.org for a while, and i can't find any such script. this > > would be very useful to me as well. > > Here we go: > http://svn.rpmforge.net/svn/trunk/tools/dar/dar-perl.py > > I am sure Dag will appreciate feedback and info on the script.I grabbed the file and tried it out to see what it would do. It dumped what looked like a spec file and then gave an error. $ ./dar-perl.py Compress::Zlib [normal spec information snipped] %files %defattr(-, root, root, 0755) %doc Changes MANIFEST META.yml README examples/ %doc %{_mandir}/man3/Compress::Zlib.3pm* %dir %{perl_vendorlib}/Compress/ #%{perl_vendorlib}/Compress/Zlib/ %{perl_vendorlib}/Compress/Zlib.pm %changelog Traceback (most recent call last): File "./dar-perl.py", line 679, in ? print >>out, '* %s %s - %s-1' % (time.strftime('%a %b %d %Y', time.localtime()), authorities[logname], version) KeyError: 'bowieb' $ Any idea what happened here? What exactly is this program supposed to do? Can someone give me an example of how to use it to install a Perl module and its dependencies? -- Bowie
Karanbir Singh wrote:> Bowie Bailey wrote: > > > http://svn.rpmforge.net/svn/trunk/tools/dar/dar-perl.py > > > > > What exactly is this program supposed to do? Can someone give me an > > example of how to use it to install a Perl module and its > > dependencies? > > There is an rpmforge mailing list for tools, thats the best place for > this conversation.In that case, I will move this conversation over there. Thanks. -- Bowie