# Complete newb stuck on command

**URL:** <https://www.ruby-forum.com/t/complete-newb-stuck-on-command/194794>\
**Category:** Ruby\
**Created:** [September 10, 2010, 8:12pm UTC](https://www.ruby-forum.com/t/complete-newb-stuck-on-command/194794 "2010-09-10T20:12:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xogue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/ce73a5/32.png) [@xogue](https://www.ruby-forum.com/u/xogue)\
**Post date:** [September 10, 2010, 8:12pm UTC](https://www.ruby-forum.com/t/complete-newb-stuck-on-command/194794/1 "2010-09-10T20:12:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![xogue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/ce73a5/32.png) [@xogue](https://www.ruby-forum.com/u/xogue)\
**Post date:** [September 10, 2010, 8:46pm UTC](https://www.ruby-forum.com/t/complete-newb-stuck-on-command/194794/2 "2010-09-10T20:46:02Z")

</div>

-----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/](http://enigmail.mozdev.org/)

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

---

<div class="post-metadata">

**Author:** ![xogue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/ce73a5/32.png) [@xogue](https://www.ruby-forum.com/u/xogue)\
**Post date:** [September 12, 2010, 1:40am UTC](https://www.ruby-forum.com/t/complete-newb-stuck-on-command/194794/3 "2010-09-12T01:40:14Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![xogue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/ce73a5/32.png) [@xogue](https://www.ruby-forum.com/u/xogue)\
**Post date:** [September 10, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/complete-newb-stuck-on-command/194794/4 "2010-09-10T20:59:31Z")

</div>

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.
