user2012677
user2012677

Reputation: 5745

Please add the directory containing “/Users/me/.rvm/bin/rvm-auto-ruby

I am trying to my ruby code in TextMate and I am planning to use a specific gem with a bundle I have. When I try to run my ruby code with command + R, I get the following error.

What is wrong with my path?

The current PATH is:

/usr/bin
/bin
/usr/sbin
/sbin
/Users/me/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin
/Users/me/.rvm/bin/rvm-auto-ruby

Please add the directory containing “/Users/me/.rvm/bin/rvm-auto-ruby
/Users/me/.rvm/bin/rvm-auto-ruby” to PATH in TextMate's Shell Variables preferences.

However, as you can see, /Users/me/.rvm/bin/rvm-auto-ruby is added.

If I add just directory, not the rvm-auto-ruby file

The current PATH is:

/usr/bin
/bin
/usr/sbin
/sbin
/Users/me/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin
/Users/me/.rvm/bin

Please add the directory containing “/Users/me/.rvm/bin/rvm-auto-ruby” to PATH in TextMate's Shell Variables preferences.

I get same error.

SOLUTION: (needed to change the order)

/Users/me/.rvm/bin/rvm-auto-ruby:/Users/me/.rvm/bin:$PATH

Upvotes: 0

Views: 66

Answers (1)

anothermh
anothermh

Reputation: 10554

Set your path to include:

/Users/me/.rvm/bin

Not:

/Users/me/.rvm/bin/rvm-auto-ruby

The former is the path to the directory containing the executable. The latter is the complete path to the binary. Your $PATH should include directories, not files.

Upvotes: 1

Related Questions