Reputation: 67
My system contains OpenSSL but Ruby is unable to require it. I was told that I must have installed Ruby before I had openssl in my system and that I have to rebuild ruby. So I went to the Ruby directory and typed.
pushd ext/openssl
sudo ruby extconf.rb
make
make install
popd
And then I was going to reconfigure Ruby by typing:
./configure
make
make install
The problem is that after I run the extconf.rb file which works fine and I type sudo make
, it gives this error message.
make: *** No rule to make target `/include/ruby.h', needed by `ossl_digest.o'. Stop.
I don't know what that means or how to fix it. Please help!
Screenshot:
Upvotes: 3
Views: 3651
Reputation: 76784
Add this to your Makefile
in ../ext/openssl
(after using ruby extconf.rb
):
top_srcdir = ../..
You then should be able to use make
and make install
without issue
Upvotes: 13
Reputation: 2179
You need libssl-dev if you want to compile Ruby from source.
Upvotes: 2