Giter Site home page Giter Site logo

Exception while executing: if test ! -d \$HOME/.rbenv/plugins/ruby-build; then echo "Directory does not exist '\$HOME/.rbenv/plugins/ruby-build'" 1>&2; false; fi exit status about rbenv HOT 4 CLOSED

keithslater avatar keithslater commented on September 18, 2024
Exception while executing: if test ! -d \$HOME/.rbenv/plugins/ruby-build; then echo "Directory does not exist '\$HOME/.rbenv/plugins/ruby-build'" 1>&2; false; fi exit status

from rbenv.

Comments (4)

mattbrictson avatar mattbrictson commented on September 18, 2024

In the error message I see there is a backslash before $HOME in the shell script that is being run:

if test ! -d \$HOME/.rbenv/plugins/ruby-build; ...

Likely that is the cause of the error. The shell is looking for the literal $HOME path instead of expanding the variable.

This was discussed in #88. Unfortunately, the fix caused other problems and had to be reverted.

I think the workaround is to use ~ instead of $HOME. Can you try that? Something like this:

set :rbenv_path, "~/.rbenv"

from rbenv.

mattbrictson avatar mattbrictson commented on September 18, 2024

Also, my guess is that the escaping behavior changed in sshkit at some point, and that is why your upgrade caused this error to appear. Can you check if the sshkit version changed pre- and post-upgrade?

from rbenv.

keithslater avatar keithslater commented on September 18, 2024

Ah yeah I did look at sshkit but running 1.21.2 on both.

I set rbenv_path (with full path) and that did solve it, thanks. I did see that other thread but I think I got confused between rbenv_prefix and rbenv_path. This workaround should be fine for us. Thanks again

from rbenv.

ddoherty03 avatar ddoherty03 commented on September 18, 2024

Shouldn't you change line 43 to '~/.rbenv' to fix this before closing it? I got bit by this too without any setting for rbenv_path.

from rbenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.