Code Monkey home page Code Monkey logo

Comments (9)

Aethylred avatar Aethylred commented on May 27, 2024

Inclusion of 'fat binaries' starts with Nokogiri 1.6.2 https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.rdoc#162--2014-05-12

from beaker.

joshcooper avatar joshcooper commented on May 27, 2024

@Aethylred you might be able to workaround for the time being by installing the ruby devkit from rubyinstaller.org. Make sure to select the compiler version that matches your ruby version.

from beaker.

Aethylred avatar Aethylred commented on May 27, 2024

I've tried that, to no avail. I've even installed the whole Windows and mingw development environment. I'm not a Ruby developer, having to install the dev kit to use a testing tool seems overkill.

(OTOH I've got things to say about packages that require compiler tools on Linux too)

from beaker.

anodelman avatar anodelman commented on May 27, 2024

beaker is only designed to be able to run tests on windows nodes, not to be run on windows itself - you are in pretty much uncharted territory here so I can't say if there is a way to get it to work.

from beaker.

Aethylred avatar Aethylred commented on May 27, 2024

I don't think designed is the word you want there, it's more that there was no intention for it to run under Windows... however without the operational environment for beaker being specified in the documentation it would be assumed that beaker can run where Ruby, Puppet and Vagrant can be run.

from beaker.

Aethylred avatar Aethylred commented on May 27, 2024

The more relevant point (that came to me later) is that if a policy ever comes in that module PR must include beaker acceptance tests (like they now require puppet-rspec tests), then this will exclude users who develop modules on Windows (i.e. me) unless some kind of hosted beaker test suite is provided (similar to Travis).

Note: though I contribute to Linux modules, the environment I develop in is Windows, because of stupid policy and compliance regulations we do our work in.

from beaker.

Iristyle avatar Iristyle commented on May 27, 2024

I've run into similar issues on x64 Windows. On that platform, Nokogiri requires a 1.6.x version to build properly, and our gemspec references ~> 1.5.10.

http://stackoverflow.com/a/23437057

I'm not sure what to make of the comment in the gemspec about the inclusion of this version for Ruby 1.8 support, but since we haven't shipped a Ruby 1.8 version on Windows any longer, my suggestion is to simply exclude Nokogiri from the gemspec on Windows.

https://github.com/puppetlabs/beaker/blob/master/beaker.gemspec#L51

Change

s.add_runtime_dependency 'nokogiri', '~> 1.5.10'

to

platform ||= RUBY_PLATFORM[/java/] || 'ruby'
s.add_runtime_dependency 'nokogiri', '~> 1.5.10' if platform.to_s == 'ruby'

You can see a more complete example of the use of platform specific dependencies here:
https://github.com/apache/buildr/blob/7760bcfb73afb59e7db5e4aaf35ee881aeec449f/buildr.gemspec

I don't have the cycles to verify this now @Aethylred , but perhaps you could build the gem locally and try to install it with those changes.

from beaker.

anodelman avatar anodelman commented on May 27, 2024

Last comment from @Iristyle quite a while back.

Please re-open if you need further help.

from beaker.

rilindo avatar rilindo commented on May 27, 2024

In case people get to this page when searching for a solution to install Beaker on Windows:

I was able to install beaker on Windows. For me, I installed current Ruby release (2.1.5) AND devkit and with those two, I was able to install beaker. So this issue appears to be at least resolved from that aspect.

from beaker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.