Complete newb stuck on command

going through chris pine tutorial and am stuck on command line. when i
get to the folder that has my script and i enter calc.rb it opens my pdf
reader for whatever reason and says it cannot run. ive been stuck at the
beginning for hours with various problems… should i just delete and
reinstall? btw i am total layman, this is my first attempt with ruby or
any prog language… thanks for help

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 10.09.2010 20:12, schrieb Brandon Bpolenz:

going through chris pine tutorial and am stuck on command line. when i
get to the folder that has my script and i enter calc.rb it opens my pdf
reader for whatever reason and says it cannot run. ive been stuck at the
beginning for hours with various problems… should i just delete and
reinstall? btw i am total layman, this is my first attempt with ruby or
any prog language… thanks for help

Try executing your file via

ruby calc.rb

on the command line.

Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyKfK8ACgkQDYShvwAbcNnL5wCeIQcLdvWB4l5yZaYz8km7encl
YSQAnitI5WRkgHLZ4qX8j4lRhApcwfcA
=2oSo
-----END PGP SIGNATURE-----

Alex S. wrote:

Sounds like you’re on Windows? Might want to deassociate .rb file
extensions w/ your pdf reader. Should be able to check it via
Explorer->Tools->Options->File Types.

got it… not sure how that happened
thanks…

Sounds like you’re on Windows? Might want to deassociate .rb file
extensions w/ your pdf reader. Should be able to check it via
Explorer->Tools->Options->File Types.