Could not find puma-3.5.2 in any of the sources@Gem::Ext::BuildError: ERROR: Failed to build gem ...

今天学习全栈营第一周课程job-listing的过程中

在5-1 Fork 教学中碰到一个错误提示,入下图,由于提示很长,分成2张截图



主要的意思:Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

An error occurred while installing puma (3.5.2), and Bundler cannot continue.

Make sure that `gem install puma -v '3.5.2' --source 'https://rubygems.org/'` succeeds before bundling.

在google后在stack overflow里找到了解决方法

在终端机上先后运行下列几条指令:

brew install openssl

bundle config build.puma --with-opt-dir=/usr/local/opt/openssl

bundle install

问题就可以得到解决

附上原网址

https://stackoverflow.com/questions/35784923/gemextbuilderror-error-failed-to-build-gem-native-extension-for-puma-gem

你可能感兴趣的:(Could not find puma-3.5.2 in any of the sources@Gem::Ext::BuildError: ERROR: Failed to build gem ...)