[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.
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.
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.