-
Notifications
You must be signed in to change notification settings - Fork 325
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running Beaker on Windows #373
Comments
Inclusion of 'fat binaries' starts with Nokogiri 1.6.2 https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.rdoc#162--2014-05-12 |
@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. |
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) |
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. |
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. |
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. |
I've run into similar issues on x64 Windows. On that platform, Nokogiri requires a http://stackoverflow.com/a/23437057 I'm not sure what to make of the comment in the 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: 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. |
Last comment from @Iristyle quite a while back. Please re-open if you need further help. |
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. |
For reasons we shall not discuss (as it involves All of Government Purchasing policy, Public Records Act, red tape, and other-non-technical-issues-that-are-harder-than-make-it-work-in-windows) my
$work
requires that I develop puppet modules in a Windows environment. I'd really like to add beaker acceptance tests to my modules and run them locally.I have Ruby 2.0, Vagrant, Puppet, Virtualbox, and VMware Workstation all working fine in Windows 7 x64, but installing beaker fails.
However installing Nokogiri itself works, as the later version bundles binaries & libraries with the gem:
Would it be possible to check that beaker works with the later Nokogiri version, and have it's dependency changed to allow the use of this version.
No doubt, once this is sorted, I'll find another problem... probably symbolic links...
...I'm also expecting some comments about how gems bundling libraries and binaries is bad, because it is...
The text was updated successfully, but these errors were encountered: