rvm pkg install openssl [英] rvm pkg install openssl
问题描述
我试图安装openssl,但是当它说:
它需要重新安装所有的rubies:
rvm全部重新安装 - 强制
rvm重新安装ruby-2.0.0-p0 --with-gcc = gcc-4.7 --with-openssl-dir = $ rvm_path / usr
在我运行上面的代码后,我得到了您使用'gcc-4.7'请求的构建,但它不在您的路径。我已经安装了我认为已经安装了gcc的xcode。
任何人都知道这个问题的答案。
正如您在评论中所说的,您运行了,其中gcc-4.7
它什么都没有返回。这证实了RVM告诉你, gcc-4.7
不在你的 $ PATH
中。如果您知道您的计算机上存在 gcc-4.7
作为二进制文件,请将其添加到 $ PATH
目录路径中,
export PATH = $ PATH:/ path / to / the / binrary
否则,因为您已经说过哪个gcc
会返回 / usr / bin / gcc
您可以
- 省略
- with-gcc 运行
rvm重新安装...
- 指定
gcc
binary 对您的$ PATH
加上- with-gcc = gcc
或- with-gcc = / usr / bin / gcc
I tried to install openssl but when it says:
it's required to reinstall all rubies:
rvm reinstall all --force
rvm reinstall ruby-2.0.0-p0 --with-gcc=gcc-4.7 --with-openssl-dir=$rvm_path/usr
After I run the above line I get You requested building with 'gcc-4.7' but it is not in your path. I have xcode already installed which I thought has gcc already installed.
Anyone know any answers to this.
As you said in the comments, you ran which gcc-4.7
and it returned nothing. This confirms what RVM is telling you, gcc-4.7
isn't on your $PATH
. If you know you have gcc-4.7
as a binary existing on your computer somewhere, add it's directory path to $PATH
export PATH=$PATH:/path/to/the/binrary
Otherwise, since you've said which gcc
does return /usr/bin/gcc
you can either
- Omit the
--with-gcc
option when runningrvm reinstall ...
- Specify the
gcc
binary you do have on your$PATH
with--with-gcc=gcc
or--with-gcc=/usr/bin/gcc
这篇关于rvm pkg install openssl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!