SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: bad command or filename
Hybrid View
-
Nov 17, 2005, 21:43 #1
- Join Date
- Nov 2005
- Posts
- 2
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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>/
-
Nov 17, 2005, 22:02 #2
- 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.
-
Nov 17, 2005, 23:46 #3
- 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
-
Nov 18, 2005, 01:24 #4
- 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