我正在嘗試遵循Ruby on Rails from Hivelogic.com的安裝說明。我之前在安裝OSX時沒有遇到過麻煩。這次在Snow Leopard上安裝時遇到了麻煩。無法在OS X上安裝Ruby
在安裝Ruby的「make」步驟結束時,出現一些與readline相關的錯誤。不知道這是否重要,但他們在這裏:
readline.c: In function ‘username_completion_proc_call’:
readline.c:730: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:730: error: (Each undeclared identifier is reported only once
readline.c:730: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [all] Error 1
當我嘗試sudo使安裝,我得到更多的錯誤。當我「ruby」時,我得到/ usr/local/bin/ruby,這是正確的。但只要我嘗試使用ruby,我就會收到以下消息:「您需要使用Rosetta軟件運行ruby。Rosetta安裝程序位於Mac OS X安裝光盤的」可選安裝「中。」這很奇怪,但我安裝了Rosetta,並且能夠繼續。
除了:我仍然安裝了Ruby1.8.6(不是1.8.7)。 「ruby -v」報告1.8.6。 1.8.6是從本機上的Leopard安裝遷移的版本(我假設)。換句話說:我的新Ruby在哪裏?我如何獲得正確安裝的1.8.7(由當前版本的Rails所要求)?
在superuser.com上這可能會更好。 – 2009-11-15 04:51:44