Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: successfull Installed module vanished

by BluePerl (Novice)
on Jun 22, 2009 at 22:15 UTC ( #773779=note: print w/ replies, xml ) Need Help??


in reply to Re: successfull Installed module vanished
in thread successfull Installed module vanished

Thanks for your fast reply. The package isn't there:

D:\Perl\Module>perl -e"use Math::GMP" Can't locate Math/GMP.pm in @INC (@INC contains: D:/Perl/lib D:/Perl/s +ite/lib .) at -e line 1. BEGIN failed--compilation aborted at -e line 1.
I can open the package file Math-GMP-2.05.tar.gz with Winrar. While installing I had the problem, to get the ppd-file. For reasons I don't understand, the ppd-File isn't really accessible at the module download site. I had to install around 10 packages. The first method I used to get the ppd-files is to download it from http://theoryx5.uwinnipeg.ca/ppms/Module-Name.ppd. The second, if the ppd file wasn't there, is to take the very big package file package.xml and cut the needed part from that file and save it as ppd. I had to add an additional <Implementation>> - tag for getting this file to work.

My ppd-file for the module above is:
<SOFTPKG NAME="Math-GMP" VERSION="2,04,0,0"> <TITLE>Math-GMP</TITLE> <ABSTRACT>High speed arbitrary size integer math </ABSTRACT> <AUTHOR>Chip Turner</AUTHOR> <IMPLEMENTATION> <OS NAME="MSWin32" /> <ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" /> <CODEBASE HREF="Math-GMP-2.05.tar.gz" /> <PROVIDE NAME="Math::GMP" VERSION="2.04" /> </IMPLEMENTATION> </SOFTPKG>


Comment on Re^2: successfull Installed module vanished
Select or Download Code
Re^3: successfull Installed module vanished
by ikegami (Pope) on Jun 22, 2009 at 22:43 UTC
    I have no problems getting the PPD
    <SOFTPKG NAME="Math-GMP" VERSION="2,04,0,0"> <TITLE>Math-GMP</TITLE> <ABSTRACT>High speed arbitrary size integer math </ABSTRACT> <AUTHOR>Chip Turner</AUTHOR> <IMPLEMENTATION> <OS NAME="MSWin32" /> <ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" /> <CODEBASE HREF="http://theoryx5.uwinnipeg.ca/ppms/x86/Math-GMP.tar.g +z" /> <PROVIDE NAME="Math::GMP" VERSION="2.04" /> </IMPLEMENTATION> </SOFTPKG>

    And I had no problems installing it (ActivePerl 5.8.8).

    >ppm install http://theoryx5.uwinnipeg.ca/ppms/Math-GMP.ppd Downloading Math-GMP-2.04...done Unpacking Math-GMP-2.04...done Generating HTML for Math-GMP-2.04...done Updating files in site area...done 5 files installed >perl -le"use Math::GMP; print Math::GMP->VERSION" 2.04

    I think installation consists of unzipping and generating docs. If you're ok with skipping the latter, just do the former.

      Thanks again for your fast reply!

      It is hard to take your advice and install the files manually. It means to have less comfort while installing and even worse to do some error while installing files.

      However I took your advice and copy the GMP.pm file into the Perl/lib/ Math Directory. After I test the installation, I get an error again. I hop this is the key to the answer:
      D:\Perl\Module>perl -le"use Math::GMP;" Can't locate loadable object for module Math::GMP in @INC (@INC contai +ns: D:\per l\lib D:\perl\site D:/Perl/lib D:/Perl/site/lib .) at -e line 1 Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1.
      Interesting to mention: After copying the file "ppm Query Math" still doesn't find the module.

        Did you try the ppd again? The real ppd and not the made up one.

        I took your advice and copy the GMP.pm file into the Perl/lib/ Math Directory

        I didn't say pick and choose files from the archive. Unzip the whole file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://773779]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2014-09-03 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls