I’m currently looking into automating a flex build so that we can get it running on a CI server.
After a bit of poking around on the Internet and asking around, Buildr as3 looks like a promising option, but I cannot get it to install correctly. Disclaimer: I am a ruby newbie (or a roob, if you will).
I’ve tried ruby 1.8.7, 1.9.2 and 1.9.3 with two PCs running the same OS. I get the same error in all cases. I’m using Windows 7 Enterprise 64 bit with SP1. Our development machines and the CI machine all run Windows.
I’ve been following these steps:
- Install ruby 1.x.x (tried various)
- Install the latest version of devkit
- Update gems (gem update –system)
- Install buildr (gem install buildr –platform mswin32)
- Install buildr-as3 (gem install buildr-as3)
Install errors:
C:>gem install buildr-as3 Fetching: buildr-as3-0.2.19.gem (100%)
Temporarily enhancing PATH to include DevKit… Building native
extensions. This could take a while… ERROR: Error installing
buildr-as3:
ERROR: Failed to build gem native extension.C:/Ruby192/bin/ruby.exe extconf.rb* extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check
the mkmf.log file for more details. You may need configuration
options.Provided configuration options:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=C:/Ruby192/bin/ruby extconf.rb:45:inopen': No such file or directory - C:\Program Files (x86)\Java \jre6\include‘
(Errno::ENOENT)
from extconf.rb:45:inGem files will remain installed in
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.3 for inspection. Results
logged to
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.3/ext/gem_make.out
I would paste the contents of mkmf.log, but for some reason it’s no longer being created on either of my PCs (looked in both devkit & ruby folders but no sign of it, probably user error).
Googling for the errors I had in the mkmf.log file turned up this pastie, though:
Gist of it:
conftest.c: In function ‘t’: conftest.c:8:53: error: ‘random’
undeclared (first use in this function) conftest.c:8:53:
It looks like it’s trying to build something from source but dependencies are missing, but I can’t figure it out. Any ideas? Failing that, is anyone successfully running builder-as3 on Windows and, if so, which versions did you use?
Any help appreciated. Thanks.
In the end, a colleague suggested I try the following (note the parameter is the same as the one used when installing buildr):
It then installed without errors.