cmd - Ruby, I can't run the .rb file? -


i'm learning ruby using https://www.ruby-lang.org/en/documentation/quickstart/3/.

after creating file "ri20min.rb", can't launch via command. saved on desktop , tried run it. placed in "c:\railsinstaller\scripts" , "c:\railsinstaller\ruby1.9.3\bin", these didn't work either.

when try run @ command-line using ruby ri20min.rb returns:

ruby: no such file or directory -- ri20min.rb (loaderror) 

i think it's error regarding saved file?

you're not specifying file you're trying run. can here either navigate folder , run ruby ri20min.rb or run absolute path file specified, ruby c:\path\to\script\ri20min.rb.

assuming script in c:\railsinstaller\scripts...

to navigate (use cd change directory), run cd c:\railsinstaller\scripts\ run ruby ri20min.rb run file.

or run command absolute path. ruby c:\railsinstaller\scripts\ri20min.rb


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -