note: passing
argument to parameter 'func' here
void rb_hash_foreach(VALUE hash, int (*func)(VALUE key, VALUE val, VALUE arg), VALUE arg);
^
1 error generated.
make: *** [posix-spawn.o] Error 1
make failed, exit code 2
To get round this error I had to run: gem install posix-spawn -- --with-cflags="-Wno-incompatible-function-pointer-types" before running bundle
When running
bundle
, I was faced with the following error:Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
To get round this error I had to run:
gem install posix-spawn -- --with-cflags="-Wno-incompatible-function-pointer-types"
before runningbundle
Answer found here: https://github.com/rtomayko/posix-spawn/issues/92
Hope this helps someone