2013-04-10 191 views
0

当试图用RVM安装REE,我得到以下错误:RVM无法安装REE

Error running 'env CFLAGS=-I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include LDFLAGS=-L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib... 
please read /Users/me/.rvm/log/ree-1.8.7-2012.02/install.log 
There has been an error while trying to run the ree installer. Halting the installation. 

的install.log的说:

cc1: error: /opt/local/include: Permission denied 

没有/opt/local/include。我可以安装其他红宝石,只是不是ree。

+0

路径'/ opt/local/include'未列为命令的一部分,请更新rvm'rvm get head'并添加完整输出:'rvm install --debug ree' – mpapis 2013-04-10 19:09:19

+1

通过symlinking/opt/local/usr/local – cdb 2013-04-10 20:55:40

回答

1

我做了以下事情,在MAC中成功安装了ree。

brew install libksba autoconf automake apple-gcc42 

rvm autolibs enable 

CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 rvm reinstall ree-1.8.7-2011.03 
1

CC =的/ usr /本地/地窖/苹果gcc42/4.2.1-5666.3/bin中/ GCC-4.2 RVM安装REE-1.8.7-2012.02 --with-OpenSSL的-DIR = brew --prefix openssl