Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 轨道:rbenv重新灰化不工作(rbenv垫片存在)_Ruby On Rails_Ruby_Ubuntu_Rbenv - Fatal编程技术网

Ruby on rails 轨道:rbenv重新灰化不工作(rbenv垫片存在)

Ruby on rails 轨道:rbenv重新灰化不工作(rbenv垫片存在),ruby-on-rails,ruby,ubuntu,rbenv,Ruby On Rails,Ruby,Ubuntu,Rbenv,在安装了一个新的gem之后,我正在尝试重新安装rbenv 它在我的ubuntu服务器上给了我这些错误 rbenv: cannot rehash: /home/deployer/.rbenv/shims/.rbenv-shim exists 但是,rbenv垫片不存在可能是: FWIW-我也有这个问题,并且必须更改目录上检查.rbenv垫片的权限。。。这样它就可以写信给dir,停止抱怨 此外,请尝试: rm/home/deployer/.rbenv/shimmes/.rbenv shim 并

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

 rbenv: cannot rehash: /home/deployer/.rbenv/shims/.rbenv-shim exists
但是,rbenv垫片不存在

可能是:

FWIW-我也有这个问题,并且必须更改目录上检查.rbenv垫片的权限。。。这样它就可以写信给dir,停止抱怨

此外,请尝试:

rm/home/deployer/.rbenv/shimmes/.rbenv shim
并运行:

rbenv再灰化

我如何更改该目录的权限..我不是一个ubuntu的家伙试试这个:
chmod o+w/home/deployer/.rbenv/shimes
或者:
chmod 777/home/deployer/.rbenv/.rbenv/
的输出是什么?让我们一起来吧。我不得不删除它抱怨的文件夹。