gpt4 book ai didi

ruby-on-rails - rails : rbenv rehash not working (rbenv-shim exists)

转载 作者:数据小太阳 更新时间:2023-10-29 06:41:04 27 4
gpt4 key购买 nike

我正在尝试在安装新 gem 后重新哈希 rbenv它在我的 ubuntu 服务器上给了我这些错误

 rbenv: cannot rehash: /home/deployer/.rbenv/shims/.rbenv-shim exists

但是 .rbenv-shims 不存在

最佳答案

可能是 issue with directory permissions @ sstephenson/rbenv :

FWIW - I also had this problem, and had to change permissions on the dir where it was checking for the .rbenv-shim... so it could write to the dir, so it stopped complaining.

另外,试试:

rm /home/deployer/.rbenv/shims/.rbenv-shim

然后运行:

rbenv rehash

关于ruby-on-rails - rails : rbenv rehash not working (rbenv-shim exists),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27276807/

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