Jill448
Jill448

Reputation: 1793

ruby cmd not working in folders rbenv: ruby: command not found

ruby cmd works in the below folder. But when I get into another folder, it wont work.

  pwd
 /Users/abc/git/lib

 ruby --version
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin19]

When I do the same command , I get error

pwd
/Users/abc/git/lib/test

ruby --version
rbenv: ruby: command not found

The `ruby' command exists in these Ruby versions:
  2.5.3

Upvotes: 1

Views: 558

Answers (1)

Giuseppe Schembri
Giuseppe Schembri

Reputation: 857

It is weired but it could be a different .local file inside the test folder. Run rbenv version in both folder so we can see if there is a local setting for rbenv.

Upvotes: 1

Related Questions