使用Ruby 3.2.1 bundle
设置Jekyll时失败如下:
current directory: /Users/chandanj/.rvm/gems/ruby-3.2.1/gems/eventmachine-1.2.7/ext
make DESTDIR\= sitearchdir\=./.gem.20230620-52033-h7p7oy sitelibdir\=./.gem.20230620-52033-h7p7oy
compiling binder.cpp
In file included from binder.cpp:20:
./project.h:119:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^~~~~~~~~~~~~~~
1 error generated.
make: *** [binder.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/chandanj/.rvm/gems/ruby-3.2.1/gems/eventmachine-1.2.7 for inspection.
Results logged to /Users/chandanj/.rvm/gems/ruby-3.2.1/extensions/arm64-darwin-22/3.2.0/eventmachine-1.2.7/gem_make.out
An error occurred while installing eventmachine (1.2.7), and Bundler cannot continue.
Make sure that `gem install eventmachine -v '1.2.7' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
jekyll-last-modified-at was resolved to 1.3.0, which depends on
jekyll was resolved to 4.3.2, which depends on
em-websocket was resolved to 0.5.3, which depends on
eventmachine
经过大量的试验几个解决方案,以下工作,因此添加它在这里为任何面临相同问题的人。
1条答案
按热度按时间d6kp6zgx1#
删除Ruby 3.2.1
使用openssl@1.1安装Ruby 3.2.1
发布此消息,
bundle
成功,但是,您将开始看到以下警告:要解决这个问题,执行
bundle update --bundler
,警告就会消失。