之前 Mac 還沒更新到 Yosemite 時,已經建立過一次 ROR 的環境,但不知怎麼搞的,這陣子要重拾 Ruby On Rails 卻一直無法建立新專案 ,頻頻出現錯誤,brew doctor 也一堆 warring,搞了一整天,好不容易在 http://localhost:3000/ 看見畫面了,寫下來紀錄一下。 起因: 無法建立 ROR 專案: Rails is not currently installed on this system. To get the latestversion, simply type: $ sudo gem install rails You can then rerun your "rails" command. 照著指示執行: $ sudo gem install rails 也是錯誤百出: ERROR: '/bin' is not writable - it is required for Homebrew, try 'brew doctor' to fix it! Warning .... Warning .... 瘋狂鬼擋牆,一怒之下決定直接砍掉 user/include 整個資料夾,一切重頭開始(淚) TIP: user/include 在 mac 裡是隱藏檔,要說密語下指令才能看見: mac 下顯示隱藏檔: $ defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder 恢復原狀,mac 下不顯示隱藏檔: $ defaults...