2012-05-13 130 views
3

我期待安裝紅寶石1.9.3。我現在有紅寶石1.9.2安裝麻煩安裝紅寶石1.9.3

的Mac OS X 的Xcode 4.3.2版 我有傾倒的Xcode

的所有以前的版本我看過一噸的文章和我嘗試了那些步驟在https://stackoverflow.com/a/9651747/1392225

詳細介紹這是錯誤,我有

ruby-1.9.3-p125 - #fetching 
ruby-1.9.3-p125 - #extracted to /Users/kai/.rvm/src/ruby-1.9.3-p125 (already extracted) 
WARN: Patch 'xcode-debugopt-fix-r34840.diff' not found. 
ruby-1.9.3-p125 - #configuring 
ruby-1.9.3-p125 - #compiling 
ERROR: Error running 'make ', please read /Users/kai/.rvm/log/ruby-1.9.3-p125/make.log 
ERROR: There has been an error while running make. Halting the installation. 

錯誤日誌似乎指向這個

compiling readline.c 
readline.c: In function ‘username_completion_proc_call’: 
readline.c:1499: error: ‘username_completion_function’ undeclared (first use in this function) 
readline.c:1499: error: (Each undeclared identifier is reported only once 
readline.c:1499: error: for each function it appears in.) 
make[2]: *** [readline.o] Error 1 
make[1]: *** [ext/readline/all] Error 2 
make: *** [build-ext] Error 2 

任何想法?

回答

-1

http://rvm.io一起去吧,這可能是今天在您的計算機上安裝Ruby的最簡單和最好的方式。其他人可能會建議rbenv或自制軟件或其他數據包管理員。這些可能也很好。

3

看起來你已經在使用RVM以及具有readline的包裝問題 看看這說明:

https://rvm.io/packages/readline/

+0

我沒有安裝的readline。奇怪爲什麼失敗。 –

1

您是否安裝readline的包?

嘗試安裝1.9.3-p194(不是p125)與最新的RVM穩定分支,它不需要osx補丁上面提到的輸出。請仔細按照我在the article中描述的步驟操作,如果仍有問題,請提供您運行的命令(除了輸出)。

+1

真棒。這工作。我似乎1.9.3-p125不適合我。萬分感謝 –

6

我得到了同樣的錯誤。我解決它使用以下命令:

rvm reinstall 1.9.3 --with-readline-dir=/usr/local/Cellar/readline/6.2.4

只是使用輸入行通過自制軟件安裝,多見於https://rvm.io/packages/readline/