Setting up Ruby on Rails
12 March 2006 in Code | Comments enabled

Last week Andrew gave a few of us a run down on how he was using Ruby on Rails (RoR) for a few small projects. I already knew that RoR was a reasonably efficient way of developing database driven websites but I didn’t realise just how good it was.

So this weekend I decided to throw away my InstantRails package and install it all properly. InstantRails is a cool all-in-one package you can download that sets up MySQL, Apache and RoR when you run it up (and then closes them when you close it – no messy resources being taken up, nice). However now I wanted to do things properly.

So I downloaded Gems (the Rails package manager), MySQL (my host uses that, but I could have used my existing SQL Server instance), Ruby. Everything went swimmingly – almost.

I ran into a small problem with a couple of errors when doing some things that seemed to relate to ssleay32.dll. After some reading I found it also included the file libeay32.dll. From what I read they need to be manually put into your System32 directory on Windows 2003 although it could affect other operating systems versions.

I thought I’d post this entry mainly for myself when in the future I go to setup RoR again and need those dlls I can just download them here. Download libeay32.dll and ssleay32.dll.

So now I’m just tinkering with some code – perhaps more RoR posts will follow :-)

- JD


3 comments. Add your own comment.

Matthew Browne says 14 April 2006 @ 15:10

Thanks for the post. I ran into the same problem, ruby.exe said it couldn’t find ssleay32.dll, and I’m running Windows XP – weird.

hrongyorgy says 5 June 2008 @ 17:35

Very-very thanks. It seems work on Vista too.

Rollo says 18 February 2009 @ 22:34

Thanks for posting on this.

But it all depends on the version of Ruby you’re using.
You should rather have given a pointer to where to find the original files rather than posting a copy from your blog – that’s a bad thing to do.

The files you need are from the OpenSSL project and for Windows, they can be found here: http://www.slproweb.com/products/Win32OpenSSL.html.

You should run the installer and doing so, avoid copying anything to your system directory (another bad thing to do). Rather, once installed, just copy the required files (ssleay32.dll, libeay32.dll) into your ruby/bin directory. And you should be all set.

Thx,
Rollo

Leave a Comment

Name (required)

E-mail (required - not published)

Website

Your comment: