Fail to Bundle Install Puma 4.3.5 or Gem Puma with Ruby-2.6.6 on MACos-10.15.6

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.

  1. Be sure you have xcode-select installed
xcode-select --install

  1. Be sure your version of puma installs
gem install puma -v 'x.y.z'

  1. 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



Leave a reply



Submit