# Fixrbconfig on Mac OS X Tiger

**URL:** <https://rubytalk.org/t/fixrbconfig-on-mac-os-x-tiger/31277>\
**Category:** ruby-talk\
**Created:** [24 September 2006 02:15 UTC](https://rubytalk.org/t/fixrbconfig-on-mac-os-x-tiger/31277 "2006-09-24T02:15:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_Whitacre](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@Bill\_Whitacre](https://rubytalk.org/u/Bill_Whitacre)\
**Post date:** [24 September 2006 02:15 UTC](https://rubytalk.org/t/fixrbconfig-on-mac-os-x-tiger/31277/1 "2006-09-24T02:15:05Z")

</div>

I'm trying to get the Mac OS X Ruby fix to run -- from p.24 of "Agile Web Development with Rails"

I can d/l it ok with

sudo gem install fixrbconfig

but then when I run sudo fixrbconfig I get:

> ====================  
> /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.

I tried the 'fix' for this listed 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&gt);

but when I do that I get:

pb17-upstairs:/usr/lib/ruby/1.8 bw$ ln -s universal-darwin8.0/\* powerpc-darwin8.0  
ln: powerpc-darwin8.0: No such file or directory

When I try it with sudo, I get the same thing:

pb17-upstairs:/usr/lib/ruby/1.8 bw$ sudo ln -s universal-darwin8.0/\* powerpc-darwin8.0  
ln: powerpc-darwin8.0: No such file or directory

That's as far as Googling got me. Is there another source I'm overlooking?

Thanks.

bw

> **···**
>
> ---
> 
> Bill Whitacre  
> bw@his.com

---

<div class="post-metadata">

**Author:** ![Openmacnews](https://avatars.discourse-cdn.com/v4/letter/o/59ef9b/32.png) [@Openmacnews](https://rubytalk.org/u/Openmacnews)\
**Post date:** [24 September 2006 02:22 UTC](https://rubytalk.org/t/fixrbconfig-on-mac-os-x-tiger/31277/2 "2006-09-24T02:22:44Z")

</div>

bill,

> **···**
>
> On 9/23/06, Bill Whitacre \<bw@his.com\> wrote:
> 
> > \> ====================  
> > \> /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.
> 
> try this:
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cp /path/to/your/ruby-1.8.x/source/ruby.h /usr/lib/ruby/1.8/powerpc-  
> darwin8.0/ruby.h
> 
> hth,
> 
> richard

---

<div class="post-metadata">

**Author:** ![ryan.raaum](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@ryan.raaum](https://rubytalk.org/u/ryan.raaum)\
**Post date:** [24 September 2006 20:20 UTC](https://rubytalk.org/t/fixrbconfig-on-mac-os-x-tiger/31277/3 "2006-09-24T20:20:15Z")

</div>

Bill Whitacre wrote:

> I'm trying to get the Mac OS X Ruby fix to run -- from p.24 of "Agile  
> Web Development with Rails"
> 
> I can d/l it ok with
> 
> sudo gem install fixrbconfig
> 
> but then when I run sudo fixrbconfig I get:
> 
> \> ====================  
> \> /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.
> 
> I tried the 'fix' for this listed 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 when I do that I get:
> 
> pb17-upstairs:/usr/lib/ruby/1.8 bw$ ln -s universal-darwin8.0/\*  
> powerpc-darwin8.0  
> ln: powerpc-darwin8.0: No such file or directory
> 
> When I try it with sudo, I get the same thing:
> 
> pb17-upstairs:/usr/lib/ruby/1.8 bw$ sudo ln -s universal-darwin8.0/\*  
> powerpc-darwin8.0  
> ln: powerpc-darwin8.0: No such file or directory
> 
> That's as far as Googling got me. Is there another source I'm  
> overlooking?

If you're willing to drop the ill-advised "fixing" of Apple's ruby  
installation, I would suggest either:

1. For building from scratch:

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

2. For a quick start:  
[http://locomotive.raaum.org](http://locomotive.raaum.org)

-r

> **···**
>
> --
> 
> full disclosure: option #2 is my app
> 
> > Thanks.
> > 
> > bw
> > 
> > ---
> > 
> > Bill Whitacre  
> > bw@his.com

---

<div class="post-metadata">

**Author:** ![Hans\_Fugal3](https://avatars.discourse-cdn.com/v4/letter/h/34f0e0/32.png) [@Hans\_Fugal3](https://rubytalk.org/u/Hans_Fugal3)\
**Post date:** [26 September 2006 14:15 UTC](https://rubytalk.org/t/fixrbconfig-on-mac-os-x-tiger/31277/4 "2006-09-26T14:15:16Z")

</div>

Bill Whitacre wrote:

> I'm trying to get the Mac OS X Ruby fix to run -- from p.24 of "Agile Web Development with Rails"
> 
> I can d/l it ok with
> 
> sudo gem install fixrbconfig
> 
> but then when I run sudo fixrbconfig I get:
> 
> > ====================  
> > /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.

Did you install XCode? Maybe you have an intel mac, not a powerpc mac? I don't know if the script does or doesn't work with intel macs, but it worked for my powerpc iBook G4. I'm getting a MacBook soon, so I'll be watching the thread with interest. I'm probably going to just compile my own ruby though. It's too late for me on the iBook to go that route, but I think it's a bit cleaner.

---

<div class="post-metadata">

**Author:** ![Reprisal](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Reprisal](https://rubytalk.org/u/Reprisal)\
**Post date:** [26 September 2006 16:39 UTC](https://rubytalk.org/t/fixrbconfig-on-mac-os-x-tiger/31277/5 "2006-09-26T16:39:58Z")

</div>

Ruby is also available via DarwinPorts which is pretty nice. I'd recommend doing a clean install either via port or manually compiling it. It will take more CPU time but probably less of your own time and provide a cleaner result in the end. With out the developer tools you wont be able to do anything, because you wont have gcc. Grab the tools from your install disk or [http://developer.apple.com/tools/](http://developer.apple.com/tools/) .

> **···**
>
> On Sep 26, 2006, at 10:15 AM, Hans Fugal wrote:
> 
> > Bill Whitacre wrote:
> > 
> > > I'm trying to get the Mac OS X Ruby fix to run -- from p.24 of "Agile Web Development with Rails"  
> > > I can d/l it ok with  
> > > sudo gem install fixrbconfig  
> > > but then when I run sudo fixrbconfig I get:
> > > 
> > > > ====================  
> > > > /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.
> > 
> > Did you install XCode? Maybe you have an intel mac, not a powerpc mac? I don't know if the script does or doesn't work with intel macs, but it worked for my powerpc iBook G4. I'm getting a MacBook soon, so I'll be watching the thread with interest. I'm probably going to just compile my own ruby though. It's too late for me on the iBook to go that route, but I think it's a bit cleaner.

---

<div class="post-metadata">

**Author:** ![Hans\_Fugal3](https://avatars.discourse-cdn.com/v4/letter/h/34f0e0/32.png) [@Hans\_Fugal3](https://rubytalk.org/u/Hans_Fugal3)\
**Post date:** [27 September 2006 13:45 UTC](https://rubytalk.org/t/fixrbconfig-on-mac-os-x-tiger/31277/6 "2006-09-27T13:45:13Z")

</div>

Reprisal wrote:

> Ruby is also available via DarwinPorts which is pretty nice. I'd recommend doing a clean install either via port or manually compiling it. It will take more CPU time but probably less of your own time and provide a cleaner result in the end. With out the developer tools you wont be able to do anything, because you wont have gcc. Grab the tools from your install disk or [http://developer.apple.com/tools/](http://developer.apple.com/tools/) .

I actually did use the ports version for awhile at the beginning and it only confused things. It will take less me-time to install, yes, but it will not (IMHO) be a cleaner result.

---

<div class="post-metadata">

**Author:** ![Gary\_Wright](https://avatars.discourse-cdn.com/v4/letter/g/58956e/32.png) [@Gary\_Wright](https://rubytalk.org/u/Gary_Wright)\
**Post date:** [27 September 2006 19:47 UTC](https://rubytalk.org/t/fixrbconfig-on-mac-os-x-tiger/31277/7 "2006-09-27T19:47:37Z")

</div>

I just went the other way, moving from compiling on my own to using darwin ports. I did have to install the newest version of Xcode but after that everything just worked on both an Intel MacBook and an older PowerPC Imac.

Gary Wright

> **···**
>
> On Sep 27, 2006, at 9:45 AM, Hans Fugal wrote:
> 
> > Reprisal wrote:
> > 
> > > Ruby is also available via DarwinPorts which is pretty nice. I'd recommend doing a clean install either via port or manually compiling it. It will take more CPU time but probably less of your own time and provide a cleaner result in the end. With out the developer tools you wont be able to do anything, because you wont have gcc. Grab the tools from your install disk or [http://developer.apple.com/tools/](http://developer.apple.com/tools/) .
> > 
> > I actually did use the ports version for awhile at the beginning and it only confused things. It will take less me-time to install, yes, but it will not (IMHO) be a cleaner result.

---

<div class="post-metadata">

**Author:** ![Amos\_King](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Amos\_King](https://rubytalk.org/u/Amos_King)\
**Post date:** [27 September 2006 19:51 UTC](https://rubytalk.org/t/fixrbconfig-on-mac-os-x-tiger/31277/8 "2006-09-27T19:51:52Z")

</div>

Why not just grab locomotive. It is nice, easy, and seperates your  
development enviroment from the rest of the mac. And if you don't  
like something you can just drag the folder to the trash and start  
over.

> **···**
>
> On 9/27/06, gwtmp01@mac.com \<gwtmp01@mac.com\> wrote:
> 
> > On Sep 27, 2006, at 9:45 AM, Hans Fugal wrote:
> > 
> > \> Reprisal wrote:  
> > \>\> Ruby is also available via DarwinPorts which is pretty nice. I'd  
> > \>\> recommend doing a clean install either via port or manually  
> > \>\> compiling it. It will take more CPU time but probably less of  
> > \>\> your own time and provide a cleaner result in the end. With out  
> > \>\> the developer tools you wont be able to do anything, because you  
> > \>\> wont have gcc. Grab the tools from your install disk or http://  
> > \>\> developer.apple.com/tools/ .  
> > \>  
> > \> I actually did use the ports version for awhile at the beginning  
> > \> and it only confused things. It will take less me-time to install,  
> > \> yes, but it will not (IMHO) be a cleaner result.
> > 
> > I just went the other way, moving from compiling on my own to using  
> > darwin ports. I did have to install the newest version of Xcode but  
> > after that everything just worked on both an Intel MacBook and an  
> > older PowerPC Imac.
> > 
> > Gary Wright
> 
> --  
> Amos King  
> USPS  
> Programmer/Analyst  
> St. Louis, MO
