Gorby has asked for the wisdom of the Perl Monks concerning the following question:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Installing Modules in Windows
by DaveH (Monk) on Jul 20, 2004 at 06:52 UTC | |
Hi. This is a fantastic module, and it is very useful once you manage to get it to work! The only drawback (if you can call it that -- code reuse being a "Good Thing" after all) is that it has about 15 dependant modules which you must install before you get the privilege of actually using it. You don't *need* all of them, but I didn't want to risk not having a feature I might need, and then having to go through the installation headache again. ;-) Currently, these module dependencies are: MIME::Base64 Data::Buffer Math::Pari Compress::Zlib Crypt::DES_EDE3 (for 3DES) Crypt::IDEA (for IDEA) Crypt::Blowfish (for Blowfish) Crypt::Twofish (for Twofish) Crypt::Rijndael (for Rijndael) Crypt::CAST5_PP (for CAST5) Digest::MD5 (for MD5) Digest::SHA1 (for SHA-1) Crypt::RIPEMD160 (for RIPE-MD/160) Crypt::RSA (for RSA encryption/decryption and signatures) Crypt::DSA (for DSA signatures) Normally, this would not be an issue, however it does mostly rely on crypto modules which aren't in the ActiveState ppm3 repository due to Canadian export restrictions on crypto software. More info here: http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/Repository Many of the required modules can be found in Randy Kobes' PPM repository at http://theoryx5.uwinnipeg.ca/ppms. Unfortunately, to get FULL support for all the features of this module, there is currently no alternative but to "Build It Yourself". I already have built some of the modules myself, but I don't really want to make my versions available, since they work for me on a specific version of Perl, but wouldn't necessarily work for anyone else. They weren't built using VC6, so they are very likely to simply crash Perl or just fail to load. YMMV. To build them yourself, and if you don't have access to a Visual C compiler (which I'm assuming you don't, since why would you be looking for ppms otherwise), you need to do a few things. [Note: this approach worked for me to build the few missing modules I needed for Crypt::OpenPGP. I have found that this method works best when you are using pure XS (i.e. with all the C code distributed with the module), it is unlikely to work at all if the module relies on a shared or static library (.dll).]
After all this, you should be done! :-) Perhaps some kind soul with Visual C++ 6 (the same version as Perl is built with) would take pity, and build ppm version of the missing modules? Perl folk are a generous lot, so you never know... Of course, after all this effort, you may like to ask yourself: why not just shell out to gpg.exe? ;-) I'll leave the answer to that to you... I hope that this helps. Cheers, -- Dave :-) $q=[split+qr,,,q,~swmi,.$,],+s.$.Em~w^,,.,s,.,$&&$$q[pos],eg,print | [reply] [d/l] |
|
Re: Installing Modules in Windows
by tachyon (Chancellor) on Jul 20, 2004 at 04:45 UTC | |
cheers tachyon | [reply] [d/l] |
|
Re: Installing Modules in Windows
by BrowserUk (Patriarch) on Jul 20, 2004 at 05:39 UTC | |
Many CPAN modules that aren't available via PPM from the Active State repository, are available from other PPM repositories. You can use google to try and locate individuals and then install using explicit instructions as tachyon showed. You can also add the names of one or more extra repositories to PPM so that a PPM search module::name will search at all the repositories to tell it about. One problem is that the instructions for adding extra repositories that I've found displayed at many of the other sites are out of date. The say something like:
and if you follow the prompt and type "help settings", it tells you exactly nothing about repositories. The way to do it now is
See "help rep" at the PPM prompt for (much) more. Unfortunately, Crypt::OpenPGP doesn't appear to be available for 5.8 on any of the repositories I have set up. Addendum: I found this which basically repeats the information above, but also has the longest list of PPM repositories I've yet seen. Unfortunately none of them has Crypt::OpenPGP for 5.8 either. | [reply] [d/l] [select] |
|
Re: Installing Modules in Windows
by gaal (Parson) on Jul 20, 2004 at 04:34 UTC | |
If you need to install modules with XS or other components that need a c compiler, you'll need a c compiler :-) If you do that a lot, it might be simpler for you to install Cygwin, which comes with gcc and the rest of the GNU c toolchain. | [reply] [d/l] |
|
Re: Installing Modules in Windows
by johnnywang (Priest) on Jul 20, 2004 at 07:47 UTC | |
Usually you invoke the CPAN shell as: then simply type: In this particular case, it has many dependencies, it will ask you whether you want to install those, just say yes. | [reply] [d/l] [select] |