Hello there,
I need help, I tried installing gosu on my ubuntu 14.04 it came up with this error.. amulya@SHAHI:~$ gem install gosu
Building native extensions. This could take a while...
ERROR: Error installing gosu:
ERROR: Failed to build gem native extension.
/home/amulya/.rvm/rubies/ruby-2.2.0/bin/ruby -r ./siteconf20150712-1819-nvwpk3.rb extconf.rb
The Gosu gem requires some libraries to be installed system-wide.
See the following site for a list:
https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linuxchecking for TTF_RenderUTF8_Blended() in -lSDL2_ttf... no
checking for FreeImage_ConvertFromRawBits() in -lfreeimage... no
checking for main() in -lopenal... no
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling gosu_wrap.cxx
In file included from ../../Gosu/Gosu.hpp:21:0,
from gosu_wrap.cxx:2175:
../../Gosu/Input.hpp:20:22: fatal error: X11/Xlib.h: No such file or directory
#include <X11/Xlib.h>
^
compilation terminated.
make: *** [gosu_wrap.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/amulya/.rvm/gems/ruby-2.2.0/gems/gosu-0.9.2 for inspection.
Results logged to /home/amulya/.rvm/gems/ruby-2.2.0/extensions/x86_64-linux/2.2.0/gosu-0.9.2/gem_make.out
amulya@SHAHI:~$
--------------------------------------------------------------------------------------------------------------------------------=========================================================================
So I updated and then upgraded, since I already have rails installed .. ..
I tried this... .amulya@SHAHI:~$ sudo apt-get install build-essential libsdl2-dev libsdl2-ttf-dev libpango1.0-dev libgl1-mesa-dev libfreeimage-dev libopenal-dev libsndfile-dev libiconv-hook-dev libxml2-dev freeglut3 freeglut3-dev ImageMagick libmagickwand-dev
[sudo] password for amulya:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libsndfile1-dev' instead of 'libsndfile-dev'
build-essential is already the newest version.
imagemagick is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libcogl15 : Depends: libegl1-mesa-drivers
libmagickwand-dev : Depends: libmagickcore-dev (= 8:6.7.7.10-6ubuntu3) but it is not going to be installed
libpango1.0-dev : Depends: libpango-1.0-0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed
Depends: libpangocairo-1.0-0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed
Depends: libpangoft2-1.0-0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed
Depends: libpangoxft-1.0-0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed
Depends: gir1.2-pango-1.0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed
Depends: libglib2.0-dev (>= 2.34.0) but it is not going to be installed
Depends: libxft-dev but it is not going to be installed
Depends: libfontconfig1-dev (>= 2.10.91) but it is not going to be installed
Depends: libharfbuzz-dev (>= 0.9.9) but it is not going to be installed
Depends: libcairo2-dev (>= 1.12.10) but it is not going to be installed
Recommends: debhelper but it is not going to be installed
libsdl2-dev : Depends: libegl1-mesa-dev
Depends: libgles2-mesa-dev
Depends: libpulse-dev but it is not going to be installed
Depends: libudev-dev but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
amulya@SHAHI:~$
Thanks..