So when I try running bundle install --without production
it tells me that I am getting an error and that I need to Make sure that gem install unf_ext -v
I just have the same problem when i try to install vagrant plugin, you need to install ruby-devel
before.
Hope this help you.
I got same problem. It happens after I upgrading my macOS to newer version. Somehows, upgrading mess up /usr/local/include. So that I removed it and run install. It worked
sudo mv /usr/local/include/ /usr/local/include.delete_me
After updating to Mojave MacOS version, the ruby 'lost' the reference.
To solve
$ rvm list
In my case, the version listed was:
ruby-2.5.1 [ x86_64 ]
$ rvm use ruby-2.5.1
to change to 'current' version used
$ rvm list
again
to see the current version
=> ruby-2.5.1 [ x86_64 ]
After that everything are okay running bundle install
or bundle update
or gem install
or gem update