看板 Ruby 關於我們 聯絡資訊
用 homebrew 裝的吧? 記得加 PATH: echo 'export PATH=/usr/local/Cellar/ruby/1.9.2-p290/bin:$PATH' >> ~/.bash_profile export PATH=/usr/local/Cellar/ruby/1.9.2-p290/bin:$PATH ※ 引述《YUPTT (ZaC)》之銘言: : 環境: : Ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0] : OS X Lion : 狀況: : 我按照ihower的教學,剛安裝完Rails : 但我輸入 rails -v : 出現以下錯誤訊息?請問我該如何解決? : Rails is not currently installed on this system. To get the latest version, simply type: : $ sudo gem install rails : You can then rerun your "rails" command. : 附錄: : 這是我的 $PATH : /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.32.229.184
YUPTT:不好意思還是不行! 11/07 17:34
godfat:與其動 PATH, 我可能比較建議 brew link 再跑一次? 11/07 19:28
YUPTT:問題解決了 謝謝大家 11/07 21:31
coldollsheep:怎麼解決的 是否告知一下呢? 11/07 22:40
YUPTT:我找到 rails的路徑 然後直接在/usr/locate/bin ln過去 11/07 22:58
YUPTT:可是這感覺顯然不是個好方法 == 11/07 22:58