Mirkom63
@Mirkom63
Я программист

Как завершить bundle isntall?

Настроил сервер, apache+passenger. cent os 6
Запускаю bundle install и вот что выводит мне в конце:

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.

советуют поставить mysql-server mysql-client libmysqlclient-dev
но как это сделать на cent os? где-то прочитал что эти библиотеки не ставятся на cent os в принципе....
  • Вопрос задан
  • 376 просмотров
Пригласить эксперта
Ответы на вопрос 1
@AVKor
На CentOS 7:
[root@localhost ~]# rpm -ql mariadb-devel.x86_64 | grep mysql\\.h
/usr/include/mysql/mysql.h
/usr/include/mysql/private/probes_mysql.h
[root@localhost ~]#

Так что
yum install mariadb-devel.x86_64
или типа того (возможно, в 6 версии было как-то иначе).
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы