Newbie Question - Problems with Ruby on My Mac

Hi guys,

I just bought a Mac Powerbook with OS 10.2 installed. I installed the
ruby developer pack. I am having some trouble trying to build the
MySQL Ruby Module (2.4.3A). Every time I run the command: ruby
extconf.rb I get the following error message:

can’t find header files for ruby.

Has anyone run into this problem before on and how did you get around
it?

Thanks,
     John Carnell
     john.carnell@netchange.us

For more than using basic Ruby, I have found the pre-installed Ruby
inadequate (I think the Ruby used is built without all of the
libraries). I change the pre-installed Ruby items to .bak and
then install Ruby 1.6.8 (which installs into /usr/local/bin – the
pre-installed Ruby is in /usr/bin). You will have to make sure that
/usr/local/bin is in your path. Try ‘echo $path’ in your terminal
shell to check this.

Before doing the above, however, you should make sure you have Mac OS X
developer tools installed. The most recent version (December 2002) is
on the Apple Developer Connection website. You may have to register to
download the developer tools, but there is no charge for registration.

There are also Ruby/Mac OS X resources at

···

On Monday, December 30, 2002, at 03:40 PM, John Carnell wrote:

Hi guys,

I just bought a Mac Powerbook with OS 10.2 installed. I installed the
ruby developer pack. I am having some trouble trying to build the
MySQL Ruby Module (2.4.3A). Every time I run the command: ruby
extconf.rb I get the following error message:

can’t find header files for ruby.

Has anyone run into this problem before on and how did you get around
it?

Thanks,
     John Carnell
     john.carnell@netchange.us

I don’t know what is the ruby developer pack, so I may
misunderstand your problems.

After that, if you are using the pre-installed ruby 1.6.7 on Mac
OS X 10.2, check which BSDSDK.pkg has been installed or not as
follows:

$ which ruby
/usr/bin/ruby
$ ls -d /Library/Receipts/BSD.pkg
/Library/Receipts/BSD.pkg
$ lsbom /Library/Receipts/BSD.pkg/Contents/Archive.bom | grep ‘bin/ruby’
./usr/bin/ruby 100755 0/0 595412 0
$ ls -d /Library/Receipts/BSDSDK.pkg
/Library/Receipts/BSDSDK.pkg
$ lsbom /Library/Receipts/BSDSDK.pkg/Contents/Archive.bom | grep ruby.h
./usr/lib/ruby/1.6/powerpc-darwin6.0/ruby.h 100644 0/0 16251 2986920000

BSD.pkg and BSDSDK.pkg are enclosed with Mac OS X 10.2.

cheers,

···

At Tue, 31 Dec 2002 05:40:19 +0900, John Carnell wrote:

I just bought a Mac Powerbook with OS 10.2 installed. I installed the
ruby developer pack. I am having some trouble trying to build the
MySQL Ruby Module (2.4.3A). Every time I run the command: ruby
extconf.rb I get the following error message:

can’t find header files for ruby.


FUJIMOTO Hisakuni

Thanks for the quick feedback. I will try your suggestions and go from there. :slight_smile:

 Cheers,
      John Carnell

Mark Wilson mwilson13@cox.net wrote in message news:75354C06-1C43-11D7-9DC7-000393876156@cox.net

···

For more than using basic Ruby, I have found the pre-installed Ruby
inadequate (I think the Ruby used is built without all of the
libraries). I change the pre-installed Ruby items to .bak and
then install Ruby 1.6.8 (which installs into /usr/local/bin – the
pre-installed Ruby is in /usr/bin). You will have to make sure that
/usr/local/bin is in your path. Try ‘echo $path’ in your terminal
shell to check this.

Before doing the above, however, you should make sure you have Mac OS X
developer tools installed. The most recent version (December 2002) is
on the Apple Developer Connection website. You may have to register to
download the developer tools, but there is no charge for registration.

There are also Ruby/Mac OS X resources at

http://www.rubygarden.org/ruby?RubyOnMacintosh

On Monday, December 30, 2002, at 03:40 PM, John Carnell wrote:

Hi guys,

I just bought a Mac Powerbook with OS 10.2 installed. I installed the
ruby developer pack. I am having some trouble trying to build the
MySQL Ruby Module (2.4.3A). Every time I run the command: ruby
extconf.rb I get the following error message:

can’t find header files for ruby.

Has anyone run into this problem before on and how did you get around
it?

Thanks,
     John Carnell
     john.carnell@netchange.us