Hello,
My computer : i3 with Linux Mageia 3, ruby 1.9.3p429, MariaDB 5.5.28
$ rvm list
rvm rubies
ree-1.8.7-2012.02 [ x86_64 ]
ruby-1.8.7-p371 [ x86_64 ]
ruby-1.9.3-p429 [ x86_64 ]
ruby-2.0.0-p195 [ x86_64 ]
In my root home :
$ rvm info
system:
system:
uname: "Linux erato.parnasse 3.8.13.4-desktop-1.mga3 #1 SMP Thu Jul 4 13:56:21 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux"
system: "redhat/3.
86.
64./x86_64"
bash: "/usr/bin/bash => GNU bash, version 4.2.37(2)-release (x86_64-mageia-linux-gnu)"
zsh: " => not installed"
rvm:
version: "rvm 1.20.13 () by Wayne E. Seguin <waynee...@gmail.com>, Michal Papis <mpa...@gmail.com> [https://rvm.io/]"
updated: "1 month 11 days 40 minutes ago"
homes:
gem: "not set"
ruby: "not set"
binaries:
ruby: "/usr/bin/ruby"
irb: "/usr/bin/irb"
gem: "/usr/bin/gem"
rake: "/usr/bin/rake"
environment:
PATH: "/usr/local/bin:/usr/bin:/usr/games:/usr/lib64/qt4/bin:/home/marc/.rvm/bin:/home/marc/bin"
GEM_HOME: ""
GEM_PATH: ""
MY_RUBY_HOME: ""
IRBRC: ""
RUBYOPT: ""
gemset: ""
in my apps directory :
rvm info
ruby-1.8.7-p371@caieta:
system:
uname: "Linux erato.parnasse 3.8.13.4-desktop-1.mga3 #1 SMP Thu Jul 4 13:56:21 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux"
system: "redhat/3.
86.
64./x86_64"
bash: "/usr/bin/bash => GNU bash, version 4.2.37(2)-release (x86_64-mageia-linux-gnu)"
zsh: " => not installed"
rvm:
version: "rvm 1.20.13 () by Wayne E. Seguin <waynee...@gmail.com>, Michal Papis <mpa...@gmail.com> [https://rvm.io/]"
updated: "1 month 11 days 41 minutes 16 seconds ago"
ruby:
interpreter: "ruby"
version: "1.8.7"
date: "2012-10-12"
platform: "x86_64-linux"
patchlevel: "2012-10-12 patchlevel 371"
full_version: "ruby 1.8.7 (2012-10-12 patchlevel 371) [x86_64-linux]"
homes:
gem: "/home/marc/.rvm/gems/ruby-1.8.7-p371@caieta"
ruby: "/home/marc/.rvm/rubies/ruby-1.8.7-p371"
binaries:
ruby: "/home/marc/.rvm/rubies/ruby-1.8.7-p371/bin/ruby"
irb: "/home/marc/.rvm/rubies/ruby-1.8.7-p371/bin/irb"
gem: "/home/marc/.rvm/rubies/ruby-1.8.7-p371/bin/gem"
rake: "/home/marc/.rvm/gems/ruby-1.8.7-p371@caieta/bin/rake"
environment:
PATH: "/home/marc/.rvm/gems/ruby-1.8.7-p371@caieta/bin:/home/marc/.rvm/gems/ruby-1.8.7-p371@global/bin:/home/marc/.rvm/rubies/ruby-1.8.7-p371/bin:/home/marc/.rvm/bin:/usr/local/bin:/usr/bin:/usr/games:/usr/lib64/qt4/bin:/home/marc/bin"
GEM_HOME: "/home/marc/.rvm/gems/ruby-1.8.7-p371@caieta"
GEM_PATH: "/home/marc/.rvm/gems/ruby-1.8.7-p371@caieta:/home/marc/.rvm/gems/ruby-1.8.7-p371@global"
MY_RUBY_HOME: "/home/marc/.rvm/rubies/ruby-1.8.7-p371"
IRBRC: "/home/marc/.rvm/rubies/ruby-1.8.7-p371/.irbrc"
RUBYOPT: ""
gemset: "caieta"
When I use "bundle install" in the apps directory :
....
Installing mysql2 (0.3.11)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/marc/.rvm/rubies/ruby-1.8.7-p371/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
-----
*** 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=/home/marc/.rvm/rubies/ruby-1.8.7-p371/bin/ruby
--with-mysql-config
--without-mysql-config
Gem files will remain installed in /home/marc/.bundler/tmp/14198/gems/mysql2-0.3.11 for inspection.
Results logged to /home/marc/.bundler/tmp/14198/gems/mysql2-0.3.11/ext/mysql2/gem_make.out
An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling.
But when I make "gem install mysql2", it's ok but when I make "gem list", I don't found mysql2
I don't undersant what is missing !