Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

successfull Installed module vanished

by BluePerl (Acolyte)
on Jun 22, 2009 at 20:16 UTC ( #773753=perlquestion: print w/replies, xml ) Need Help??
BluePerl has asked for the wisdom of the Perl Monks concerning the following question:


I installed a perl module behind a firewall with ppm using a ppd - file:
D:\Perl\Module>ppm install D:\Perl\Module\Math-GMP.ppd ==================== Install 'Math-GMP' version 2.04 in ActivePerl ==================== Successfully installed Math-GMP version 2.04 in ActivePerl
this works pretty fine, but the module isn't installed; if I check with properties:
D:\Perl\Module>ppm properties Math-GMP Error: package 'Math-GMP' is not installed.
How can I install the module or getting more usable log information?
My perl Version is 5.8.4 in X86, 32 Bit, as seen above.

Replies are listed 'Best First'.
Re: successfull Installed module vanished
by ikegami (Pope) on Jun 22, 2009 at 20:19 UTC

    If I wanted to check if the module is installed, I'd do

    perl -e"use Math::GMP"

    Does Perl truly not see it, or is ppm messed up?

      Thanks for your fast reply. The package isn't there:
      D:\Perl\Module>perl -e"use Math::GMP" Can't locate Math/ 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 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>
        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=" +z" /> <PROVIDE NAME="Math::GMP" VERSION="2.04" /> </IMPLEMENTATION> </SOFTPKG>

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

        >ppm install 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.

      ...or, to save (a little) typing, perl -MMath::GMP<CR> - if the library isn't present, perl complains as indeed it does with ikegamis example.

      A user level that continues to overstate my experience :-))

        And if it is, it leaves you hanging. So really, the options are

        perl -MMath::GMP -e1 perl "use Math::GMP (cmd) perl 'use Math::GMP' (sh)

        Mine's actually shorter by one (cmd) or the same length (sh). Actually, I tend to use the following so it tells me what version is installed if it is:

        perl "use Math::GMP 99

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://773753]
Approved by ikegami
[1nickt]: Config works properly, thank you. I has first followed an example from the doc using eval. THis is much nicer.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-10-18 15:41 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (249 votes). Check out past polls.