[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

fixrbconfig on Mac OS X Tiger

Bill Whitacre

9/24/2006 2:15:00 AM

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:

<http://www.smallroomsoftware.com/articles/2006/02/26/settin...
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 Whitacre
bw@his.com




6 Answers

ryan.raaum@gmail.com

9/24/2006 8:17:00 PM

0


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:
>
> <http://www.smallroomsoftware.com/articles/2006/02/26/settin...
> 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:
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_m...

2. For a quick start:
http://locomotive...

-r

--

full disclosure: option #2 is my app

> Thanks.
>
> bw
>
> ---
>
> Bill Whitacre
> bw@his.com

Hans Fugal

9/26/2006 2:13:00 PM

0

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.

Reprisal

9/26/2006 4:40:00 PM

0

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


Hans Fugal

9/27/2006 1:41:00 PM

0

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


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.

Gary Wright

9/27/2006 7:48:00 PM

0


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

9/27/2006 7:52:00 PM

0

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