Problems installing Crypt::SSLeay

798 views
Skip to first unread message

jrdmcgr

unread,
Oct 19, 2009, 9:33:31 AM10/19/09
to SimplenoteSync
You'll have to excuse me if some of this seems simple—I'm just not too
savvy.
I came across the following dialogue when running CPAN to install
Crypt::SSLeay.

I chose to let CPAN auto-configure as this was the first time that
I've run it, and I don't know the location of most of the programs
that it asks you to locate.

Anyway, it gave me the following output:

======================================================================
No installed SSL libraries found in any of the following places.
/local
/local/ssl
/opt/ssl
/usr
/usr/local
/usr/local/ssl
/usr/local/openssl
You will have to either specify a directory location at the following
prompt, or rerun the Makefile.PL program and use the --lib switch
to specify the path. If the path in question is considered standard
on your platform, please consider filing a bug report in order to
have it taken into account in a subsequent version of Crypt::SSLeay.

Which SSL install path do you want to use? /usr
/usr does not appear to be an SSL library installation, since
the required header files were not found. The build cannot proceed.
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install

=======================================================================

I don't know if the problem is with the absent header files or with
make—or both.
Some clarification would be greatly appreciated.

Fletcher T. Penney

unread,
Oct 19, 2009, 10:02:27 AM10/19/09
to jrdmcgr, SimplenoteSync
Do you have the Mac Developer tools installed?


F-

> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "SimplenoteSync" group.
> To post to this group, send email to simplen...@googlegroups.com
> To unsubscribe from this group, send email to simplenotesyn...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/simplenotesync?hl=en
> -~----------~----~----~----~------~----~------~--~---
>

--
Fletcher T. Penney
fletche...@gmail.com

The gene pool could use a little chlorine.

jrdmcgr

unread,
Oct 19, 2009, 11:26:37 AM10/19/09
to SimplenoteSync
Thanks. Developer tools was definitely needed for SSL but it seems
that I'm still having trouble with make.

Here is some more terminal output from CPAN:

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]
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

------------------------------------------------------------------------------------

Kind of ambiguous, so I'm not sure what to do. I've only compiled
programs from source a few times, so I'm in the dark here.

Fletcher

unread,
Oct 19, 2009, 2:04:12 PM10/19/09
to SimplenoteSync
This may or may not be helpful:


http://www.cpanforum.com/threads/502


F-

Caleb

unread,
Oct 24, 2009, 3:22:10 PM10/24/09
to SimplenoteSync
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.

Nate

unread,
Nov 23, 2009, 6:36:47 PM11/23/09
to SimplenoteSync
So I had this problem as well... The fix for me was to reinstall XCode
(Developer Tools) and be sure to install the unix development tools.

Hope that fixes it for you too.

Fletcher T. Penney

unread,
Nov 23, 2009, 6:51:04 PM11/23/09
to Nate, SimplenoteSync
Anyone else who has had that problem should try this fix... I'm not
sure that I specified the unix part (I took it for granted).


Let me know if it solves the problem for people who tried Development
tools before...


Thanks!


F-

> --


>
> You received this message because you are subscribed to the Google Groups "SimplenoteSync" group.

> To post to this group, send email to simplen...@googlegroups.com.
> To unsubscribe from this group, send email to simplenotesyn...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simplenotesync?hl=.
>
>

--
Fletcher T. Penney
fletche...@gmail.com

I hooked up my accelerator pedal in my car to my brake lights. I hit
the gas, people behind me stop, and I'm gone.
- Steven Wright

jrdmcgr

unread,
Nov 24, 2009, 6:04:17 PM11/24/09
to SimplenoteSync
This didn't work for me ( using the 10.5 install DVD ).
What system are you running?
Still wishing I could sync my notes...

Nick

unread,
Dec 9, 2009, 4:17:13 AM12/9/09
to SimplenoteSync
I'm sorry, I may be too much of a n00b here, with my terminal
experience dating back to DOS 5.0 but I'll ask away anyway.

Fletcher said:

> Anyone else who has had that problem should try this fix... I'm not
> sure that I specified the unix part (I took it for granted).
>
> Let me know if it solves the problem for people who tried Development
> tools before...
>
> Thanks!
>
> F-

Can I ask you what "this fix" is?

My situation:
- trying to set up simple note sync for use with notational velocity
- running OS X 10.6.2. on macbook air
- installed dev tools from installation disc, it doesn't let me check
the unix box however
- then just input "sudo perl -MCPAN -e “install Crypt::SSLeay”" like
it's said at http://billyd.net/post/204970320/simple-notes-that-sync-minus-the-stink
- and the end part of the result you'll find below

My question: How do I make this work with absolutely zero knowledge of
unix/terminal/whatnot?

Thanks for any and all help!



CPAN: File::Temp loaded ok (v0.18)
Warning (usually harmless): 'YAML' not installed, will not store
persistent state

CPAN.pm: Going to build D/DL/DLAND/Crypt-SSLeay-0.57.tar.gz

========================================================================
No installed SSL libraries found in any of the following places.
/local
/local/ssl
/opt/ssl
/usr
/usr/local
/usr/local/ssl
/usr/local/openssl
You will have to either specify a directory location at the following
prompt, or rerun the Makefile.PL program and use the --lib switch
to specify the path. If the path in question is considered standard
on your platform, please consider filing a bug report in order to
have it taken into account in a subsequent version of Crypt::SSLeay.

Which SSL install path do you want to use? /usr/local
/usr/local does not appear to be an SSL library installation, since
the required header files were not found. The build cannot proceed.
Warning: No success on command[/usr/bin/perl Makefile.PL]
Warning (usually harmless): 'YAML' not installed, will not store
persistent state
DLAND/Crypt-SSLeay-0.57.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read '/Users/nick/.cpan/build/Crypt-SSLeay-0.57-jb1ynd/
META.yml'. Falling back to other methods to determine prerequisites
cs78227044:~ nick$

Reply all
Reply to author
Forward
0 new messages