2014-12-03 37 views
8

staram się powtarzać rbenv po zainstalowaniu nowego gem daje mi te błąd na moim serwerze ubunturbenv powtarzać nie działa

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

jednak .rbenv-podkładki nie istnieje

Odpowiedz

16

Może być problem z uprawnieniami katalogu: https://github.com/sstephenson/rbenv/issues/238#issuecomment-11903292

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. 

spróbuj też:

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

i uruchom:

rbenv rehash 
+0

Jak mogę zmienić uprawnienia dla tego katalogu ..I nie jestem ubuntu facet –

+0

spróbuj tego: 'chmod o + w /home/deployer/.rbenv/ shims' lub: 'chmod 777/home/deployer/.rbenv/shims' – rebelshrug

+0

ten sam błąd wyświetlany –