ruby - 安装 unf_ext (0.0.7.4) 时出错,Bundler 无法继续

标签 ruby rubygems ubuntu-14.04

我的最终目标是让它在 Ubuntu 14.04 Docker 容器中工作:https://github.com/byalextran/autoluv

当我跑

m1@9bdc67007b49:~/autoluv$ bundle install --deployment

它说:
Fetching unf_ext 0.0.7.4
Installing unf_ext 0.0.7.4 with native extensions
Errno::EACCES: Permission denied @ rb_sysopen - /home/m1/autoluv/vendor/bundle/ruby/2.4.0/gems/unf_ext-0.0.7.4/.document
An error occurred while installing unf_ext (0.0.7.4), and Bundler cannot continue.
Make sure that `gem install unf_ext -v '0.0.7.4' --source 'https://rubygems.org/'` succeeds before bundling.

但是当我跑
sudo gem install unf_ext -v '0.0.7.4' --source 'https://rubygems.org/'

unf_ext-0.0.7.4 安装正常吗?
Building native extensions.  This could take a while...                                                                             
Successfully installed unf_ext-0.0.7.4                                                                                              
1 gem installed                                                                                                                     
Installing ri documentation for unf_ext-0.0.7.4...                                                                                  
Installing RDoc documentation for unf_ext-0.0.7.4...

我无法弄清楚下一步。我试过安装 ruby​​-dev 和 gcc,但都没有帮助插入这一点:(

非常感谢任何和所有帮助!

最佳答案

我遇到了同样的问题,原因是我没有安装 bundler 需要运行的所有依赖项
只是尝试:

sudo apt-get install build-essential
然后再次运行
gem install bundler
最后
bundler

关于ruby - 安装 unf_ext (0.0.7.4) 时出错,Bundler 无法继续,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54413605/

相关文章:

python - 我应该如何在 Ubuntu 14.04 上升级 pip?

ruby-on-rails - 如何删除默认 gem? !想卸载一个 gem 1.7.7 版本的 json

ruby - 如何在 IRB 中要求 ActiveRecord

ubuntu - 我可以在 Ubuntu 中为自定义内核编译内核后创建可引导的 .iso 文件吗

ruby - 关闭后如何在 Ruby 中打开 SSL 证书验证?如果我把它关掉会怎样?

ruby-on-rails - 无法访问 RubyGems - 可能是由于 SSL?

Eclipse Kepler 不显示建议

ruby - 无法在 Windows 7 上安装 librarian-chef Recipe

ruby - 开源Ruby项目-从哪里开始?

ruby - Ruby Sequeĺ 中的空间 where 子句