Hi!
I am quite new to Ruby and I am trying to install gosu.
I have followed the instructions from:
https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linuxas well as the more detailed forum post:
http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?tid=1137But when I run
gem install gosu I get this error message every time. I also tried with
sudo gem install gosuBuilding native extensions. This could take a while...
ERROR: Error installing gosu:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
The Gosu gem requires some libraries to be installed system-wide.
See the following site for a list:
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from extconf.rb:63:in `<main>'
https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux
Gem files will remain installed in /var/lib/gems/1.9.1/gems/gosu-0.8.5 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/gosu-0.8.5/ext/gosu/gem_make.outAll I can figure out from this is that I still lack a few libraries. And I looked into the file
custom_require.rb but it didn't contain any list of missing libraries.
So I'm lost. What is wrong?
My computer is running Ubuntu 14.04. And rvm is installed with ruby-1.9.2-p330 and ruby-2.1.5
Thanks for any help!