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 ran into this deploying to a remote box. As suggested in comments, I was able to fix it by opening a console session on the affected box and running:
gem update rails
gem install unf_ext -v '0.0.7.2'
And I was then able to deploy successfully.
What worked for me on macOS was to run:
sudo xcode-select -switch /
As detailed in this answer: https://stackoverflow.com/a/57217502/6007104
I solved this issue by running
sudo xcodebuild -license
I was having the exact same issue trying to install this specific gem and version as well. Turns out my VPS would run out of RAM while compiling and quit. I just killed off a few processes I could live without for a few minutes and it worked...
I resolved this issue by upgrading bundler. Simply run:
gem install bundler
which fetches the latest bundler. Then, Try running:
bundle install
This error can come across due to various reasons, so it's not easy to tell what might have really caused, preventing you from bundle install, so try the following fixes, if not worked please give more details on errors that appears :) If the error was because of missing gmkdir, then run the following command:
brew install coreutils
If the error was due to missing C++ headers related then run the bellow command:
yum install gcc-c++
Also have a look at the developer's home page given below to check you meet all dependencies required:
unf_ext 0.0.7.2 : Unicode Normalization Form support library for CRuby