尝试使用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 :(得分: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 :(得分: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
< / p>