`sleepy_penguin` compile error on Mac
Posted in
Ruby 程式語言
sleepy_penguin compile error on Mac
If you hit into a compile error looks like this while compiling
sleepy_penguin on Mac:
kqueue.c:408:19: error: incompatible function pointer types passing
You can pass -Wno-incompatible-function-pointer-types to the C compiler to
ignore this error. You can do this by running:
gem install sleepy_penguin -- --with-cflags=-Wno-incompatible-function-pointer-types
When you run bundle install it should reuse gems installed via gem install.
If it’s not reusing the gems, see the next section about setting up Ruby
environment. If you prefer to do this via bundle install, you can pass the
flag by setting:
bundle config build.sleepy_penguin --with-cflags=-Wno-incompatible-function-pointer-types
This will create a .bundle/config file remembering this flag and next time
when you run bundle install it’ll pass it to sleepy_penguin.
1 Like
0 Boosts
Comments (0)