ippa / chingu

OpenGL accelerated 2D game framework for Ruby
http://ippa.se/chingu
GNU Lesser General Public License v2.1
307 stars 66 forks source link

Chingu doesn't install with new Ruby 2.0 #60

Open samueller opened 11 years ago

samueller commented 11 years ago

I guess the issue is the dependency on Gosu. This is on Windows 7:

C:\Users\Scott>gem install chingu
Fetching: gosu-0.7.45.gem (100%)
ERROR:  Error installing chingu:
        The 'gosu' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

So I installed the DevKit (there were 2 other devkits, this seemed to be the latest and 64-bit, DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe).

C:\Users\Scott\Downloads\devkit>gem install chingu
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing chingu:
        ERROR: Failed to build gem native extension.

    C:/Ruby200-x64/bin/ruby.exe extconf.rb
This gem is not meant to be installed on Windows. Instead, please use:
gem install gosu --platform=i386-mingw32

Gem files will remain installed in C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/gosu-0.7.45 for inspection.
Results logged to C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/gosu-0.7.45/linux/gem_make.out

C:\Users\Scott\Downloads\devkit>gem install gosu --platform=x64-mingw32
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing gosu:
        ERROR: Failed to build gem native extension.

    C:/Ruby200-x64/bin/ruby.exe extconf.rb
This gem is not meant to be installed on Windows. Instead, please use:
gem install gosu --platform=i386-mingw32

I tried every permutation of x64-mingw32, i386-mingw32, i386-mingw64, etc. Nothing helped.

ippa commented 11 years ago

you'll have to take this up with gosu-author https://github.com/jlnr .. chingu is built upon gosu.

ippa commented 11 years ago

If/when you get a new gosu version to install I'll bump up the dependency to that version.