我的系统包含 OpenSSL 但 Ruby 无法要求它。有人告诉我,我必须在我的系统中安装 openssl 之前安装 Ruby,并且我必须重建 ruby。所以我去了 Ruby 目录并输入。
pushd ext/openssl
sudo ruby extconf.rb
make
make install
popd
然后我打算通过键入以下内容来重新配置 Ruby:
./configure
make
make install
问题是,在我运行运行正常的 extconf.rb 文件并键入 sudo make
后,它给出了这条错误消息。
make: *** No rule to make target `/include/ruby.h', needed by `ossl_digest.o'. Stop.
我不知道这意味着什么或如何解决它。请帮忙!
截图:
最佳答案
将此添加到 ../ext/openssl
中的 Makefile
(在使用 ruby extconf.rb
之后):
top_srcdir = ../..
然后您应该可以毫无问题地使用 make
和 make install
关于ruby-on-rails - 无法使用 OpenSSL 编译 Ruby,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28924827/