安裝rails 顯示安裝 Puma 失敗,gem install puma -v '5.3.1' --source 'https://rubygems.org/
更新日期:版本不一定會是 5.3.1,顯示哪個版本就執行哪個版本
所以就照著他說的
gem install puma -v '5.3.1' --source 'https://rubygems.org/
執行這個指令即可
如果成功的話,再進去專案裡面執行 bundle install 即可
如果失敗,顯示
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
error: implicit declaration of function 'SSL_CTX_get0_param'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
X509_VERIFY_PARAM *param = SSL_CTX_get0_param(ctx);
^
mini_ssl.c:242:32: note: did you mean 'SSL_CTX_set1_param'?
請參考: