I've had similar problems installing Crypt::SSLeay. And I should add
that I am extremely ignorant about Perl and Terminal. In fact, I had
never opened my Mac Terminal until I tried to copy billyd's set-up for
syncing Simplenote with Notational Velocity using SimplenoteSync
(
http://billyd.net/post/204970320/simple-notes-that-sync-minus-the-
stink). I haven't worked with a Terminal since MS DOS days.
First, I'll report (as best as I can remember) what I've done, and
then give the error messages I've received.
The first time I opened my Terminal, I typed:
sudo perl -MCPAN -e "install Crypt::SSLeay”
Then I started to get dialogue prompting me to say whether I wanted
automatic or manual configuration. Foolishly, I selected manual and
began to be asked a variety of questions to which I didn't know the
answer. I think I uniformly selected the default suggestions, until I
got to the dialogue asking for my path to OpenSSL, at which point I
think I guessed at a path and, before completing the installation,
simply bailed and quit Terminal. At that point I also realized that I
had missed a step in billyd's instructions--installing XCode. So I got
my DVD install disk for Mac OS X (Leopard), and installed XCode.
Then I tried again from the start, typing:
sudo perl -MCPAN -e "install Crypt::SSLeay”
This time, I opted to automatically configure. When I do this, the
only prompt I'm given is when I'm asked "Which install path do you
want to use?" I simply hit enter to select the default. The
installation appears to proceed, and then I'm asked if I want to try
the live tests. I say yes, and then I get an error that looks very
similar to the above poster. Here's a complete quote of my Terminal
output, from beginning to end:
runners-macbook-pro:~ wcm1$ sudo perl -MCPAN -e "install
Crypt::SSLeay"
Password:
CPAN: Storable loaded ok
Going to read /Users/wcm1/.cpan/Metadata
Database was generated on Sat, 24 Oct 2009 04:27:25 GMT
Running install for module Crypt::SSLeay
Running make for D/DL/DLAND/Crypt-SSLeay-0.57.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /Users/wcm1/.cpan/sources/authors/id/D/DL/DLAND/Crypt-
SSLeay-0.57.tar.gz ok
Scanning cache /Users/wcm1/.cpan/build for sizes
Crypt-SSLeay-0.57
Crypt-SSLeay-0.57/t
Crypt-SSLeay-0.57/Changes
Crypt-SSLeay-0.57/lib
Crypt-SSLeay-0.57/certs
Crypt-SSLeay-0.57/MANIFEST
Crypt-SSLeay-0.57/TODO
Crypt-SSLeay-0.57/typemap
Crypt-SSLeay-0.57/MANIFEST.SKIP
Crypt-SSLeay-0.57/eg
Crypt-SSLeay-0.57/SSLeay.pm
Crypt-SSLeay-0.57/SSLeay.xs
Crypt-SSLeay-0.57/README
Crypt-SSLeay-0.57/Makefile.PL
Crypt-SSLeay-0.57/META.yml
Crypt-SSLeay-0.57/eg/lwp-ssl-test
Crypt-SSLeay-0.57/eg/net-ssl-test
Crypt-SSLeay-0.57/certs/ca-bundle.crt
Crypt-SSLeay-0.57/certs/notacakeynopass.pem
Crypt-SSLeay-0.57/certs/notacacert.pem
Crypt-SSLeay-0.57/lib/Crypt
Crypt-SSLeay-0.57/lib/Net
Crypt-SSLeay-0.57/lib/Net/SSL.pm
Crypt-SSLeay-0.57/lib/Crypt/SSLeay
Crypt-SSLeay-0.57/lib/Crypt/SSLeay/MainContext.pm
Crypt-SSLeay-0.57/lib/Crypt/SSLeay/Conn.pm
Crypt-SSLeay-0.57/lib/Crypt/SSLeay/X509.pm
Crypt-SSLeay-0.57/lib/Crypt/SSLeay/Err.pm
Crypt-SSLeay-0.57/lib/Crypt/SSLeay/CTX.pm
Crypt-SSLeay-0.57/t/00-basic.t
Crypt-SSLeay-0.57/t/02-live.t
Crypt-SSLeay-0.57/t/01-connect.t
Removing previously used /Users/wcm1/.cpan/build/Crypt-SSLeay-0.57
CPAN.pm: Going to build D/DL/DLAND/Crypt-SSLeay-0.57.tar.gz
=======================================================
Only one OpenSSL installation found at /usr
Consider running 'perl Makefile.PL --default' the next
time Crypt::SSLeay is upgraded to select this directory
automatically thereby avoiding the following prompt.
=======================================================
Which SSL install path do you want to use? [/usr]
BUILD INFORMATION
================================================
ssl library: OpenSSL 0.9.7 in /usr
ssl header: openssl/ssl.h
libraries: -L/usr/lib -lssl -lcrypto -lgcc
include dir: -I/usr/include/openssl
================================================
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgcc
Writing Makefile for Crypt::SSLeay
The test suite can attempt to connect to public servers
to ensure that the code is working properly. If you are
behind a strict firewall or have no network connectivity,
these tests may fail (through no fault of the code).
Do you want to run the live tests (y/N) ? [N] y
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
Since hitting this wall, I've tried downloading the latest version of
SimplenoteSync from github, which has Crypt packaged with it. I put
SimplenoteSync.pl and the "Crypt" folder in the same folder on my hard
drive, and then tried to run SimplenoteSync.pl, but I got this error:
runners-macbook-pro:~ wcm1$ perl -w /Users/wcm1/Scripts/
SimplenoteSync.pl
Network: get token
Problem connecting to web server.
Have you installed Crypt:SSLeay as instructed?
After reading the thread on CPANforum listed above, I've tried three
additional things, suspecting that maybe I don't have "make" installed
on my computer. First, I entered ...
runners-macbook-pro:~ wcm1$ CPAN> o
But got nothing in return. Then I tried this:
runners-macbook-pro:~ wcm1$ CPAN> o conf make /usr/bin/make o conf
commit
Nothing happened for a few seconds, and then I got a command prompt
again. At that point I tried the install Crypt:SSLeay command again,
and got the exact same, long output as above.
Next, I couldn't quite figure out from the above thread what to do if
you suspect "make" is not installed (whatever that means--this is like
reading Greek for me). But, perhaps foolishly, I tried this:
runners-macbook-pro:~ wcm1$ sudo perl -MCPAN -e "install Make"
Here's what I got:
CPAN: Storable loaded ok
Going to read /Users/wcm1/.cpan/Metadata
Database was generated on Sat, 24 Oct 2009 04:27:25 GMT
Running install for module Make
Running make for N/NI/NI-S/Make-1.00.tar.gz
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/authors/id/N/NI/NI-S/Make-1.00.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/authors/id/N/NI/NI-S/CHECKSUMS
CPAN: Compress::Zlib loaded ok
Checksum for /Users/wcm1/.cpan/sources/authors/id/N/NI/NI-S/
Make-1.00.tar.gz ok
Scanning cache /Users/wcm1/.cpan/build for sizes
Make-1.00/
Make-1.00/bmake
Make-1.00/t/
Make-1.00/t/make.t
Make-1.00/MANIFEST
Make-1.00/Makefile.PL
Make-1.00/Changes
Make-1.00/Make.pm
Make-1.00/MANIFEST.SKIP
/usr/bin/tar: Read 5120 bytes from -
Make-1.00/README
Make-1.00/pmake
CPAN.pm: Going to build N/NI/NI-S/Make-1.00.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Make
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
Not sure what to try next.