2014-12-03 16 views
8

Sto cercando di rimaneggiamento rbenv dopo l'installazione di un nuovo gioiello mi da questi errori sul mio server Ubunturbenv rimaneggiamento non funziona

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

tuttavia .rbenv-spessori non esiste

risposta

16

potrebbe essere un problema con i permessi delle directory: 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. 

Inoltre, provare:

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

ed eseguire:

rbenv rehash 
+0

come posso cambiare le autorizzazioni per che dir ..Io non sono un ragazzo di ubuntu –

+0

provare questo: 'chmod o + w /home/deployer/.rbenv/ shims' o: 'chmod 777/home/deployer/.rbenv/shims' – rebelshrug

+0

lo stesso errore mostrato –

Problemi correlati