我已經安裝了octopress但是,使其運行(剛啓動電腦上去後),我需要做的每一次:爲什麼在啓動到計算機後需要執行source〜/ .bash_profile?
source ~/.bash_profile
除非我這樣做,當我跑我得到一個錯誤:
rake generate
錯誤:
bash: /usr/local/bin/rake: /usr/bin/ruby1.9.1: bad interpreter: No such file or directory
我有Ubuntu的LTS 12.0,我已經通過這個question走了,但因爲我不知道的殼型材和外殼的基礎知識我合作你不明白答案。請給我啓發一下。
我心中唯一的解決方案似乎有一個cron作業計劃重新啓動,所以每次重新啓動時,它都會執行源〜/ .bash_profile。請建議是否有其他解決方案。
謝謝!
你確定它是〜/ .bash_profile嗎?因爲在你的文本中你寫了〜/ bash_profile(沒有點)。 –
是你的默認shell bash嗎? – Jeremy
@Jeremy:12.04。默認爲bash(別名爲sh)。 – gnometorule