root@debian:/home/mike# gem install gosu
Building native extensions. This could take a while...
ERROR: Error installing gosu:
ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 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-Linux
*** 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=/usr/bin/ruby2.1
--with-gl-config
--without-gl-config
--with-pkg-config
--without-pkg-config
/usr/lib/ruby/2.1.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/2.1.0/mkmf.rb:541:in
try_link0'
from /usr/lib/ruby/2.1.0/mkmf.rb:556:in try_link'
from /usr/lib/ruby/2.1.0/mkmf.rb:642:in
block in try_ldflags'
from /usr/lib/ruby/2.1.0/mkmf.rb:635:in with_ldflags'
from /usr/lib/ruby/2.1.0/mkmf.rb:641:in
try_ldflags'
from /usr/lib/ruby/2.1.0/mkmf.rb:1762:in pkg_config'
from extconf.rb:118:in
<main>'
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.1.0/gems/gosu-0.9.2 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/gosu-0.9.2/gem_make.out
g++
on the command line)? It should have been part of the build-essential
package mentioned in the Getting Started on Linux wiki page.
# Gosu's dependencies for both C++ and Ruby
sudo apt-get install build-essential libsdl2-dev libsdl2-ttf-dev libpango1.0-dev libgl1-mesa-dev libfreeimage-dev libopenal-dev libsndfile-dev
"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -I../.. -I../../src -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DGOSU_DEPRECATED= conftest.c -L. -L/usr/lib/x86_64-linux-gnu -lGL -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc"
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
cannot find -lGL
" (=OpenGL)pkg-config
to find OpenGL, what is the output of pkg-config --libs gl
on your machine?
-lGL
gem install opengl
work?
root@debian:/home/mike# gem install opengl
Fetching: opengl-0.9.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing opengl:
ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
checking for OpenGL... no
checking for glVertex3d() in -lopengl32.lib... no
checking for main() in -lopengl32... no
checking for glVertex3d() in -lGL... no
checking for GL/glx.h... yes
checking for dlfcn.h... yes
checking for windows.h... no
checking for stdint.h... yes
checking for inttypes.h... yes
checking for wglGetProcAddress() in wingdi.h... no
checking for struct RFloat.float_value... yes
checking for int64_t in stdint.h... yes
checking for uint64_t in stdint.h... yes
*** 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=/usr/bin/ruby2.1
--with-opengl32.liblib
--without-opengl32.liblib
--with-opengl32lib
--without-opengl32lib
--with-GLlib
--without-GLlib
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.1.0/gems/opengl-0.9.2 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/opengl-0.9.2/gem_make.out
have_framework: checking for OpenGL... -------------------- no
aptitude install module-assistant build-essential
m-a update
, m-a prepare
/etc/init.d/gdm3 stop
sh NVIDIA-Linux-x86_64-352.21.run --compat32-prefix=/usr --compat32-libdir=lib32 --compat32-chroot=/usr/lib32
reboot
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill