Sunday, 15 September 2013

rbenv: no such command "install" even though ruby-build is installed -



rbenv: no such command "install" even though ruby-build is installed -

i'm trying ruby 2.1.4 installed via rbenv client project.

though i've been able install ruby versions through rbenv, after upgrading yosemite, maintain getting next error:

rbenv: no such command 'install'

after digging around, saw lots of tips how "install" comes ruby-build plugin, installed via homebrew:

which ruby-build /usr/local/bin/ruby-build

i installed rbenv via homebrew, when seek utilize rbenv, get:

rbenv () { typeset command command="$1" if [ "$#" -gt 0 ] shift fi case "$command" in (rehash|shell) eval `rbenv "sh-$command" "$@"` ;; (*) command rbenv "$command" "$@" ;; esac }

i have run brew update , brew upgrade rbenv ruby-builder, , tells me date.

below total $path:

zsh: no such file or directory: /usr/local/var/rbenv/shims:/usr/local/var/rbenv/shims:/usr/local/bin:/usr/local/sbin:/users/dannycox/.rbenv/shims:/users/dannycox/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/x11/bin:/usr/local/go/bin:/users/dannycox/.rbenv/shims:/users/dannycox/.rbenv/bin

update: found reply little deeper digging on github showed signs of promise, failed solve issue rbenv. https://github.com/sstephenson/rbenv/issues/610#issuecomment-56240018

i believe 2.1.4 installed on machine, installed here: installed ruby 2.1.4 /users/dannycox/.rubies/ruby-2.1.4

as result, bundler won't work new ruby 2.0 version , next error when seek gem install bundle:

fetching: bundler-1.7.6.gem (100%) error: while executing gem ... (gem::filepermissionerror) don't have write permissions /library/ruby/gems/2.0.0 directory

still need help identify why ruby-build isn't playing nice rbenv...

make sure install optional step 5 in instructions:

git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

install ruby-build, provides rbenv install command simplifies process of installing new ruby versions.

ruby-on-rails ruby osx rbenv

No comments:

Post a Comment