maxwell / screencap

A gem to screencap webpages in ruby. Uses Phantom.js under the hood.
MIT License
179 stars 63 forks source link

Errno::ENOENT: No such file or directory - /c/phantomjs/bin/phantomjs #36

Open rehrumesh opened 8 years ago

rehrumesh commented 8 years ago

Hi I am using ruby 1.9.3p551 (2014-11-13) [i386-mingw32] I have installed phantomjs 2.1.1 in C:\phantomjs

I have added gem details to the gemfile as described in the documentation. In irb, I executed following.

require 'screencap'
f = Screencap::Fetcher.new('http://google.com')

Then I got following output

#<Screencap::Fetcher:0x2568198 @url="http://google.com">

When I executed s = f.fetch i got following error.

image

After that I tried with gem 'screencap', github: 'Eventshare/screencap' as well. (https://github.com/maxwell/screencap/issues/31) refer @cbartlett comment

Still gets the same issue. Any leads to fix this?

I am using Windows 8.1 and git bash as the command line tool