Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨:) 我手动设置了 Ruby 1.9.1。我已经通过安装它
./configure --prefix=/opt make make install
生成的 Makefile 中不存在目标“卸载”... 如何正确卸载?
PS:我也认为有必要移除所有的宝石。 为此,我使用
#!/bin/sh gem list --local | grep [^\*] | cut -d ' ' -f 1 | xargs gem uninstall
我对安装在/opt. 我解决了这个问题
/opt
/tmp/ruby
在 unix 上,您可以先尝试:
$ find /tmp/ruby | sed "s/\/tmp\/ruby\//\/opt\//"
仔细查看列表,如果它看起来有效,请使用:
$ find /tmp/ruby | sed "s/\/tmp\/ruby\//\/opt\//" | xargs rm
要真正删除文件...