# Install/enable openssl for rails 2.0.2

**URL:** <https://www.ruby-forum.com/t/install-enable-openssl-for-rails-2-0-2/142065>\
**Category:** Rails\
**Created:** [July 3, 2008, 4:29am UTC](https://www.ruby-forum.com/t/install-enable-openssl-for-rails-2-0-2/142065 "2008-07-03T04:29:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a587f6/32.png) [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Post date:** [July 3, 2008, 4:29am UTC](https://www.ruby-forum.com/t/install-enable-openssl-for-rails-2-0-2/142065/1 "2008-07-03T04:29:47Z")

</div>

I was trying to install Redmine on rails 2.0.2 and I received the  
following error message:

no such file to load – openssl

I went to /ruby-1.8.6/ext/openssl and typed make and received the  
following error message:

make: Nothing to be done for `all’.

My question is: How can I install or enable openssl for ruby 1.8.6 in  
order to complete my install for rails.

Thank you!

---

<div class="post-metadata">

**Author:** ![jasonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a587f6/32.png) [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Post date:** [July 3, 2008, 10:53am UTC](https://www.ruby-forum.com/t/install-enable-openssl-for-rails-2-0-2/142065/2 "2008-07-03T10:53:19Z")

</div>

On 3 Jul 2008, at 03:29, Jason B. wrote:

> 

Have you run  
make install

It might be worth trying it from scratch:

ruby extconf.rb  
make clean  
make  
make install

Fred

---

<div class="post-metadata">

**Author:** ![jasonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a587f6/32.png) [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Post date:** [July 3, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/install-enable-openssl-for-rails-2-0-2/142065/3 "2008-07-03T15:31:19Z")

</div>

Frederick C. wrote:

> On 3 Jul 2008, at 03:29, Jason B. wrote:
> 
> > 
> 
> Have you run  
> make install
> 
> It might be worth trying it from scratch:
> 
> ruby extconf.rb  
> make clean  
> make  
> make install
> 
> Fred

Thank you for your reply.

here is what happened:

[root@qtsfo148 openssl]# ruby extconf.rb  
=== OpenSSL for Ruby configurator ===  
=== Checking for system dependent stuff… ===  
checking for t\_open() in -lnsl… no  
checking for socket() in -lsocket… 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.

---

<div class="post-metadata">

**Author:** ![jasonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a587f6/32.png) [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Post date:** [July 3, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/install-enable-openssl-for-rails-2-0-2/142065/4 "2008-07-03T15:42:20Z")

</div>

On 3 Jul 2008, at 14:31, Jason B. wrote:

> >

Sounds like you either don’t have the development stuff for openssl  
(may be in a separate package) or it’s somewhere that extconf.rb  
couldn’t find. You might to pass --with-openssl-include and --with-  
openssl-lib options to tell it where openssl is.

Fred

---

<div class="post-metadata">

**Author:** ![jasonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a587f6/32.png) [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Post date:** [July 3, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/install-enable-openssl-for-rails-2-0-2/142065/5 "2008-07-03T16:47:21Z")

</div>

Frederick C. wrote:

> On 3 Jul 2008, at 14:31, Jason B. wrote:
> 
> > >
> 
> Sounds like you either don’t have the development stuff for openssl  
> (may be in a separate package) or it’s somewhere that extconf.rb  
> couldn’t find. You might to pass --with-openssl-include and --with-  
> openssl-lib options to tell it where openssl is.
> 
> Fred

Problem solved! For anyone else with the same issue… here is what i  
did:

install openssl:

```
./config --prefix=/usr/local --openssldir=/usr/local/ssl
make
make test
make install (as root)
./config shared --prefix=/usr/local --openssldir=/usr/local/ssl
make clean
make
make install (as root)
cd /usr/local/ssl/lib
cp * /usr/lib

```

To avoid getting the following error later when you compile OpenSSH:

```
configure: error: Your OpenSSL headers do
not match your library

```

copy all the SSL include files everywhere:

```
cd /home/tjnelson/openssl/openssl-*
cd include/openssl
cp * /usr/include
cp * /usr/local/ssl/include
cp * /usr/local/ssl/include/openssl

```

and then add /usr/local/ssl/lib to /etc/ld.so.conf and type

```
ldconfig

```

Then i returned to ruby-\*/ext/openssl and ran:

ruby extconf.rb  
make clean  
make  
make install

worked like a charm!!!

thanks for all of your help
