We've moved discussions to Discord

Error installing puma (solved)

Jose Balaguer
Hi Chris Oliver . When installing gems (on mac OS Big Sur) I got this:

Installing puma 4.3.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /Users/.../jumpstart-pro-myapp/vendor/bundle/ruby/2.6.0/gems/puma-4.3.0/ext/puma_http11
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20201116-24090-pyul38.rb extconf.rb
checking for BIO_read() in -lcrypto... no
checking for BIO_read() in -llibeay32... no
creating Makefile

current directory: /Users/.../jumpstart-pro-myapp/vendor/bundle/ruby/2.6.0/gems/puma-4.3.0/ext/puma_http11
make "DESTDIR=" clean

current directory: /Users/.../jumpstart-pro-myapp/vendor/bundle/ruby/2.6.0/gems/puma-4.3.0/ext/puma_http11
make "DESTDIR="
compiling http11_parser.c
compiling io_buffer.c
compiling mini_ssl.c
compiling puma_http11.c
puma_http11.c:203:22: error: implicitly declaring library function 'isspace' with type 'int (int)'
[-Werror,-Wimplicit-function-declaration]
  while (vlen > 0 && isspace(value[vlen - 1])) vlen--;
                     ^
puma_http11.c:203:22: note: include the header <ctype.h> or explicitly provide a declaration for 'isspace'
1 error generated.
make: *** [puma_http11.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/.../jumpstart-pro-myapp/vendor/bundle/ruby/2.6.0/gems/puma-4.3.0 for
inspection.
Results logged to
/Users/.../jumpstart-pro-myapp/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-20/2.6.0/puma-4.3.0/gem_make.out

An error occurred while installing puma (4.3.0), and Bundler cannot continue.
Make sure that `gem install puma -v '4.3.0' --source 'https://rubygems.org/'` succeeds before bundling. 

At this moment I can't run my Jumpstart copy. Any idea?
William Kennedy
It's probably to do with big sur 

You could try bumping the version of puma and see does it compile. 

Try running the following to install the suggested version of puma according to puma:

gem install puma -v '4.3.5'

If that doesn't work, you may have to bump it up in the Gemfile 
Jose Balaguer
Thanks  William Kennedy
I'm pretty sure is big sur too.
I'll try this. I was hesitant to touch Chris code :)
William Kennedy
No worries. There was a lot of changes with Big Sur. It's ok to change the jumpstart code slightly to get it working. The benefit of jumpstart is that a lot of repetitive work is done so you can concentrate on the problem domain i.e things like payments, accounts etc...
Jose Balaguer
It worked
Notifications
You’re not receiving notifications from this thread.