###前提・実現したいこと
**目的
Rubyでスクレイピング。
そのために下記サイトを参照に環境構築をしています。
http://vsanna.sakura.ne.jp/wp/2015/01/scraping_start_up/
サイト内にある「4.実践」のように、
エディタ(atom)にRubyのスクリプトを作って、「sample.rb」の名前で保存
$ ruby sample.rb を実行すると下記表示
###発生している問題・エラーメッセージ
$ ruby sample.rb ruby: No such file or directory -- sample.rb (LoadError)```
ディレクトリの設定等が必要なのでしょうか。
書的な質問かもしれませんがお教えいただけますと嬉しいです。
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報
ruby 2.4.0
*** LOCAL GEMS ***
actioncable (5.0.1)
actionmailer (5.0.1)
actionpack (5.0.1)
actionview (5.0.1)
activejob (5.0.1)
activemodel (5.0.1)
activerecord (5.0.1)
activesupport (5.0.1)
anemone (0.7.2)
arel (7.1.4)
bigdecimal (default: 1.3.0)
builder (3.2.3)
bundler (1.14.3)
concurrent-ruby (1.0.4)
did_you_mean (1.1.0)
erubis (2.7.0)
globalid (0.3.7)
i18n (0.8.0)
io-console (default: 0.4.6)
json (default: 2.0.2)
loofah (2.0.3)
mail (2.6.4)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.10.1)
net-telnet (0.1.1)
nio4r (1.2.1)
nokogiri (1.7.0.1)
openssl (default: 2.0.2)
power_assert (0.4.1)
psych (default: 2.2.2)
rack (2.0.1)
rack-test (0.6.3)
rails (5.0.1)
rails-dom-testing (2.0.2)
rails-html-sanitizer (1.0.3)
railties (5.0.1)
rake (12.0.0)
rdoc (default: 5.0.0)
robotex (1.0.0)
sprockets (3.7.1)
sprockets-rails (3.2.0)
test-unit (3.2.3)
thor (0.19.4)
thread_safe (0.3.5)
tzinfo (1.2.2)
websocket-driver (0.6.5)
websocket-extensions (0.1.2)
xmlrpc (0.2.1
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/02/02 15:14
2017/02/03 00:53
2017/02/03 15:44