SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Nov 2005
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question bad command or filename

    I have ruby and rubygems installed on my computer (windows millenium os). I am trying to install rails and when I use the command prompt to enter the command:

    gem install rails

    I get the "bad command or file name" response.

    What am I doing wrong? I've tried going underneath the C:/ruby directory, the c:/ruby/lib dir, c:/ruby/bin dir, etc., nothing changes.

    Also, the command "gem install rails --remote" also doesn't work.

    CAn someone please point me in the right direction. For the life of me -- I've always been terrible at installing programs <sigh>/

  2. #2
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not a windows user, so I can't give you a lot of advise, but the error is saying it does not know where to find the gem program. You either need to tell it explicitly or add the program to you path.

    Incidentally, did you try this: http://rubyforge.org/projects/rubyinstaller/

    Might not work on your OS though, since Windows ME is no longer supported (IIRC).
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.

  3. #3
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    California
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are on windows then by all means use the one-click installer. This will set up the environmental variables which will allow you to use "gem" and "ruby" and such from anywhere

  4. #4
    SitePoint Member
    Join Date
    Nov 2005
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your responses,

    I did use the one click installer.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •