简体   繁体   English

卸载rvm可以杀死ruby版本吗?

[英]uninstalling rvm can kill ruby versions?

I was forced to uninstall then reinstall rvm but now when I run rvm use 2.0.0 , I get a message telling me that this version is not installed. 我被迫卸载然后重新安装rvm但是现在当我运行rvm use 2.0.0 ,我收到一条消息,告诉我未安装此版本。 But, it is uninstalled if and only if the rvm unistall all killed the ruby 2.0.0. 但是,仅当rvm unistall all杀死ruby 2.0.0.时,才将rvm unistall all ruby 2.0.0. that was installed. 已安装。 Is it possible ? 可能吗 ?

By default all rubies / gems are stored inside of $rvm_path directory which is called 'self contained' and means removing RVM will also remove all related stuff. 默认情况下,所有红宝石/宝石都存储在$rvm_path目录(称为“自包含”)中,这意味着删除RVM也会删除所有相关内容。

It is configurable, you can choose to install RVM rubies and gemset locations with: 它是可配置的,您可以选择通过以下方式安装RVM红宝石和gemset位置:

rvm_rubies_path=/opt/rubies
rvm_gems_path=/opt/rvm_gemsets

put it either in ~/.rvmrc or /etc/rvmrc - this directories have to exist and need to be writable for users that will use them, use chmod g+ws and a group that is common for multiple users so different users can nstall and remove rubies / gems. 将其放在~/.rvmrc/etc/rvmrc -该目录必须存在,并且对于使用它们的用户必须是可写的,请使用chmod g+ws和多个用户通用的组,以便不同的用户可以安装并去除红宝石/宝石。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM