Mechanize を使う前にセットアップ

2020/04/19

インストールするために自分の環境で必要だったのはこんな感じ。

$ sudo yum install gcc gcc-c++

その後、Gemfile に require ‘mechanize’ っと書いて

bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing unf_ext (0.0.6) 
Installing unf (0.1.3) 
Installing domain_name (0.5.15) 
Installing http-cookie (1.0.2) 
Installing mime-types (2.0) 
Installing net-http-digest_auth (1.4) 
Installing net-http-persistent (2.9) 
Installing mini_portile (0.5.2) 
Installing nokogiri (1.6.1) 
Installing ntlm-http (0.1.1) 
Installing webrobots (0.1.1) 
Installing mechanize (2.7.3) 
Using bundler (1.3.5) 
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.

これで完了(だと思われる)