简体   繁体   English

Butchered Ruby on Rails安装

[英]Butchered Ruby on Rails Installation

So first off, this is my first post on stackoverflow, so take it easy on me ;) 所以首先,这是我关于stackoverflow的第一篇文章,对我来说这很容易;)

I'm a new Fedora user (f20) and I'm still in the early stages of getting used to linux. 我是Fedora的新用户(f20),但仍处于适应Linux的早期阶段。 I tried to install Ruby on Rails (newest Ruby—2.1.1—and newest rails—4.1.0), using several guides I found online, which required for me to download and install several other packages. 我尝试使用在网上找到的几本指南来安装Ruby on Rails(最新的Ruby(2.1.1版)和最新的Rails(4.1.0版)),这对于我来说需要下载和安装其他软件包。 Several errors occurred towards the end of my installation so I thought I'd uninstall it and start from scratch using RVM which I hadn't done in the first place. 在安装结束时发生了一些错误,因此我认为我应该先卸载它,然后再使用RVM从头开始。

I tried removing the gems I installed using gem uninstall [gem_name] but I wasn't having any luck with many of them. 我尝试删除使用gem uninstall [gem_name]安装的gem uninstall [gem_name]但其中很多都运气不佳。 So I decided to just sudo yum remove ruby in the hopes it would remove everything I had installed, but to my dismay the directory /usr/share/ruby still exists which makes me think that my uninstallation was incomplete. 因此,我决定只是sudo yum remove ruby ,希望它能删除我已安装的所有内容,但令我沮丧的是/usr/share/ruby目录仍然存在,这使我认为我的卸载未完成。

Is there some why to completely remove any shred of ruby, rails, and gems from my computer so I can reinstall ruby on rails? 为什么有一些原因要从计算机上完全清除任何红宝石,铁轨和宝石碎片,以便我可以在铁轨上重新安装红宝石? Is it even necessary for me to do so in order to install a lower version of ruby (2.1.0)? 为了安装较低版本的ruby(2.1.0),我是否甚至有必要这样做?

Thanks in advance. 提前致谢。

Ok, after reading the comments I figured out the problem! 好的,阅读评论后,我发现了问题所在!

I ran a yum list | grep ruby 我做了一个yum list | grep ruby yum list | grep ruby and similar searches and found that I had not, contrary to what I believed, removed all the packages I had installed. yum list | grep ruby和类似的搜索,发现我并没有像我所认为的那样删除我已安装的所有软件包。 After deleting the remaining packages my usr/share/ruby folder vanished to the sound of my yipee's! 删除剩余的软件包后,我的usr/share/ruby文件夹消失了,我的爷爷的声音!

Thanks 谢谢

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

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