Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

i386-mingw32 is not supported #18

Closed
Ajedi32 opened this issue May 3, 2013 · 7 comments
Closed

i386-mingw32 is not supported #18

Ajedi32 opened this issue May 3, 2013 · 7 comments

Comments

@Ajedi32
Copy link

Ajedi32 commented May 3, 2013

馃槥

Could not find an appropriate PhantomJS library for your platform (i386-mingw32 :( Please install manually. (Phantomjs::UnknownPlatform)
@afilgueira
Copy link

Same problem here :(

@jabr
Copy link
Collaborator

jabr commented Aug 31, 2013

This gem takes advantage of a number of features commonly available on unix-based systems, so adding general support for an aberrant system like Windows would require a significant overhaul.

However, supporting Windows with a reasonable mingw install might be possible with small changes.

Unfortunately, I don't have anything running Windows. @colszowka might, but I doubt it.

I think support for Windows (with or without mingw) would be great, but it will likely require someone that actually has a computer running Windows to implement it.

@Ajedi32
Copy link
Author

Ajedi32 commented Aug 31, 2013

Fyi, according to this page there's already a precompiled executable available for windows; you don't need to install PhantomJS as a Gem.

@slumos
Copy link
Contributor

slumos commented Dec 11, 2013

Just submitted PR #23 for this if you want to try it.

@jabr
Copy link
Collaborator

jabr commented Dec 14, 2013

This is fixed in the latest release (thanks go to @slumos). The new version (1.9.2.1) is up on rubygems.org.

@jabr jabr closed this as completed Dec 14, 2013
@nitinja
Copy link

nitinja commented Apr 15, 2014

I am getting same error on phantomjs-1.9.7.0 :( Any Pointers?

@jamesBrennan
Copy link

My OS (JRuby running on Windows 7 Pro installed dual-boot on a Mac laptop) is returning different strings than those that are being checked against in @slumos patch. This dirty hack got me past this hurdle (I'll look at turning it into a PR with proper tests when I have some extra minutes - if it makes sense to do so)

module Phantomjs
  class Platform
    class Win32 < Platform
      class << self
        def useable?
          ['mingw32', 'mswin32'].include?(host_os) and ['i686', 'x86_64'].include?(architecture)
        end
      end
    end
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants