New to Ruby

  • Thread starter Nasser Alhawash
  • Start date
N

Nasser Alhawash

Hi,=0A=0AI tried to run the "hello" example and got an error:=0A=0Ahello.rb=
:10: [BUG] Bus Error ruby 1.6.6 (2001-12-26) [powerpc-darwin5.2]=0AAbort tr=
ap=0A=0AAny ideas.=0A=0AThanks,=0ANasser Alhawash=0A=0A=0A
 
D

David Vallner

--------------enig263CB6802B04233754DDD5A4
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Nasser said:
Hi,
=20
I tried to run the "hello" example and got an error:
=20
hello.rb:10: [BUG] Bus Error ruby 1.6.6 (2001-12-26) [powerpc-darwin5.2= ]
Abort trap
=20
Any ideas.
=20

A) What hello example?

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

David Vallner


--------------enig263CB6802B04233754DDD5A4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFFTk8Xy6MhrS8astoRAoA+AJ4+lVdTtvDR3DKNwz9NxPDhHkvj1gCcD1zP
F6AQQZHZcwRqhYdWADwlPo4=
=NiAg
-----END PGP SIGNATURE-----

--------------enig263CB6802B04233754DDD5A4--
 
T

Timothy Hunter

Nasser said:
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.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.
 
J

Jonas Hartmann

Nasser said:
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_mysql_tiger

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_usr_local


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

Good Luck.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,218
Messages
2,571,123
Members
47,725
Latest member
Rudy

Latest Threads

Top