[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

New to Ruby

Nasser Alhawash

11/5/2006 8:38:00 PM

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 trapAny ideas.Thanks,Nasser Alhawash

3 Answers

David Vallner

11/5/2006 8:53:00 PM

0

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 Vallner

Tim Hunter

11/5/2006 11:33:00 PM

0

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.
>
> Thanks,
> 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.rub.... 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.

Jonas Hartmann

11/5/2006 11:40:00 PM

0

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.
>
> Thanks,
> Nasser Alhawash

Hello,


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

http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_m...

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:

http://hivelogic.com/articles/2005/11/29/using...


Alternative method:
You may also try to update ruby via Macports (formely Darwinports):
http://www.mac...

Good Luck.