installation - How do I run Ruby on Windows 8? -
that title might sound ridiculous - more specific, can irb running cannot interpret ruby files command prompt.
i tried using "load" command. shell couldn't find filename:
> load("scraper.rb") loaderror: cannot load such file -- scraper.rb (irb):3:in 'load' (irb):3 c:/ruby200-x64/bin/irb:12:in '<main>' even giving global path did not help. tried running these instructions add together local directory shell path, didn't work: adding directory $load_path (ruby)
i tried adding execution of .rb files rubyinstaller path. followed these instructions, outdated: http://rubyonwindowsguides.github.io/book/ch02-01.html
if able run irb able run ruby files well.
you don't show how attempting run ruby files, info helpful in question.
if select "prompt ruby" in menu, should able type ruby some_file.rb run ruby file. can associate files naming them "some_file.rbw" depending on if want terminal window show or not. hope gets @ to the lowest degree hint.
what showing here seems irb prompt, not command prompt.
ruby installation
No comments:
Post a Comment