刚安装El Capitan并且无法安装gem eventmachine 1.0.7.openssl在1.0.2a-1.试图使用--with-ssl-dir但似乎被忽略了.
报告给他们的github回购也.
任何建议都非常感谢.谢谢.
$ ls /usr/local/Cellar/openssl/1.0.2a-1/include/openssl/ssl.h
/usr/local/Cellar/openssl/1.0.2a-1/include/openssl/ssl.h
$ gem install eventmachine -v '1.0.7' -- --with-ssl-dir=/usr/local/Cellar/openssl/1.0.2a-1/include
/Users/pain/.rbenv/versions/2.1.2/bin/ruby -r ./siteconf20150612-56154-1hsjz2n.rb extconf.rb --with-ssl-dir=/usr/local/Cellar/openssl/1.0.2a-1/include
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for rb_thread_fd_select()... yes
checking for rb_fdset_t in ruby/intern.h... yes …Run Code Online (Sandbox Code Playgroud) 不知道该怎么做才能具体解决这个问题,谷歌搜索并没有解决我的问题。当我尝试:
bundle exec jekyll serve
我被告知:
Could not find eventmachine-1.2.7 in any of the sources
Run `bundle install` to install missing gems.
Run Code Online (Sandbox Code Playgroud)
然后我:
bundle install
只是为了得到这个:
Installing eventmachine 1.2.7 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /private/var/folders/7f/2c2swwc1153899dmr8781_x40000gn/T/bundler20201130-34411-1lzt2fceventmachine-1.2.7/gems/eventmachine-1.2.7/ext
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r
./siteconf20201130-34411-pd54nh.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1 …Run Code Online (Sandbox Code Playgroud) 我发布此内容是为了防止其他人遇到同样的问题。我试图从苹果 m1 笔记本电脑部署我的 ruby 项目,并得到libc++abi: terminating with uncaught exception of type std::runtime_error: Encryption not available on this event-machine.
检查事件机器给出
ruby -reventmachine -ve "puts EM.library_type, EM.ssl?"
ruby 2.6.7p197 (2021-04-05 revision 67941) [arm64-darwin20]
extension
false
Run Code Online (Sandbox Code Playgroud)
尝试在 eventmachine 上卸载并安装,但无济于事。