捆绑包安装失败,安装 unf_ext (0.0.6) 时出现错误

Bundle install failed getting error occurred while installing unf_ext (0.0.6)

我已经在 Mac 上尝试 运行 bundle install,但不断收到以下消息:

An error occurred while installing unf_ext (0.0.6), and Bundler cannot continue.
Make sure that gem install unf_ext -v '0.0.6' succeeds before bundling.

但是当我安装 unf_ext(0.0.6) 时,我收到一条错误消息:

ERROR:  Error installing unf_ext:
ERROR: Failed to build gem native extension.

make install failed, exit code 2.

如有任何帮助,我们将不胜感激,

谢谢。

我找到了解决方案:

brew install coreutils

安装了缺少的 gmkdir

我在 red hat 上遇到了类似的问题,并通过安装 gcc-c++ 修复了它

yum install gcc-c++