From: Daniel Bye Date: 2010-07-20T21:32:11+09:00 Subject: Re: How to uninstall ruby on FreeBSD 8.0? --ctP54qlpMx3WjD+/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 20, 2010 at 06:30:13PM +0900, Wilson Wang wrote: > Dear all, >=20 > I am so stupid to install ruby in a wrong way so that I don't know how > to uninstall it from my server (OS: FreeBSD 8.0) now. >=20 > I did the following things: >=20 > 1. wget ftp://ftp.ruby-lang.org//pub/ruby/1.....1-p378.tar.gz >=20 > 2. tar xzvf ruby-1.9.1-p378.tar.gz >=20 > 3. cd ruby-1.9.1-p378 >=20 > 4. sudo make install >=20 >=20 > I just found the version I installed is not proper for my computer; it > should be for "amd64-freebsd8" rather than "x86_64-freebsd8.0". However, > I don't know how to deinstall it! There is no "deinstall" instruction in > the Makefile. Can anyone help me solve this problem? Thank you very > much! Since Ruby follows largely the same rules as FreeBSD about where stuff goes, this isn't actually too difficult to do. You need to find and delete any binaries/executables that were installed - ruby itself, irb, erb, ri, rdoc, etc. Then, delete /usr/local/lib/ruby/1.9, locate and remove man pages etc: # find /usr/local/man -name 'ruby*' -ok rm {} \; should do the trick. You may have some include files as well, which can probably be found in /usr/local/include. When you install the correct version, use the ports - that way, if you ever need to remove it again, your ports management utility will be able to find and clear everything for you. Dan --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --ctP54qlpMx3WjD+/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkxFle0ACgkQixf5fBYiFmq0WgCglhXr38Dnoi8KsGBABMESz/m3 RJMAn2Dt4vT9a9kYnrRlw/p1SWPty6oi =h6DQ -----END PGP SIGNATURE----- --ctP54qlpMx3WjD+/--