0

尝试使用 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。

4

2 回答 2

1

CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 rvm install ree-1.8.7-2012.02 --with-openssl-dir=brew --prefix openssl

于 2014-01-02T12:27:41.480 回答
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
于 2013-05-10T01:12:02.387 回答