Re: Crypt::DES on windows
by fizbin (Chaplain) on Oct 13, 2005 at 13:51 UTC
|
To build the module from source, you need a C compiler. If you don't have a C compiler, ask someone nearby who does (and who has activestate's perl) if they will build it for you. That error message says "I couldn't find your C compiler".
If you do have Microsoft's Visual C/C++ installed, then you need to first run the batch file "vcvars32.bat" in the same console window in which you're going to try building the package.
Microsoft does offer a zero-cost command line compiler these days, but I don't know the details of how one builds packages for activestate with that compiler.
Another alternative, and probably your best bet, is to find a place where someone else has already compiled Crypt-DES for you and is offering the files out for others. To find such places, google for "Crypt-DES.ppd" and take note of the results. Once you find such a place, you can add it to your ppm3 with a command similar to:
rep add webpub http://perlpack.webpub.net/
(To take the first google hit) - then, you can install Crypt-DES as you would normally.
Note that this last option is equivalent to running some binary that you just found "out there" on the internet, with all the security craziness that implies.
--
@/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
map{y/X_/\n /;print}map{pop@$_}@/for@/
| [reply] [d/l] [select] |
|
|
| [reply] |
Re: Crypt::DES on windows
by inman (Curate) on Oct 13, 2005 at 15:06 UTC
|
It's not a perfect system so sometimes you have to give it a nudge. I have just installed Crypt-DES from the University of winnepeg using the command line.
ppm3 install http://theoryx5.uwinnipeg.ca/ppms/Crypt-DES.ppd
I had previously tried the ActiveState directory and didn't get anywhere. The approach to take is to install (or just view) that latest PPM::Repositories and use alternate repositories when a specific install fails. Don't be afraid to add and delete repositories.
| [reply] [d/l] |
Re: Crypt::DES on windows
by reasonablekeith (Deacon) on Oct 13, 2005 at 13:52 UTC
|
Compiling some of the modules can be a nightmare. Where did you get your compiler from?
Anyway, the Crypt-DES ppd does seem to be missing off ppm.activestate.com. However, you can install ppd's from any url directly, a quick google came up with the following link, WHICH YOU USE AT YOUR OWN RISK, sorry for the caps, but I've no idea if this is malicious.
# you can just install ppd like this...
ppm
install http://domain/a.ppd
Here's the dubious link... http://perlpack.webpub.net
---
my name's not Keith, and I'm not reasonable.
| [reply] [d/l] |
|
|
Yeah, i had found another ppd for that module on another site, and got the same results as when i tried this one:
"Error: no suitable installation target found for package Crypt-DES."
So i downloaded the .ppd locally and edited the codebase href to point to my own webserver and then saved the ppd there.
then ran (in ppm)
install http://mywebserver/Crypt-DES.ppd
and got the same error. so, what am i missing here?
i have VC++...i guess i'll attempt to compile the modules.
any other ideas are welcome! thanks for your help so far!
steve
| [reply] |
|
|
The error about "no suitable installation target
found" generally means that the ppm utility found a
ppm package, but it doesn't correspond to your version
of perl (Perl-5.6 and Perl-5.8 aren't binary compatible,
which is important especially for packages like
Crypt-DES that have an XS component that needs compiling).
For example, the packages on the perlpack.webpub.net
site have, in the ppd file, an architecture of
MSWin32-x86-multi-thread, which corresponds to
perl-5.6 (ActivePerl 6xx builds). Since you're
using an ActivePerl 8xx build (perl-5.8),
this doesn't match the associated
architecture of MSWin32-x86-multi-thread-5.8.
ActiveState removed many of their Crypt*
ppm packages due to legal concerns.
As noted elsewhere in this thread, some such
packages are available in the uwinnipeg
ActivePerl 8xx repository, including Crypt-DES.
Having said that, if you have VC++, it would be worthwhile
to set it up so that you can compile your own packages.
However, if you're using ActivePerl, you should be using
VC++ 6 (which is what ActivePerl is compiled with);
if your version of VC++ isn't 6, you should probably
compile Perl on your own and use that. The
README.win32 file in the Perl sources discusses how
to do this.
| [reply] |
Re: Crypt::DES on windows
by terra incognita (Pilgrim) on Oct 13, 2005 at 14:59 UTC
|
ppm> describe 1
====================
Package 1:
Name: Crypt-DES
Version: 2.03
Author: Dave Paris <a-mused@pobox.com>
Title: Crypt-DES
Abstract: Perl DES encryption module
Location: UWinnipeg
Available Platforms:
1. MSWin32-x86-multi-thread-5.8
====================
And here is the information on the repository. You will notice that I have this location as the number 1 place to look. :-)
ppm> rep describe 1
Describing Active Repository 1:
Name: UWinnipeg
Location: http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServe
+r58
Type: PPMServer 2.0
ppm>
Another location is our own crazyinsomniac's repository (though they do not seem to have this one). Check out crazyinsomniac for more details.
| [reply] [d/l] [select] |
Re: Crypt::DES on windows
by xorl (Deacon) on Oct 13, 2005 at 13:40 UTC
|
Usually when I have problems like this, I install cygwin (http://www.cygwin.com/) and try to figure out how I can do it from there. I'm sure there is actually a way to do this completely under windows, I just don't know how. | [reply] |