fail to bundle install puma 4.3.5 or gem puma with ruby-2.6.6 on macos-10.15.6
It seems that the latest version of XCode tools (12 Beta 3) installs a version of Clang (the C compiler used by default on MacOS) that throws an error on implicit functions used on the native extension code of Puma.
The workaround as pointed out here is to tell Clang not to treat this behavior as an error.
Try running:
bundle config build.puma --with-cflags="-Wno-error=implicit-function-declaration"
bundle install
and it should work.
bundle install fails after installing puma
Finally got bundle to work using:
bundle config build.puma --with-cflags="-Wno-error=implicit-function-declaration"
from this answer here
gem install puma -v '4.3.7' fails on Mac OS Big Sur Ruby 2.6.3 Bundler version 2.2.19
This happens when you fail to install GCC or xcode-select.
- Be sure you have xcode-select installed
xcode-select --install
- Be sure your version of puma installs
gem install puma -v 'x.y.z'
- If neither of these work try
bundle config build.puma --with-cflags="-Wno-error=implicit-function-declaration"
and then re-run bundle install
Cannot build puma gem on OS X Yosemite
Turns out this was a bug in puma versions 2.9.2+ and has been fixed in version 2.11.0. For details, see https://github.com/puma/puma/issues/627 and https://github.com/puma/puma/pull/628.
(Note to unix users: if you're still having trouble, make sure you've have libssl-dev installed first.)
Related Topics
Irb History Not Working with Ruby 2.3.0
Mocha Mock Carries to Another Test
Why Do I Get Uninitialized Constant Devise Name Error When Running Webrick Server
Running into Smtp Error When Trying to Send Email in Ror App
How to Dynamically Create a Local Variable in Ruby
Store the Day of the Week and Time
Supporting Ruby 1.9's Hash Syntax in Ruby 1.8
How to Install JSON Gem - Failed to Build Gem Native Extension(MAC 10.10)
Is There a Natural_Sort_By Method for Ruby
Ruby Datetime Parsing from 'Mm/Dd/Yyyy' Format
Unexpected Return (Localjumperror)
Ruby on Rails: How to Edit Database.Yml for Postgresql
Rails 4 Migration: How to Reorder Columns
Rails and Os X: How to Install Rmagick
Os X Mountain Lion: Gcc-4.2 No Such File or Directory
How to Pass Parameter on 'Vagrant Up' and Have It in the Scope of Vagrantfile