A
A
Alexander Petrov2015-10-14 18:05:38
Ruby on Rails
Alexander Petrov, 2015-10-14 18:05:38

How to terminate bundle isntall?

Set up a server, apache+passenger. cent os 6
I run bundle install and this is what I get at the end:
Installing mysql2 0.3.18 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-2.0.0-p643/bin/ruby -r ./siteconf20151014-8736-o6q6o0.rb extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
---- -
Using mysql_config at /usr/bin/mysql_config
-----
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=/usr/local/rvm/rubies/ruby-2.0.0-p643/bin/ruby
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql -include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/
--with-mysql-config
--without-mysql-config
extconf failed, exit code 1
Gem files will remain installed in /usr/local/rvm/gems/ruby-2.0.0-p643/gems/mysql2-0.3.18 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.0.0-p643/extensions/x86-linux/2.0.0/mysql2-0.3.18/gem_make.out
An error occurred while installing mysql2 (0.3.18) , and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.18'` succeeds before bundling.
it is advised to put mysql-server mysql-client libmysqlclient-dev
but how to do it on cent os? I read somewhere that these libraries are not installed on cent os in principle ....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AVKor, 2015-10-14
@AVKor

On CentOS 7:

[[email protected] ~]# rpm -ql mariadb-devel.x86_64 | grep mysql\\.h
/usr/include/mysql/mysql.h
/usr/include/mysql/private/probes_mysql.h
[[email protected] ~]#

So
or something like that (perhaps in version 6 it was somehow different).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question