ruby 2.1安装mysql2 gem 报错
来源:互联网 发布:美工审核标准 编辑:程序博客网 时间:2024/06/07 03:08
[root@CNSZ141384 tmp]# /opt/chef/embedded/bin/gem install mysql2-0.3.17.gem -l
Building native extensions. This could take a while...
ERROR: Error installing mysql2-0.3.17.gem:
ERROR: Failed to build gem native extension.
/opt/chef/embedded/bin/ruby -r ./siteconf20160217-20268-oxedau.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... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
-----
Setting libpath to /usr/lib64
-----
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling result.c
compiling mysql2_ext.c
compiling client.c
compiling infile.c
linking shared-object mysql2/mysql2.so
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [mysql2.so] Error 1
make failed, exit code 2
Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mysql2-0.3.17 for inspection.
Building native extensions. This could take a while...
ERROR: Error installing mysql2-0.3.17.gem:
ERROR: Failed to build gem native extension.
/opt/chef/embedded/bin/ruby -r ./siteconf20160217-20268-oxedau.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... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
-----
Setting libpath to /usr/lib64
-----
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling result.c
compiling mysql2_ext.c
compiling client.c
compiling infile.c
linking shared-object mysql2/mysql2.so
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [mysql2.so] Error 1
make failed, exit code 2
Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mysql2-0.3.17 for inspection.
Results logged to /opt/chef/embedded/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0/mysql2-0.3.17/gem_make.out
解决方法:是因为本机没有安装:MySQL-shared-5.6.21-1.el6.x86_64.rpm
0 0
- ruby 2.1安装mysql2 gem 报错
- rails 安装 ‘mysql2’ gem时的报错和解决方案
- gem install mysql2时候报错
- Windows上成功安装Ruby-1.9.3 gem mysql2
- window7下安装ruby gem包之Mysql2实践
- centos 6.5 gem install mysql2 / tiny_tds 报错
- LInux 安装 mysql2 gem失败
- ruby安装mysql2模块
- gem install mysql2 安装出错原因
- ruby 安装和使用 mysql2
- ruby 安装gem报错:`SSL_set_tlsext_host_name' was not declared in this scope
- ruby 安装 gem 降级
- gem\ruby 安装失败
- ruby jekyll gem 安装
- ruby,gem,安装cocoapods
- 通过gem 安装库redis-3.0.0.gem报错
- ubuntu gem 安装mysql报错
- ruby gem 安装方法整理
- Unity_UGUI学习图集与使用(一)
- sublime text 3(Build 3103)最新注册码
- #include <>与#include ””的区别
- jsoup简介
- 网页版Rstudio︱RStudio Server多人在线协作开发
- ruby 2.1安装mysql2 gem 报错
- 读取指定目录下的所有文件生成一个excel
- NPOI学习
- PHP最长单一子串
- HTTPServerMock从手工到平台的演变
- 利用ThreadLocal模式管理Session
- Linux app中创建文本文件
- 使用springmvc编写restful接口
- Java重定向标准输入/输出