Rbenv: no such command `shell'

Created on 9 Nov 2011  路  4Comments  路  Source: rbenv/rbenv

    rbenv 0.2.1
    usage: rbenv <command> [<args>]

    Some useful rbenv commands are:
       commands      List all rbenv commands
       rehash        Rehash rbenv shims (run this after installing binaries)
       global        Set or show the global Ruby version
       local         Set or show the local directory-specific Ruby version
       shell         Set or show the shell-specific Ruby version
       version       Show the current Ruby version
       versions      List all Ruby versions known by rbenv
       which         Show the full path for the given Ruby command
       whence        List all Ruby versions with the given command

    See 'rbenv help <command>' for information on a specific command.
    For full documentation, see: https://github.com/sstephenson/rbenv#readme
    vlad@pant /tmp $ rbenv versions
      1.8.7-p352
      1.9.2-p290
    * ree-1.8.7-2011.03 (set by /home/vlad/.rbenv/version)
    vlad@pant /tmp $ rbenv shell 1.9.2-p290
    rbenv: no such command `shell'
    vlad@pant /tmp $ 

Most helpful comment

This means you don't have rbenv init setup correctly.

# .bash_profile
eval "$(rbenv init -)"

All 4 comments

This means you don't have rbenv init setup correctly.

# .bash_profile
eval "$(rbenv init -)"

sorry, I think my bash does not want to load profile:

vlad@pant ~ $ tail -3 ~/.bash_profile  
[ -x /usr/bin/keychain ] && /usr/bin/keychain 
export PATH="$HOME/.rbenv/bin:$PATH" 
eval "$(rbenv init -)" 
vlad@pant ~ $  
vlad@pant ~ $  
vlad@pant ~ $  
vlad@pant ~ $ rbenv shell 
rbenv: no such command `shell' 
vlad@pant ~ $  
vlad@pant ~ $ . ~/.bash_profile  
vlad@pant ~ $  
vlad@pant ~ $ rbenv shell 
rbenv: no shell-specific version configured 
vlad@pant ~ $  
vlad@pant ~ $  

Seems like ~/.bash_profile is not sourced in your environment/OS. See #122 for discussion.

On zsh you may need to move eval "$(rbenv init -)" to .zshenv instead of .zshrc so rbenv is available in non-interactive shells.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dazza-codes picture dazza-codes  路  4Comments

ChrisBrettCA picture ChrisBrettCA  路  4Comments

nguyenhuuphuc83 picture nguyenhuuphuc83  路  3Comments

MichalMichalak picture MichalMichalak  路  3Comments

maayannaveh picture maayannaveh  路  4Comments