# Fixing ruby on Mac OS X Tiger

**URL:** <https://rubytalk.org/t/fixing-ruby-on-mac-os-x-tiger/30129>\
**Category:** ruby-talk\
**Created:** [19 August 2006 16:20 UTC](https://rubytalk.org/t/fixing-ruby-on-mac-os-x-tiger/30129 "2006-08-19T16:20:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krazy\_Man](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@Krazy\_Man](https://rubytalk.org/u/Krazy_Man)\
**Post date:** [19 August 2006 16:20 UTC](https://rubytalk.org/t/fixing-ruby-on-mac-os-x-tiger/30129/1 "2006-08-19T16:20:06Z")

</div>

Hey all, I'd greatly appreciate it if someone could help me with this  
problem.  
I'm running the latest Tiger update on a MacBook, and am trying to fix  
my ruby installation. I've installed ruby gems and the fixrbconfig gem,  
but when i run it I get this error:

/usr/lib/ruby/1.8/powerpc-darwin8.0/ruby.h does not exist. This  
probably means you haven't yet installed Xcode from the Tiger DVD. You  
won't be able to compile Ruby extensions without it. Please install it  
then rerun this program.

That is because I have a universal-darwin8.0 directory. I've tried the  
linking fix  
here:[http://www.smallroomsoftware.com/articles/2006/02/26/setting-up-ruby-on-rails-and-fastcgi-on-mac-os-x-server](http://www.smallroomsoftware.com/articles/2006/02/26/setting-up-ruby-on-rails-and-fastcgi-on-mac-os-x-server),  
but it didn't work, i still get the same error.

Any help is appreciated.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Chris\_Gehlker](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@Chris\_Gehlker](https://rubytalk.org/u/Chris_Gehlker)\
**Post date:** [19 August 2006 17:22 UTC](https://rubytalk.org/t/fixing-ruby-on-mac-os-x-tiger/30129/2 "2006-08-19T17:22:00Z")

</div>

The easy way is just to go to:  
\<[http://ruby-lang.org/en/&gt](http://ruby-lang.org/en/&gt); and download the latest stable or stable snapshot version of Ruby. Build and install it by cding into the ruby directory and then doing:

./configure  
make  
make test  
sudo make install

Finally make 3 text files in your home folder that will be invisible in the Finder. One will be named .bash\_profile and it will contain the line:  
source .bashrc  
The second file will be named .bashrc and will contain:  
export CLICOLOR=1  
export RI='-T -f ansi'

> **···**
>
> On Aug 19, 2006, at 9:20 AM, Krazy Man wrote:
> 
> > Hey all, I'd greatly appreciate it if someone could help me with this  
> > problem.  
> > I'm running the latest Tiger update on a MacBook, and am trying to fix  
> > my ruby installation. I've installed ruby gems and the fixrbconfig gem,  
> > but when i run it I get this error:
> > 
> > /usr/lib/ruby/1.8/powerpc-darwin8.0/ruby.h does not exist. This  
> > probably means you haven't yet installed Xcode from the Tiger DVD. You  
> > won't be able to compile Ruby extensions without it. Please install it  
> > then rerun this program.
> > 
> > That is because I have a universal-darwin8.0 directory. I've tried the  
> > linking fix  
> > here:[Small Room Software || Tom Riley](http://www.smallroomsoftware.com/articles/2006/02/26/setting-up-ruby-on-rails-and-fastcgi-on-mac-os-x-server),  
> > but it didn't work, i still get the same error.
> 
> ##  
> # DELUXE-USR-LOCAL-BIN-INSERT  
> # (do not remove this comment)  
> ##  
> echo $PATH | grep -q -s "/usr/local/bin"  
> if [$? -eq 1] ; then  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PATH="/usr/local/bin:$PATH"  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;export PATH  
> fi
> 
> Finally, make a file called .inputrc containing  
> set completion-ignore-case On
> 
> It's a good idea to end each of these text files with a carriage return. Some of the above has nothing to do with Ruby per say but it does have to do with making unix tools usable on HFS+. Other things are more complex than they need to be just for OS X but I find that I can carry these files around with me and they work on other unixish systems.
> 
> HTH  
> --  
> Vegetarians eat Vegetables, Humanitarians frighten me
