尝试使用 RVM 安装 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。
Added export ARCHFLAGS="-arch x86_64"
to my .bash_login
file.
我也尝试过rvm install 1.9.3 --with-gcc=clang
但我遇到了同样的错误,由于支持有限,我宁愿避免这样做。
有人有可行的程序吗?
Edit:
相关开放 Ruby 票证的链接
我解决了这个问题。 RVM 无法识别安装的 readline。有趣的是,readline 竟然搞砸了这么多人的安装。
此命令将 rvm 指向正确的 readline 位置
rvm install 1.9.3 --with-gcc=clang --with-readline-dir=$rvm_path/usr
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)