# Help uninstalling rails on OSX

**URL:** <https://www.ruby-forum.com/t/help-uninstalling-rails-on-osx/117880>\
**Category:** Rails\
**Created:** [October 22, 2007, 1:45am UTC](https://www.ruby-forum.com/t/help-uninstalling-rails-on-osx/117880 "2007-10-22T01:45:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darthen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@Darthen](https://www.ruby-forum.com/u/Darthen)\
**Post date:** [October 22, 2007, 1:45am UTC](https://www.ruby-forum.com/t/help-uninstalling-rails-on-osx/117880/1 "2007-10-22T01:45:34Z")

</div>

I am on an Intel Mac and I have rails 1.2.5 installed with the  
dependencies.  
In a video-training that I’m following right now I tired to update the  
gems and the generate rdoc via the terminal. It didn’t work.  
How can I uninstall rails and all the dependencies (is this  
necessary?) and start over with a fresh install?

Thank you for helping out with this noob-question, I made a search but  
the answers are all tied to other problems and I am not experienced  
enough to understand them.

---

<div class="post-metadata">

**Author:** ![Darthen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@Darthen](https://www.ruby-forum.com/u/Darthen)\
**Post date:** [October 22, 2007, 2:42am UTC](https://www.ruby-forum.com/t/help-uninstalling-rails-on-osx/117880/2 "2007-10-22T02:42:16Z")

</div>

One fellow noob to another (I just railified my mac last week):  
Doesnt’ really answer your question, but I followed the install  
instructions at

> **[Dan Benjamin](https://danbenjamin.com)**
>
> Dan Benjamin's personal website.

And it worked like a charm, and taught me A LOT about the command line  
on my mac. (There really is a UNIX box under there). You might be able  
to see what your problem is by follwing it.

---

<div class="post-metadata">

**Author:** ![Darthen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@Darthen](https://www.ruby-forum.com/u/Darthen)\
**Post date:** [October 22, 2007, 5:41am UTC](https://www.ruby-forum.com/t/help-uninstalling-rails-on-osx/117880/3 "2007-10-22T05:41:16Z")

</div>

On Oct 21, 2007, at 7:45 PM, Darthen wrote:

> In a video-training that I’m following right now I tired to update the  
> gems and the generate rdoc via the terminal. It didn’t work.  
> How can I uninstall rails and all the dependencies (is this  
> necessary?) and start over with a fresh install?

“It didn’t work” usually implies one of four outcomes:

1. You manually put some documentation files into some files from /  
usr/local/lib/ruby, as well as copies of random system files and a  
picture of your ex-wife.

2. You had originally run ‘gem install’ with sudo, but went to run  
the doc install without sudo, thus getting a permissions error.

3. You thought about installing docs, but since you have not  
actually yet completed your psychic training, the city of Phoenix  
caught fire, and entire state of Arizona is at risk. The National  
Guard confiscated your machine and secured it in a lead box through  
which your psychic powers can do no further damage.

4. rdoc got confused by directories that looked like existing  
directories, and issued an error to that effect.

If #1 or #3, I can’t help you. Also can anyone from Phoenix please  
mail me off-list to let me know they’re ok?

If #2, run the commands with ‘sudo’ to override permissions.

If #4, rdoc will have complained that the directory looks like it’s  
already in use. Create a ‘created.rid’ file in the directory so rdoc  
knows it’s working with an rdoc directory.

If none of the above describe your problem then please describe (a)  
what you did, (b) what you expected to happen, © what actually  
happened, and (d) anything else you can think of that might be  
relevant (e.g. how you installed rails, any specific config, etc.).

-faisal

---

<div class="post-metadata">

**Author:** ![Darthen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@Darthen](https://www.ruby-forum.com/u/Darthen)\
**Post date:** [October 22, 2007, 2:07pm UTC](https://www.ruby-forum.com/t/help-uninstalling-rails-on-osx/117880/4 "2007-10-22T14:07:53Z")

</div>

On Oct 21, 4:45 pm, Darthen [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am on an Intel Mac and I have rails 1.2.5 installed with the  
> dependencies.  
> In a video-training that I’m following right now I tired to update the  
> gems and the generate rdoc via the terminal. It didn’t work.  
> How can I uninstall rails and all the dependencies (is this  
> necessary?) and start over with a fresh install?
> 
> Thank you for helping out with this noob-question, I made a search but  
> the answers are all tied to other problems and I am not experienced  
> enough to understand them.

I reinstalled OS X once cause i tried every which way of installing  
ruby over the factory install (tarball, fink, macport) and my poor  
Powerbook was confused. Didn’t take that long, but if you used source  
or macports, you can probably recover from your problems. I think all  
the common problems (path around /usr/bin for ruby, readline, OpenSSL,  
native libs like ferret and Rmagick, gems, zlib) are pretty well  
documented.

Whatever method you choose I recommend writing down exactly what you  
did for the installs, starting with the XCode install.

---

<div class="post-metadata">

**Author:** ![Darthen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@Darthen](https://www.ruby-forum.com/u/Darthen)\
**Post date:** [October 22, 2007, 1:09pm UTC](https://www.ruby-forum.com/t/help-uninstalling-rails-on-osx/117880/5 "2007-10-22T13:09:49Z")

</div>

> 1. You manually put some documentation files into some files from /  
> usr/local/lib/ruby, as well as copies of random system files and a  
> picture of your ex-wife

No. I swear I let the machine do it I didn’t touch any of those young  
files your honor!

> 1. You thought about installing docs, but since you have not  
> actually yet completed your psychic training, the city of Phoenix  
> caught fire, and entire state of Arizona is at risk.

It’s funny you should mention this psychic training, did you undergo a  
similar one?  
BTW I’m running low on black fluid can you send some my way?

> 1. rdoc got confused by directories that looked like existing  
> directories, and issued an error to that effect.

I am almost sure it’s this one. The error message mentionned something  
about not wanting to risk deleting files and asking for an alternate  
directory.  
I installed using the same tutorial as f212 on Hive Logic, but when  
the version was \< 1.2.5.  
I was updating the gem via “gem update --system” and then tried to  
generate the html version of the docs.  
How do I go about creating this .rid file then?  
Or is it not better to erase my city and so getting rid of this  
install of Rails and start rebuilding (the houses etc… and the  
install?)

Yours truely,  
Castillo

---

<div class="post-metadata">

**Author:** ![Darthen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@Darthen](https://www.ruby-forum.com/u/Darthen)\
**Post date:** [October 25, 2007, 7:15pm UTC](https://www.ruby-forum.com/t/help-uninstalling-rails-on-osx/117880/6 "2007-10-25T19:15:39Z")

</div>

gene tani wrote:

> I reinstalled OS X once cause i tried every which way of installing  
> ruby over the factory install (tarball, fink, macport) and my poor  
> Powerbook was confused.  
> […]

If you want an easy Rails installation on Mac OS, I recommend  
Locomotive, at least for development (never tried it for production).  
Prepackaged, self-contained, no external dependencies AFAIK.

## Best,

Marnen Laibow-Koser  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Darthen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@Darthen](https://www.ruby-forum.com/u/Darthen)\
**Post date:** [October 22, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/help-uninstalling-rails-on-osx/117880/7 "2007-10-22T19:18:01Z")

</div>

> > 1. rdoc got confused by directories that looked like existing  
> > directories, and issued an error to that effect.
> 
> I am almost sure it’s this one. The error message mentionned something  
> about not wanting to risk deleting files and asking for an alternate  
> directory.  
> […]  
> How do I go about creating this .rid file then?

rdoc will complain about a specific path app appearing to be an existing  
rdoc path, e.g. /usr/local/lib/ruby/gems/1.8/doc/activerecord-1.15.5/  
ri/ .  
This will be related to a specific gem (ActiveRecord, i in the example  
above. If you put a created.rid file in the directory and re-install  
the  
relevant gem the install will see the directory as an rdoc dir and  
install.  
Given the example above:

/usr/local/lib/ruby/gems/1.8/doc/activerecord-1.15.5/ri/

We’d want to:

touch /usr/local/lib/ruby/gems/1.8/doc/activerecord-1.15.5/ri/  
created.rid

Note this is just a matter of creating (touch) the file (created.rid) in  
the path that rdoc complained about.

If you installed somewhere requiring permissions then you’ll want to  
tack  
a ‘sudo’ on the front of that:

sudo touch /usr/local/lib/ruby/gems/1.8/doc/activerecord-1.15.5/ri/  
created.rid

-faisal
