嘗試使用RVM安裝1.9.3。無法在乾淨的Lion安裝上安裝Ruby 1.9.3
收到這些錯誤在我make.log
compiling readline.c
readline.c:1499:9: error: use of undeclared identifier 'username_completion_function'; did you mean 'rl_username_completion_function'?
rl_username_completion_function);
^
readline.c:69:42: note: expanded from macro 'rl_username_completion_function'
# define rl_username_completion_function username_completion_function
^
/usr/local/include/readline/readline.h:443:14: note: 'rl_username_completion_function' declared here
extern char *rl_username_completion_function PARAMS((const char *, int));
^
1 error generated.
make[2]: *** [readline.o] Error 1
make[1]: *** [ext/readline/all] Error 2
make: *** [build-ext] Error 2
我在SL之前遇到過這個問題。我安裝了Xcode 4.3.2(也安裝了命令行工具)我已安裝readline 6.2.2。
將export ARCHFLAGS="-arch x86_64"
添加到我的.bash_login
文件中。
我也試過rvm install 1.9.3 --with-gcc=clang
但我得到了同樣的錯誤,我寧願避免這樣做,因爲有限的支持。
任何人都有一個可行的程序?
編輯:
Link to related open Ruby ticket
什麼「有限支持」你在說什麼RVM?截至[1.9.3-p125](http://www.ruby-lang.org/en/news/2012/02/16/ruby-1-9-3-p125-is-released/)clang正式發佈支持的。 – 2012-04-27 01:28:08
哦,在那種情況下,它很好,但是當我嘗試使用clang進行安裝時,仍然出現相同的錯誤 – 2012-04-27 01:38:37
您是否已經手動安裝了readline?畢竟,它確實帶有OS X。 – 2012-04-27 01:40:46