简体   繁体   English

在OS X的终端机内运行'./installer -a /usr/local/rvm/rubies/ree-1.8.7-2010.02 --dont-install-useful-gems'时出错

[英]Error running './installer -a /usr/local/rvm/rubies/ree-1.8.7-2010.02 --dont-install-useful-gems ' inside Terminal on OS X

I was following a guide/tutorial from railstutorial.org here and stuck up till Ruby Version Manager (RVM) part below: 我在这里遵循railstutorial.org的指南/教程,直到下面的Ruby Version Manager(RVM)部分:

root# rvm install ree
/usr/local/rvm/rubies/ree-1.8.7-2010.02
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 /usr/local/rvm/src/ree-1.8.7-2010.02
ree-1.8.7-2010.02 - #installing 
Error running './installer -a /usr/local/rvm/rubies/ree-1.8.7-2010.02  --dont-install-useful-gems ', please check /usr/local/rvm/log/ree-1.8.7-2010.02/install.error.log
There has been an error while trying to run the ree installer. Halting the installation.

and this is the install.error.log 这是install.error.log

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

Any help? 有帮助吗? Thanks in advance! 提前致谢!

Try running: rvm update && rvm reload first. 尝试运行: rvm update && rvm reload首先rvm update && rvm reload That fixed the problem for me. 这解决了我的问题。

Two things that might be causing issues if you're on OS X 10.6: 如果您使用的是OS X 10.6,可能会导致两个问题:

  1. Do you have the latest version of the xcode dev tools installed? 您是否安装了最新版本的xcode开发工具
  2. Try running rvm_archflags="-arch x86_64" before rvm install ree 尝试在rvm install ree之前运行rvm_archflags="-arch x86_64"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM