capistrano / capistrano/rbenv

Does Homebrew installed rbenv supported?

Open
#52 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Ruby
Stars
217
Forks
59
PR merge metrics
No merged PRs in 30d

Description

I am using Mac OS X as server and not Linux. I am wondering if using Homebrew to install rbenv, will it be supported? I can't seems to get it done no matter what `rbenv_custom_path` I use

```
/usr/local/bin/rbenv
/Users/mech/.rbenv/shims/ruby
/Users/mech/.rbenv/versions/2.1.4/bin/ruby
```

If I set as this:

```
set :rbenv_ruby, '2.1.4'
set :rbenv_custom_path, '/Users/mech/.rbenv'
```

I am unable to make it work with these:

```
set :rbenv_custom_path, '/usr/local/Cellar/rbenv/0.4.0'
set :rbenv_path, '/usr/local/Cellar/rbenv/0.4.0' # Is there such a thing?
```

I always will encounter this:

```
bash: /Users/mech/.rbenv/bin/rbenv: No such file or directory
```

It is quite obvious that I do not have this path: `~/.rbenv/bin/`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how rbenv_custom_path and rbenv_path are interpreted for the listed macOS and Homebrew paths. Reproduce the bash error with the provided rbenv_ruby value, then determine whether Homebrew-installed rbenv can be supported and document the correct configuration or the limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.