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-Linux
as well as the more detailed forum post: http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?tid=1137
But 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.
The Gosu gem requires some libraries to be installed system-wide.
See the following site for a list:
require': cannot load such file -- mkmf (LoadError)require'
from extconf.rb:63:in `<main>'
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.out
All 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!
The error message is coming from Ubuntu's own Ruby, because you have used
sudo gem install gosu. (Installation fails because you haven't installed the
ruby-dev package, but that's okay since you didn't intend to use system Ruby anyway.)
What is the error message if you use
gem install gosu instead?
I don't remember exactly the error message but it was very similar.
And today when I typed in gem install gosu it worked.
Gosu installed without problems.
Good to hear that :)
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill