LoginSignup
9
8

More than 5 years have passed since last update.

Windowsでcucumber+capybara+seleniumを動かすまで

Last updated at Posted at 2013-05-20
  • windows8_x64でcucumberを動かそうとしたらインストールから躓いたので、インストールメモ

壁は以下の3つ

  1. ffi
    • selenium-webdriverが依存するchildprocessが依存してる
  2. nokogiri
    • capybaraが依存してる
  3. json
    • cucumberが依存してる

解決方法

ffi,nokogiri

  • RubyをRubyInstaller for Windowsからインストールし、DEVELOPMENT KITもインストールする
    • ActiveScriptRuby で当初動かしていたがそちらではffi入らなかったし、何かをいじってffi入れられるようになるかは不明

手順

  • RubyInstaller for Windows
    • インストーラーを実行し、インストールウィザードに従えばok
  • DEVELOPMENT KIT

¥# config.yml を作成するコマンド
$ ruby dk.rb init

¥# インストール
$ ruby dk.rb install

json

  1. makeがないと怒られる場合は上記 DEVELOPMENT KIT に含まれているので、配置先を環境変数PATHに追加する
    • C:¥DevKit¥bin を追加する
  2. さらにgccがないと怒られる場合は、MinGWをインストールし、インストールディレクトリをPATHに追加する

別の解決方法

nokogiri

9
8
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
8