New to Ruby

Hi,

I tried to run the “hello” example and got an error:

hello.rb:10: [BUG] Bus Error ruby 1.6.6 (2001-12-26) [powerpc-darwin5.2]
Abort trap

Any ideas.

Thanks,
Nasser Alhawash

Nasser Alhawash wrote:

Nasser Alhawash

Welcome to Ruby!

Ruby 1.6.6 is a very old version of Ruby. I recommend that you uninstall
it entirely and install the newest version. If you’re comfortable
building Ruby from source you can get the newest version (1.8.5) here:
http://www.ruby-lang.org. From the Ruby home page, click Downloads and
then download the “Stable version” of Ruby 1.8.5. Or you can use
DarwinPorts or Fink to install Ruby. There is no disk-image installer
for Ruby on OS X.

If you need help post your questions here.

Nasser Alhawash wrote:

Nasser Alhawash
Hello,

I can recommend this guide to update your ruby version on your Mac.

Go up to “RubyGems”. After that you may skip the rest cause for now -
if you just want to learn ruby - that will do it. You will need your
Mac OS X DVD and install XCode from there to get GCC 4 for PPC. (GCC
is a compiler).

If you are new to the Unix/Linux World this might help as well:

Alternative method:
You may also try to update ruby via Macports (formely Darwinports):

Good Luck.

Nasser Alhawash wrote:

Hi,

I tried to run the “hello” example and got an error:

hello.rb:10: [BUG] Bus Error ruby 1.6.6 (2001-12-26) [powerpc-darwin5.2]
Abort trap

Any ideas.

A) What hello example?

B) Ruby 1.6.6 is older than the hills. Get a current version?

David V.