簡體   English   中英

Rbenv和ruby在Ubuntu上構建

[英]Rbenv and ruby build on Ubuntu

我已經在Ubuntu DISTRIB_RELEASE 16.04上安裝了rbenv和ruby-build,但是無論何時啟動終端,我都會在終端上收到以下消息。 任何幫助將不勝感激。

# Load rbenv automatically by appending
# the following to your profile:

eval "$(rbenv init -)"
export PATH="/home/godfred/.rbenv/shims:${PATH}"
export RBENV_SHELL=bash
source '/home/godfred/.rbenv/libexec/../completions/rbenv.bash'
command rbenv rehash 2>/dev/null
rbenv() {
local command
command="${1:-}"
if [ "$#" -gt 0 ]; then
shift
fi
case "$command" in
rehash|shell)
eval "$(rbenv "sh-$command" "$@")";;*)
command rbenv "$command" "$@";;
esac
}
# Load rbenv automatically by appending
# the following to your profile:

eval "$(rbenv init -)"

將這些配置添加到您的.bashrc文件中。 這些將在終端啟動期間加載rbenv。

if [ -d $HOME/.rbenv ]; then
    export RBENV_ROOT="$HOME/.rbenv"
    export PATH="$RBENV_ROOT/bin:$PATH"
    eval "$(rbenv init -)"
fi

注意:您的rbenv安裝路徑可以不同。 在將它們設置為.bashrc文件之前,請進行檢查。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM