gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 09:28:42 25 4
gpt4 key购买 nike

我的最终目标是让它在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com