Rails & OpenSSL: `require_frameworks': no such file to load

Hi Nik Winter

    A quick googling gave answer from another forum as

You need openssl-devel library. So install it first

Here are the next steps: 1. cd /ruby_install_dir/ext/openssl 2. ruby extconf.rb 3. make 4. make install

Sijo

You need openssl-devel library.

I compiled OpenSSL from the source, so I should have all the headers and stuff. It seems like Rails can't find it, and I don't know how to tell it where to look.

ruby extconf --with-openssl-include=/path/to/openssl/headers --with- openssl-lib=/path/to/openssl/libraries

This didn't work.

Thanks for the responses!

When you compiled it, did you use --prefix to specify the install location? If not it should be /usr/local/lib or something similar.

Once you know where it installed you can add an entry into /etc/ld.so.conf and run ldconfig. After that your system will know about the new headers.

> You need openssl-devel library.

I compiled OpenSSL from the source, so I should have all the headers and stuff. It seems like Rails can't find it, and I don't know how to tell it where to look.

> ruby extconf --with-openssl-include=/path/to/openssl/headers --with- > openssl-lib=/path/to/openssl/libraries

This didn't work.

What happened ?

Fred

Is the location of openssl on your search path? What happens if you type "which openssl"?

The easiest way to ensure that it's found is, if you're building from source, use the configure command to install on your path. For instance I use /opt/local as a repository and have /opt/local/bin on my PATH. So I run:

$ cd ~/src/openssl-0.9.8j $ ./configure --prefix=/opt/local --any-other-configuration-options $ make $ make install $ which openssl /opt/local/bin/ssl $ openssl version OpenSSL 0.9.8j 07 Jan 2009