how install rvm on RHL7 using centos repo

丶灬走出姿态 提交于 2019-12-22 13:46:35

问题


How to install rvm(ruby) on RHL7 using centos repo.

I know if we are using centos repository we should be using centos OS and not RedHat, but we have a proprietary software that require Redhat.

when I try to install ruby 1.93 using rvm I got this:

rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/6/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for redhat.
Unable to locate SystemId file. Is this system registered?

Our client does not have registered system with redhat, So I did configure centos repository.

But how can I tell RVM to use this centos repository?


回答1:


I managed the problem running:

rvm autolibs read-only

In that way rvm do not try to download the dependencies from redhat. But it tell us what is missing, so we can install what is missing manually with yum install from centos repository.




回答2:


RedHat uses the concept of software collection to offer update packages for Ruby, Python, etc: softwarecollections

For your case, they have software collection for Ruby193 and Ruby22.

On each page you will find instructions on how to use it.



来源:https://stackoverflow.com/questions/33652294/how-install-rvm-on-rhl7-using-centos-repo

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