Compiling openssl on Windows

Hi,

I am trying to compile the openssl extension (which comes with ruby source) on Win XP (Home) using the free VC++ Toolkit 2003.

I cannot even get it create the makefile. See transcript below.
So my question is where can I find all the dependencies (where it says "no")

Thanks,
-- shanko

···

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

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\extract\_ruby\ruby\ext\openssl>ruby extconf.rb
=== OpenSSL for Ruby configurator ===
=== Checking for system dependent stuff... ===
checking for t_open() in nsl.lib... no
checking for socket() in socket.lib... no
checking for unistd.h... no
checking for sys/time.h... no
checking for assert.h... yes
=== Checking for required stuff... ===
checking for openssl/ssl.h... no
=== Checking for required stuff failed. ===
Makefile wasn't created. Fix the errors above.

C:\extract\_ruby\ruby\ext\openssl>

Where is your OpenSSL library? Did you make sure that there's an entry
in your INCLUDE environment variable to make sure that it can be
found?

-austin

···

On Thu, 18 Nov 2004 11:18:14 +0900, Shashank Date <sdate@everestkc.net> wrote:

Hi,

I am trying to compile the openssl extension (which comes with ruby
source) on Win XP (Home) using the free VC++ Toolkit 2003.

I cannot even get it create the makefile. See transcript below.
So my question is where can I find all the dependencies (where it says "no")

Thanks,
-- shanko

--
Austin Ziegler * halostatue@gmail.com
               * Alternate: austin@halostatue.ca

Hi Austin,

Where is your OpenSSL library?

Under

C:\OpenSSL

Installed by the binary provided at: Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions

Did you make sure that there's an entry
in your INCLUDE environment variable to make sure that it can be
found?

No I did not. So I just added it:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>set | grep -i openssl
INCLUDE=C:\OpenSSL\include\openssl;C:\Program Files\Microsoft Visual Studio\VC98\Include
LIB=C:\OpenSSL\lib\VC;C:\Program Files\Microsoft Visual Studio\VC98\LIB
OPENSSL_CONF=C:\OpenSSL\bin\openssl.cnf

But I still get the same error.

-austin

-- shanko

This should probably be C:\OpenSSL\include.

-austin

···

On Thu, 18 Nov 2004 13:23:14 +0900, Shashank Date <sdate@everestkc.net> wrote:

> Did you make sure that there's an entry
> in your INCLUDE environment variable to make sure that it can be
> found?
C:\>set | grep -i openssl
INCLUDE=C:\OpenSSL\include\openssl;C:\Program Files\Microsoft Visual
Studio\VC98\Include

--
Austin Ziegler * halostatue@gmail.com
               * Alternate: austin@halostatue.ca

Hi Austin,

Austin Ziegler wrote:

This should probably be C:\OpenSSL\include.

Yes, that was it. Thanks!

Do you know of a small 5/10 lines program to test my compiled openssl library?

-austin

-- shanko

Hi Austin,

Austin Ziegler wrote:

This should probably be C:\OpenSSL\include.

Yes, that was it. Thanks!

Do you know of a small 5/10 lines program to test my compiled openssl
library?

-austin

-- shanko