# Fixrbconfig on Mac OS X Tiger

**URL:** <https://www.ruby-forum.com/t/fixrbconfig-on-mac-os-x-tiger/69798>\
**Category:** Ruby\
**Created:** [September 24, 2006, 4:16am UTC](https://www.ruby-forum.com/t/fixrbconfig-on-mac-os-x-tiger/69798 "2006-09-24T04:16:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [September 24, 2006, 4:16am UTC](https://www.ruby-forum.com/t/fixrbconfig-on-mac-os-x-tiger/69798/1 "2006-09-24T04:16:37Z")

</div>

I’m trying to get the Mac OS X Ruby fix to run – from p.24 of “Agile  
Web D. 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?

Thanks.

bw

* * *

Bill W.  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [September 24, 2006, 4:24am UTC](https://www.ruby-forum.com/t/fixrbconfig-on-mac-os-x-tiger/69798/2 "2006-09-24T04:24:38Z")

</div>

bill,

On 9/23/06, Bill W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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:

```
 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:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [September 24, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/fixrbconfig-on-mac-os-x-tiger/69798/3 "2006-09-24T22:22:33Z")

</div>

Bill W. wrote:

> > /usr/lib/ruby/1.8/powerpc-darwin8.0/ruby.h does not exist. This
> 
> 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](http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger)

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

-r

–

full disclosure: option #2 is my app

---

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [September 26, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/fixrbconfig-on-mac-os-x-tiger/69798/4 "2006-09-26T18:41:32Z")

</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/](http://developer.apple.com/)  
tools/ .

---

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [September 27, 2006, 3:46pm UTC](https://www.ruby-forum.com/t/fixrbconfig-on-mac-os-x-tiger/69798/5 "2006-09-27T15:46:58Z")

</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:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [September 26, 2006, 4:16pm UTC](https://www.ruby-forum.com/t/fixrbconfig-on-mac-os-x-tiger/69798/6 "2006-09-26T16:16:59Z")

</div>

Bill W. 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.

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:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [September 27, 2006, 9:54pm UTC](https://www.ruby-forum.com/t/fixrbconfig-on-mac-os-x-tiger/69798/7 "2006-09-27T21:54:00Z")

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

---

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [September 27, 2006, 9:47pm UTC](https://www.ruby-forum.com/t/fixrbconfig-on-mac-os-x-tiger/69798/8 "2006-09-27T21:47:59Z")

</div>

On Sep 27, 2006, at 9:45 AM, Hans F. wrote:

> 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 W.
