我在安装 puma gem 时收到以下错误
$ gem install puma
Fetching: puma-2.11.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing puma:
ERROR: Failed to build gem native extension.
ruby extconf.rb
checking for BIO_read() in -lcrypto... no
checking for BIO_read() in -llibeay32... no
*** extconf.rb failed ***
尝试以下操作
gem install puma -- --with-cppflags=-I/usr/local/opt/openssl/include
bundle install
您还可以指定 gem 版本,如下所示:
gem install puma -v '2.11.3' -- --with-cppflags=-I/usr/local/opt/openssl/include
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)