Rbenv: 'shell'๊ณผ ๊ฐ™์€ ๋ช…๋ น์ด ์—†์Šต๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2011๋…„ 11์›” 09์ผ  ยท  4์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: 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<strong i="5">@pant</strong> /tmp $ rbenv versions
      1.8.7-p352
      1.9.2-p290
    * ree-1.8.7-2011.03 (set by /home/vlad/.rbenv/version)
    vlad<strong i="6">@pant</strong> /tmp $ rbenv shell 1.9.2-p290
    rbenv: no such command `shell'
    vlad<strong i="7">@pant</strong> /tmp $ 

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

์ด๋Š” rbenv init ์„ค์ •์ด ์ œ๋Œ€๋กœ ๋˜์ง€ ์•Š์•˜์Œ์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค.

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

๋ชจ๋“  4 ๋Œ“๊ธ€

์ด๋Š” rbenv init ์„ค์ •์ด ์ œ๋Œ€๋กœ ๋˜์ง€ ์•Š์•˜์Œ์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค.

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

์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค. ๋‚ด bash๊ฐ€ ํ”„๋กœํ•„์„ ๋กœ๋“œํ•˜๊ณ  ์‹ถ์ง€ ์•Š๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

vlad<strong i="6">@pant</strong> ~ $ tail -3 ~/.bash_profile  
[ -x /usr/bin/keychain ] && /usr/bin/keychain 
export PATH="$HOME/.rbenv/bin:$PATH" 
eval "$(rbenv init -)" 
vlad<strong i="7">@pant</strong> ~ $  
vlad<strong i="8">@pant</strong> ~ $  
vlad<strong i="9">@pant</strong> ~ $  
vlad<strong i="10">@pant</strong> ~ $ rbenv shell 
rbenv: no such command `shell' 
vlad<strong i="11">@pant</strong> ~ $  
vlad<strong i="12">@pant</strong> ~ $ . ~/.bash_profile  
vlad<strong i="13">@pant</strong> ~ $  
vlad<strong i="14">@pant</strong> ~ $ rbenv shell 
rbenv: no shell-specific version configured 
vlad<strong i="15">@pant</strong> ~ $  
vlad<strong i="16">@pant</strong> ~ $  

~/.bash_profile ์ด(๊ฐ€) ๊ท€ํ•˜์˜ ํ™˜๊ฒฝ/OS์—์„œ ์ œ๊ณต๋˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ํ† ๋ก ์€ #122๋ฅผ ์ฐธ์กฐํ•˜์‹ญ์‹œ์˜ค.

zsh์„์—์„œ ๋‹น์‹ ์€ ์ด๋™ํ•ด์•ผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค eval "$(rbenv init -)" ์— .zshenv ๋Œ€์‹  .zshrc rbenv ๋น„ ๋Œ€ํ™” ํ˜• ์‰˜์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰