Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Gem install failed
- - By kuehkookies Date 2012-01-22 15:31
Hello, guys. I'm new in Ruby and I find Gosu interesting, since I've spent much time in game-developing.

Frankly, I have a problem about the installment.
I made a fresh install of Ruby (it's 1.9.2), installing Gosu and Chingu and everything is OK.
But when I install TexPlay and other libraries which require build tools it always return error.

Here's the chunk from the command prompt when I attempted to install TexPlay

C:\Documents and Settings\ryann\My Documents\ruby\bsmith>gem install texplay
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing texplay:
        ERROR: Failed to build gem native extension.

        C:/Ruby192/bin/ruby.exe extconf.rb
checking for main() in -lfreeglut_static... no
*** 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
        --with-freeglut_staticlib
        --without-freeglut_staticlib

Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/texplay-0
.4.2 for inspection.
Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/texplay-0.4.2/ext/texplay/
gem_make.out


Shall I use one of the options available? If yes, which one?
I need a library that capable to manipulate images easily and won't make such a mess to my codes.
P.S.: I've dealt with this error all day long, and make no result.

Thanks in advance.
Parent - - By Spooner Date 2012-01-22 23:37
Texplay 0.4.2 has not been released as a Windows binary gem, so you need to use 0.3.5 (gem install texplay --version "0.3.5"). I've tried to ask for a new binary and tried to compile it myself, but to no avail as yet. Really, all of the functionality is in 0.3.5 so there isn't much of a problem (something relatively minor was removed to make 0.4.x since Texplay didn't work with 1.9.3).

Not sure what other gems you are trying to install, but the ruby-opengl one is notoriously difficult to compile (there is a working binary attached somewhere in this forum if that is what you are needing). Generally gems are published as binaries on Windows, or at least as source that can be compiled automatically without further dependencies, so these two are exceptions, rather than the rule.
Parent - By kuehkookies Date 2012-01-23 06:21
Thanks.

Now I've done with Texplay, and I found another gems I needed. I can start some experiments about the game mechanics.
Up Topic Gosu / Gosu Exchange / Gem install failed

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill