rvm pkg install openssl

自作多情 提交于 2019-12-11 07:17:41

问题


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.


回答1:


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 running rvm reinstall ...
  • Specify the gcc binary you do have on your $PATH with --with-gcc=gcc or --with-gcc=/usr/bin/gcc


来源:https://stackoverflow.com/questions/15213268/rvm-pkg-install-openssl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!