Newby Help

Discussion in 'Ruby' started by Ron Gunsolus, Aug 20, 2008.

  1. Ron Gunsolus

    Ron Gunsolus Guest

    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
    --
    Posted via http://www.ruby-forum.com/.
    Ron Gunsolus, Aug 20, 2008
    #1
    1. Advertising

  2. RnJvbTogUm9uIEd1bnNvbHVzIFttYWlsdG86cmd1bnNvbHVzQHlhaG9vLmNvbV0gDQojIGkgdHJ5
    IHRvIHJ1biBpdCBmcm9tIHRoZSBjb21tYW5kIHByb21wdCBpdCBkb2VzbnQgcmVjb2duaXplIHRo
    ZQ0KIyBjb21tYW5kLi4uIA0KDQp5b3UgZm9yZ290IHRvIHBvc3QgeW91ciBzYW1wbGUgcHJvZ3Jh
    bSBhbmQgdGhlIG91dHB1dC9yZXN1bHQvZXJyb3JzDQoNCmtpbmQgcmVnYXJkcyAtYm90cA0KDQo=
    Peña, Botp, Aug 20, 2008
    #2
    1. Advertising

  3. 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.

    http://ruby.about.com/od/tutorials/a/installruby.htm
    http://ruby.about.com/od/tutorials/ss/commandline.htm

    --
    Michael Morin
    Guide to Ruby
    http://ruby.about.com/
    Become an About.com Guide: beaguide.about.com
    About.com is part of the New York Times Company
    Michael Morin, Aug 20, 2008
    #3
  4. Ron Gunsolus

    Phlip Guest

    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 <F5> each time you change the code.

    --
    Phlip
    Phlip, Aug 20, 2008
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Phrank
    Replies:
    7
    Views:
    413
  2. Rhodri James
    Replies:
    0
    Views:
    673
    Rhodri James
    Feb 24, 2009
  3. Replies:
    1
    Views:
    93
  4. deadmanwalkin

    newby help

    deadmanwalkin, May 22, 2005, in forum: Perl Misc
    Replies:
    5
    Views:
    99
    Bob Walton
    May 22, 2005
  5. Leslie Cox

    newby could use a little help

    Leslie Cox, Nov 22, 2007, in forum: Javascript
    Replies:
    12
    Views:
    187
    Dr J R Stockton
    Nov 30, 2007
Loading...

Share This Page