pur*_*nic 5 mac ruby ruby-on-rails macos
我正在为 rvm 苦苦挣扎。这不是我第一次安装 rvm,也不是我第一次遇到它的问题,但事实证明这个问题是正确的;并且所有看起来相关的文章要么完全过时,要么没有解决。
我已经安装了 rvm,但是当我尝试安装任何版本的 Ruby 时,我收到一个错误。
这是我正在使用的命令:
$ rvm package install readline
$ rvm install ree -C --with-readline-dir=$HOME/.rvm/usr
ree-1.8.7-2010.02 - #fetching (ruby-enterprise-1.8.7-2010.02)
ree-1.8.7-2010.02 - #extracting ruby-enterprise-1.8.7-2010.02 to /Users/Richard/.rvm/src/ree-1.8.7-2010.02
ree-1.8.7-2010.02 - #installing
Error running './installer -a /Users/Richard/.rvm/rubies/ree-1.8.7-2010.02 --dont-install-useful-gems ', please check /Users/Richard/.rvm/log/ree-1.8.7-2010.02/install*.log
There has been an error while trying to run the ree installer. Halting the installation.
Run Code Online (Sandbox Code Playgroud)
并在日志文件中:
ossl_x509revoked.c:64: warning: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type
readline.c: In function ‘username_completion_proc_call’:
readline.c:734: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:734: error: (Each undeclared identifier is reported only once
readline.c:734: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [all] Error 1
Run Code Online (Sandbox Code Playgroud)
鉴于我明确告诉 rvm 使用另一个安装的 readline,有谁知道我哪里出错了?
达夫
更新到rvm最新版本
rvm get stable
Run Code Online (Sandbox Code Playgroud)
然后运行 rvm reload
rvm reload
Run Code Online (Sandbox Code Playgroud)
这似乎已经解决了这个问题。
| 归档时间: |
|
| 查看次数: |
3207 次 |
| 最近记录: |