0
我正在關注如何在rails上設置ruby的教程。 http://blog.parsalabs.com/blog/2013/08/27/setting-up-a-ruby-on-rails-4-development-environment-on-a-clean-mac-os-x-installation/終端.bash_profile被搞亂了。如何恢復?
我跑:
$ brew install rbenv
$ touch ~/.bash_profile
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
,現在我的終端已停止工作。
$ emacs ~/.bash_profile
-bash:emacs的:命令未找到
當我打開一個新的終端窗口。我得到以下信息:
Last login: Mon Sep 23 23:25:39 on ttys001
-bash: n: command not found
export PATH=/usr/local/bin:/Users/Marcus/.local/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
-bash: export: `export PATH="/Users/Marcus/.rbenv/shims:${PATH}"
source "/usr/local/Cellar/rbenv/0.4.0/libexec/../completions/rbenv.bash"
rbenv rehash 2>/dev/null
rbenv() {
typeset command
command="$1"
if [ "$#" -gt 0 ]; then
shift
fi
case "$command" in
rehash|shell)
eval `rbenv "sh-$command" "[email protected]"`;;
*)
command rbenv "$command" "[email protected]";;
esac
}': not a valid identifier
刪除您'。 bash_profile'並重新開始 –
我該怎麼做? – Marcus
修補匠工具。謝謝 – Marcus