Open mech opened 9 years ago
@mech Try this: ln -s /usr/local/Cellar/rbenv/0.4.0/bin ~/.rbenv/bin
(I used this for test deploying to a development osx machine https://github.com/standout/rails_db_dump_restore/blob/master/test/dummy/config/deploy.rb, so that I could make sure my cap db:pull
task works. :)
I had to set
set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} /usr/local/bin/rbenv exec"
in my deploy.rb - this way its not tied to a version specific rbenv, if Homebrew updates it
@scmx said (thank you) .../0.4.0/...
but my version is 1.1.1
Check your version with ls /usr/local/Cellar/rbenv/
This was the answer for me:
ln -s /usr/local/Cellar/rbenv/1.1.1/bin ~/.rbenv/bin
I don't know if this is the best long-term solution (what happens when rbenv
is updated?) but it works now.
@dombarnes, that didn't work for me. I got
bundle stderr: bash: /usr/local/bin/rbenv: No such file or directory
even though /usr/local/bin/rbenv
symlinks to ../Cellar/rbenv/1.1.1/bin/rbenv
I'm using ZSH, maybe that's why? @mech, are you using ZSH?
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 useIf I set as this:
I am unable to make it work with these:
I always will encounter this:
It is quite obvious that I do not have this path:
~/.rbenv/bin/