Gaa! UNIX hack tries PPM and fails!

U

usenet

I'm a UNIX hack, but I want to run Web Scraping Proxy on a Windows box
that does not have internet access (I'm scraping local pages). So I
installed ActivePerl. So far, so good.

But WSP needs some old SSLeay crypto modules. ActiveState doesn't
supply crypto modules (http://aspn.activestate.com/ASPN/Downloads/
ActivePerl/PPM/Repository) but they kindly provide a link to the
University of Winnipeg, specifically mentioning the two modules I
require (Crypt-SSLeay and Net_SSLeay).

Since I don't have web access on the target PC then I am looking for a
PPM file so I can do a local install.

I found where the plain PPMs are supposedly published:
http://theoryx5.uwinnipeg.ca/ppms/x86

And I downloaded the one I need: http://theoryx5.uwinnipeg.ca/ppms/x86/Crypt-SSLeay.tar.gz

What I expected to find therein was a file named whatever.ppm that I
could run ppm against. But the tarball contains a directory structure
that looks like this:

[.....]
drwxrwxrwx 0 0 0 Dec 26 12:20:22 2006 blib/html/site
drwxrwxrwx 0 0 0 Dec 26 12:20:22 2006 blib/html
-rw-rw-rw- 0 0 0 Dec 26 12:19:22 2006 blib/lib/auto/Crypt/
SSLeay/.exists
drwxrwxrwx 0 0 0 Dec 26 12:19:22 2006 blib/lib/auto/Crypt/
SSLeay
drwxrwxrwx 0 0 0 Dec 26 12:19:22 2006 blib/lib/auto/Crypt
drwxrwxrwx 0 0 0 Dec 26 12:19:22 2006 blib/lib/auto
[.....]

There is no README or anything telling me what to do with this. Is
this a PPM? Am I supposed to just unroll this somewhere on my Windows
box? Where? What is this thing?

Can anybody help a poor UNIX hack figure this out?

Thanks!
 
A

Ayaz Ahmed Khan

"(e-mail address removed)" typed:
What I expected to find therein was a file named whatever.ppm that I
could run ppm against. But the tarball contains a directory structure
that looks like this:

[.....]
drwxrwxrwx 0 0 0 Dec 26 12:20:22 2006 blib/html/site
drwxrwxrwx 0 0 0 Dec 26 12:20:22 2006 blib/html
-rw-rw-rw- 0 0 0 Dec 26 12:19:22 2006 blib/lib/auto/Crypt/
SSLeay/.exists
drwxrwxrwx 0 0 0 Dec 26 12:19:22 2006 blib/lib/auto/Crypt/
SSLeay
drwxrwxrwx 0 0 0 Dec 26 12:19:22 2006 blib/lib/auto/Crypt
drwxrwxrwx 0 0 0 Dec 26 12:19:22 2006 blib/lib/auto
[.....]

There is no README or anything telling me what to do with this. Is
this a PPM? Am I supposed to just unroll this somewhere on my Windows
box? Where? What is this thing?

Um ...

$ perl Makefile.PL
$ make
# make install

.... perhaps.
 
A

anno4000

Ayaz Ahmed Khan said:
"(e-mail address removed)" typed:
What I expected to find therein was a file named whatever.ppm that I
could run ppm against. But the tarball contains a directory structure
that looks like this:

[.....]
drwxrwxrwx 0 0 0 Dec 26 12:20:22 2006 blib/html/site
drwxrwxrwx 0 0 0 Dec 26 12:20:22 2006 blib/html
-rw-rw-rw- 0 0 0 Dec 26 12:19:22 2006 blib/lib/auto/Crypt/
SSLeay/.exists
drwxrwxrwx 0 0 0 Dec 26 12:19:22 2006 blib/lib/auto/Crypt/
SSLeay
drwxrwxrwx 0 0 0 Dec 26 12:19:22 2006 blib/lib/auto/Crypt
drwxrwxrwx 0 0 0 Dec 26 12:19:22 2006 blib/lib/auto
[.....]

There is no README or anything telling me what to do with this. Is
this a PPM? Am I supposed to just unroll this somewhere on my Windows
box? Where? What is this thing?

Um ...

$ perl Makefile.PL
$ make
# make install

... perhaps.

It appears that the tarball contains everything below blib/ and nothing
else. I don't know how a PPM is supposed to work, but that doesn't look
right. In any case it won't support a manual install.

Anno
 
U

usenet

[what may be the clearest and best reply I have ever seen in usenet!]

Wow, Chris - thanks for the great answer! That's exactly what I
needed to know, and your clear and excellent instructions made it very
easy for me to get this done. Now that I see the solution, I'm glad I
decided to post the question here - I would have NEVER figured that
out!

FWIW, for those who stumble upon this thread seeking the same thing -
installing the second module (Net::SSLeay) was similar but with one
gotcha. Here is the ppd file I hacked up to do it:

<?xml version="1.0" encoding="UTF-8"?>
<SOFTPKG NAME="Net_SSLeay.pm" VERSION="1,30,0,0">
<TITLE>Net_SSLeay.pm</TITLE>
<ABSTRACT>Perl extension for using OpenSSL</ABSTRACT>
<AUTHOR>Sampo Kellomaki</AUTHOR>
<IMPLEMENTATION>
<OS NAME="MSWin32"/>
<ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8"/>
<CODEBASE HREF="Net_SSLeay.pm.tar.gz"/>
<PROVIDE NAME="Net::SSLeay" VERSION="1.30"/>
</IMPLEMENTATION>
</SOFTPKG>

(indended for usenet readability, but don't have any leading spaces on
your first line)

The gotcha was from the original XML file
http://theoryx5.uwinnipeg.ca/ppms/Net_SSLeay.pm.ppd
The <AUTHOR> tagset in that file looks like this:
<AUTHOR>Sampo Kellomaki <[email protected]></AUTHOR>
(domain obfuscated as a courtesy to the author)

ppm wouldn't build (and the error message was not very instructive).
I think the '@' was the problem. Anyway, after much head-scratching
(and acting on a pure hunch) I removed the e-mail address from my .ppd
and it built just fine.

The tarball is here: http://theoryx5.uwinnipeg.ca/ppms/x86/Net_SSLeay.pm.tar.gz

If you have already copied the two .dll files per Chris' instructions
then you need only download the tarball and hack up the .ppm file to
be able to install Net::SSLeay with ppm.

Thanks again, Chris!
 
T

Tad McClellan

S

Sisyphus

..
..
The gotcha was from the original XML file
http://theoryx5.uwinnipeg.ca/ppms/Net_SSLeay.pm.ppd
The <AUTHOR> tagset in that file looks like this:
<AUTHOR>Sampo Kellomaki <[email protected]></AUTHOR>
(domain obfuscated as a courtesy to the author)

ppm wouldn't build (and the error message was not very instructive).
I think the '@' was the problem.

That's odd. There's lots of ppd files that do the same thing, and ppm
usually has no problem with them.

Which version of ppm ?

Cheers,
Rob
 
U

usenet

That's odd. There's lots of ppd files that do the same thing, and ppm
usually has no problem with them.

Which version of ppm ?

C:\perl\bin>ppm --version
ppm 4.01
Copyright (C) 2007 ActiveState Software Inc. All rights reserved.

I would also think this convention is common in ppm files. But my
process failed until I removed this nested e-mail address. Maybe it
has something to do with the difference between doing a web install vs
a local install?? I dunno - as I said, I'm a UNIX hack.
 
U

usenet

I was cut and paste nuts on another post outupt. This is the real output. Its valid xml. From RxParse 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<SOFTPKG NAME="Crypt-SSLeay" VERSION="0,53,0,0">
<TITLE>Crypt-SSLeay</TITLE>
<ABSTRACT>OpenSSL glue that provides LWP https support</ABSTRACT>
<AUTHOR>Joshua Chamas &lt;josh (at) chamas dot com&gt;</AUTHOR>

Yeah, that's fine, but it's not the ppd in question. That is the
first module (Crypt::SSLeay), which Chris Winter helped me with. That
XML has no problems.

But WSP requires also Net::SSLeay. My additional comments (which Tad
commented upon) concern that module and that ppd:
http://theoryx5.uwinnipeg.ca/ppms/Net_SSLeay.pm.ppd
which is somewhat more dubious XML (per Tad's observations)
 
S

Sisyphus

..
..
I would also think this convention is common in ppm files. But my
process failed until I removed this nested e-mail address. Maybe it
has something to do with the difference between doing a web install vs
a local install??

Yes ... that's precisely what it turns out to be .... strange, but true.

ActiveState do provide zips of their ppm packages (for doing local installs)
at
http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/

Looking at the ppd files that ship with those zips we find that the "<" and
">" that normally surround the email address are replaced with "(" and ")"
respectively. And that works fine. Switch back to the angle brackets and the
'ppm install' fails.

But for web installs there's no problem with the angle brackets.

Cheers,
Rob
 
U

usenet

Looking at the ppd files that ship with those zips we find that the "<" and
">" that normally surround the email address are replaced with "(" and ")"
respectively. And that works fine. Switch back to the angle brackets and the
'ppm install' fails.

But for web installs there's no problem with the angle brackets.

Hmmm. If I were one of those smug, stuck-up UNIX hack types then I
would make some smug comment here about Perl and Windows. But I admit
that I also tried to build these modules on AIX and had many problems
(crypto modules are always tricky on AIX) so I cannot, in good
conscience, be smug here, even if I were the smug type. It works in
Windows now, but I could not get it to work at all with conventional
builds on AIX. So, although I had some problems, it works in Windows
but not in AIX. Score one for Windows in this situation.
 
S

Sisyphus

..
..
Hmmm. If I were one of those smug, stuck-up UNIX hack types then I
would make some smug comment here about Perl and Windows.

<this is really just a rant>
Heh ... you missed out on *one* adjective. Following "stuck-up", you should
have written "and anachronistic" :)

It's actually fairly trivial to build most things from *source* on Windows
these days (using free tools).

Libraries like openssl are readily buildable using the (freely available)
MinGW port of gcc in the (freely available) MSYS shell. And the crypto
modules are just as easily built from source (in the cmd.exe shell) using
the aforementioned MinGW port of gcc (even with ActivePerl).

These days, PPM is more a "convenience", rather than a "necessity".

Then ... along came fucking Windows Vista ... which breaks MinGW, breaks
MSYS, and makes a total mockery of what I've just written :)

There are patched versions of gcc.exe and g++.exe available for the MinGW
port of gcc-3.4.5 that work with Vista, but, afaik, there's still no
properly functioning version of the MSYS shell for Vista. As I understand
it, if you've got Windows Vista, and you want to build openssl for MinGW
from source, then you would have to do it from Cygwin as a cross-compilation
for MinGW. And then, to link against that library, as is the case when you
build the Perl crypto libraries, you'll need the patched version of gcc.exe.
</this is really just a rant>

Cheers,
Rob
 
B

Bart Lateur

It appears that the tarball contains everything below blib/ and nothing
else. I don't know how a PPM is supposed to work, but that doesn't look
right. In any case it won't support a manual install.

Look at what else is in the PPD file, at
http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd

<INSTALL EXEC="PPM_PERL"
HREF="http://theoryx5.uwinnipeg.ca/ppms/scripts/install_ssl">install_ssl</INSTALL>

It points to a Perl script that needs to be executed at install time.

It searches for the library on your local computer first, and if not
found, downloads it from the repository..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top