# Newby Help

**URL:** <https://www.ruby-forum.com/t/newby-help/146339>\
**Category:** Ruby\
**Created:** [August 20, 2008, 4:32am UTC](https://www.ruby-forum.com/t/newby-help/146339 "2008-08-20T04:32:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgreen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Post date:** [August 20, 2008, 4:32am UTC](https://www.ruby-forum.com/t/newby-help/146339/1 "2008-08-20T04:32:07Z")

</div>

I’ve just found ruby and want to teach it to my son & myself, and have  
found several tutorials that will work fine, I’ve loaded ruby on my pc  
(the newest version) I’ve written a small sample program prog.rb - when  
i try to run it from the command prompt it doesnt recognize the  
command… It’s been a dozen years since I’ve programmed anythig, and  
was never good, but think it may have something to do with my default  
paths? Please help me just get ruby running properly - i tried looking  
through the posts, but didnt find anything in my searching, but i’m sure  
it because I didnt know where to look. Many many thanks.  
-Ron

---

<div class="post-metadata">

**Author:** ![rgreen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Post date:** [August 20, 2008, 4:47am UTC](https://www.ruby-forum.com/t/newby-help/146339/2 "2008-08-20T04:47:21Z")

</div>

From: Ron Gunsolus [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]

# i try to run it from the command prompt it doesnt recognize the

# command…

you forgot to post your sample program and the output/result/errors

kind regards -botp

---

<div class="post-metadata">

**Author:** ![rgreen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Post date:** [August 20, 2008, 4:50am UTC](https://www.ruby-forum.com/t/newby-help/146339/3 "2008-08-20T04:50:16Z")

</div>

Ron Gunsolus wrote:

> I’ve just found ruby and want to teach it to my son & myself, and have  
> found several tutorials that will work fine, I’ve loaded ruby on my pc  
> (the newest version) I’ve written a small sample program prog.rb - when  
> i try to run it from the command prompt it doesnt recognize the  
> command… It’s been a dozen years since I’ve programmed anythig, and  
> was never good, but think it may have something to do with my default  
> paths? Please help me just get ruby running properly - i tried looking  
> through the posts, but didnt find anything in my searching, but i’m sure  
> it because I didnt know where to look. Many many thanks.  
> -Ron

You need to give more information such as which platform (Windows, OSX,  
Linux), version, version of Ruby, how you installed it and how you tried  
to launch the program.

Also, these links might help you.

> **[How to Enable PHP in MacOS](https://www.thoughtco.com/how-to-install-php-on-a-mac-2694012)**
>
> PHP comes installed on Macs but you have to enable it with Apache before you can use it. Learn how.

> **[What Every Coder Should Know About Running Ruby Scripts](https://www.thoughtco.com/using-the-command-line-2908368)**
>
> Learn how to use the command line interface on Windows, Linux, and OS X to run Ruby scripts and use the interactive Ruby program.

---

<div class="post-metadata">

**Author:** ![rgreen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Post date:** [August 20, 2008, 5:00am UTC](https://www.ruby-forum.com/t/newby-help/146339/4 "2008-08-20T05:00:48Z")

</div>

Ron Gunsolus wrote:

> i try to run it from the command prompt it doesnt recognize the  
> command…

Enter these on the command line:

> ruby -v  
> ruby prog.rb

The first should report your ruby --version, and the second has a shot  
at  
running the program!

Next, if you use the One Click Installer, run its Scite program. That  
lets you  
just hit each time you change the code.
