Installing unf_ext 0.0.7.2 not working

2019-02-12 10:46发布

问题:

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 0.0.7.2 succeeds before bundling. I have not gotten this error before while installing other gems, but only when I try and install gem stripe(which is used for receiving user payments and such).

Could someone explain what could be causing this kind of problem. All help is greatly appreciated.

Thanks, -Aaron

EDIT

What I did to solve my problems was updating all of my gems to their current and latest version. Then when I ran bundle install --without production everything seemed to install perfectly fine after that.

回答1:

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



回答2:

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 => ruby-2.5.1 [ x86_64 ]

to see the current version

After that everything are okay running bundle install or bundle update or gem install or gem update



回答3:

I just have the same problem when i try to install vagrant plugin, you need to install ruby-devel before. Hope this help you.



回答4:

I resolved this issue by upgrading bundler. Simply run:

gem install bundler

which fetches the latest bundler. Then, Try running:

bundle install


回答5:

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.



回答6:

I solved this issue by running

sudo xcodebuild -license



回答7:

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


回答8:

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...