gpt4 book ai didi

ruby-on-rails - 无法使用 OpenSSL 编译 Ruby

转载 作者:数据小太阳 更新时间:2023-10-29 07:41:38 26 4
gpt4 key购买 nike

我的系统包含 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.

我不知道这意味着什么或如何解决它。请帮忙!

截图:

As you can see that only happens when it enters openssl. It can't read openssl for some reason.

最佳答案

将此添加到 ../ext/openssl 中的 Makefile(在使用 ruby extconf.rb 之后):

top_srcdir = ../..

enter image description here

然后您应该可以毫无问题地使用 makemake install

关于ruby-on-rails - 无法使用 OpenSSL 编译 Ruby,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28924827/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com