I’m new to this, so forgive me noobishness(is that a word?) and have a
problem with my command prompt in windows 7. when I try to run a ruby
file, I get this msg “ruby: No such file or directory – argv.rb
(LoadError)” (See ATTACHMENT).
I’ve done the “Add C:\ruby\bin”
trick and restarted, but it doesn’t seem to work! ANY IDEAS WOULD BE
GREAT!
I’m new to this, so forgive me noobishness(is that a word?) and have a
problem with my command prompt in windows 7. when I try to run a ruby
file, I get this msg “ruby: No such file or directory – argv.rb
(LoadError)” (See ATTACHMENT).
Are you really sure that the file `argv.rb’ is in your current
working directory?
Does it show up when you enter `dir’ at the prompt?
I’ve done the “Add C:\ruby\bin”
trick and restarted, but it doesn’t seem to work! ANY IDEAS WOULD BE
GREAT!
It couldn’t make a difference: the error message is issued by ruby,
so apparently there is no problem with locating the ruby interpreter.
The file argv.rb does not exist in the directory you’re running ruby
from. cd into the directory that argv.rb exists in , execute from there,
all will be well.
tried that. it didn’t work
C:\Users\Al Baker>Documents\Programming\RuBy\ argv.rb
‘Documents\Programming\RuBy’ is not recognized as an internal or
external comma
nd,
operable program or batch file.
ad i tried it without the forward slash as well.
The file argv.rb does not exist in the directory you’re running ruby
from. cd into the directory that argv.rb exists in , execute from there,
all will be well.
tried that. it didn’t work
C:\Users\Al Baker>Documents\Programming\RuBy\ argv.rb
‘Documents\Programming\RuBy’ is not recognized as an internal or
external command, operable program or batch file.
you have to change into the directory with `cd’:
$ cd Documents\Programming\RuBy
$ ruby argv.rb
You might also want to search for some command prompt tutorial.
The file argv.rb does not exist in the directory you’re running ruby
from. cd into the directory that argv.rb exists in , execute from there,
all will be well.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.