2013-04-10 133 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