[英]How to re-install Ruby, Rails, Homebrew etc from scratch
I completely messed up my local environment following a few tutorials on how to get Rails, Python and POW/Apache to play nice. 我按照一些有关如何使Rails,Python和POW / Apache玩得很好的教程彻底弄乱了本地环境。 Now I cant call commands like rails new without getting bundle errors, failed installations of gems galore. 现在,我无法调用rails之类的命令,而不会出现捆绑错误,无法安装gem galore的错误。 I want to start from scratch, but dont know how to remove all the junk from my machine and start from a clean slate. 我想从头开始,但不知道如何从机器中清除所有垃圾并从干净的石板开始。 Any help is greatly appreciated as my machine seems screwed at this point. 非常感谢您的帮助,因为我的机器此时似乎已拧紧。
Hate to say it, but a complete system refresh is likely the fastest way to get things working again. 讨厌这么说,但是完整的系统刷新可能是使事情再次正常运行的最快方法。 Assuming you're on Mountain Lion, here's a great article on how to make an installation drive out of it. 假设您使用的是Mountain Lion,这是一篇很棒的文章,介绍了如何从中使用安装驱动器。
http://reviews.cnet.com/8301-13727_7-57479690-263/how-to-create-an-os-x-10.8-mountain-lion-install-drive/ http://reviews.cnet.com/8301-13727_7-57479690-263/how-to-create-an-os-x-10.8-mountain-lion-install-drive/
I'm pretty sure there's a way to burn a dvd too, I'd google it. 我很确定也有刻录DVD的方法,我会用Google搜索它。 Lastly, since you do own a license, there are plenty of sources out there where you could snag a DVD image without feeling too bad about yourself. 最后,由于您确实拥有许可证,因此有很多资源可以获取DVD映像而不会对自己造成不良影响。
IF you installed everything with homebrew and rvm, you can just uninstall the two and start over... If you've done anything else, you would do well to refresh your system. 如果您使用homebrew和rvm安装了所有程序,则只需卸载两者并重新开始...如果您做了其他任何事情,则可以很好地刷新系统。 Google the uninstall instructions. Google的卸载说明。
If you need to rebuild your system, what I usually do is create a new partition, install clean to that, get rid of the old partition, then resize the new partition. 如果需要重建系统,我通常要做的是创建一个新分区,对其进行干净安装,摆脱旧分区,然后调整新分区的大小。 A little wonky, but I don't have to much about with creating bootable DVDs and such. 有点古怪,但是我不必过多地创建可启动DVD等。 Plus you get the niceness of a completely clean install. 另外,您还可以享受完全干净的安装的好处。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.