DEV Community

Prathamesh Sonpatki
Prathamesh Sonpatki

Posted on β€’ Originally published at prathamesh.tech on

Puma installation issue due to missing ctype.h on Mac OS X

puma_http11.c:203:22: note: include the header <ctype.h> or explicitly provide a declaration for 'isspace'
Enter fullscreen mode Exit fullscreen mode

Are you facing this error recently while trying to install puma gem 4.3.5 on Mac OS X?

This issue is reported on Puma issue tracker here and fixed in version 4.3.6 and in the latest 5.0.0 release.

But if you want to fix it without updating the Puma gem version from 4.3.5, you can use run following command to update your Bundler configuration.

bundle config build.puma --with-cflags="-Wno-error=implicit-function-declaration"

Enter fullscreen mode Exit fullscreen mode

bundle install will run successfully after this.

Even better is to just update Puma to latest version which also fixes this issue.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more