mysql2安装错误

administrator@ubuntu:~/store$ gem install mysql2

Fetching: mysql2-0.3.13.gem (100%)

Building native extensions.  This could take a while...

ERROR:  Error installing mysql2:

ERROR: Failed to build gem native extension.

/home/administrator/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb

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

checking for mysql_query() in -lmysqlclient... no

checking for main() in -lm... yes

checking for mysql_query() in -lmysqlclient... no

checking for main() in -lz... yes

checking for mysql_query() in -lmysqlclient... no

checking for main() in -lsocket... no

checking for mysql_query() in -lmysqlclient... no

checking for main() in -lnsl... yes

checking for mysql_query() in -lmysqlclient... no

checking for main() in -lmygcc... no

checking for mysql_query() in -lmysqlclient... no

*** 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/administrator/.rvm/rubies/ruby-1.9.3-p448/bin/ruby

--with-mysql-config

--without-mysql-config

--with-mysql-dir

--without-mysql-dir

--with-mysql-include

--without-mysql-include=${mysql-dir}/include

--with-mysql-lib

--without-mysql-lib=${mysql-dir}/lib

--with-mysqlclientlib

--without-mysqlclientlib

--with-mlib

--without-mlib

--with-mysqlclientlib

--without-mysqlclientlib

--with-zlib

--without-zlib

--with-mysqlclientlib

--without-mysqlclientlib

--with-socketlib

--without-socketlib

--with-mysqlclientlib

--without-mysqlclientlib

--with-nsllib

--without-nsllib

--with-mysqlclientlib

--without-mysqlclientlib

--with-mygcclib

--without-mygcclib

--with-mysqlclientlib

--without-mysqlclientlib

Gem files will remain installed in /home/administrator/.rvm/gems/ruby-1.9.3-p448/gems/mysql2-0.3.13 for inspection.

Results logged to /home/administrator/.rvm/gems/ruby-1.9.3-p448/gems/mysql2-0.3.13/ext/mysql2/gem_make.out

************解决方法***********

sudo apt-get install libmysql-ruby libmysqlclient-dev

gem install  mysql2

原创文章,转载请注明: 转载自搞代码

微信 赏一包辣条吧~

支付宝 赏一听可乐吧~

checking for mysql_commit in -lmy_mysql2安装异常相关推荐

  1. checking for mysql_commit in -lmy_安装mysql gem for ruby和jruby gem

    我的机器上安装了jruby mysql gem.但是,出于某种原因,我不得不改为ruby而不是jruby,而且除了没有安装mysql gem for ruby之外,一切似乎都正常工作,现在当我尝试安装 ...

  2. checking for mysql_commit in -lmy_LInux 安装 mysql2 gem失败

    通过gem安装mysql2显示 Building native extensions. This could take a while... ERROR: Error installing mysql ...

  3. checking for mysql_commit in -lmy_安装ruby环境,用mysql数据库,总是报错,调了一下午,网上方法都用了也不管事...

    报错信息:windowsxp系统,ruby2.0Gem::Installer::ExtensionBuildError:ERROR:FailedtobuildgemnativeextensioC:/R ...

  4. libevent 安装异常

    libevent 安装异常 参考文章: (1)libevent 安装异常 (2)https://www.cnblogs.com/sunxucool/p/5508604.html 备忘一下.

  5. Redis安装异常解决办法

    Redis安装异常解决办法 参考文章: (1)Redis安装异常解决办法 (2)https://www.cnblogs.com/moxiaotao/p/9594116.html 备忘一下.

  6. 关于Apple M1 芯片软件安装异常的解决方法

    这篇文章来源自:https://zhuanlan.zhihu.com/p/358957639 拥有 Apple M1 芯片的 Mac 小伙伴们可能会在安装软件的时候遇到一些异常情况,下面佐佐整理了可能 ...

  7. Android studio 运行项目出现 应用程序安装异常(-15)

    近期运行项目的时候出现了应用程序安装异常的报错, 报错在手机上面显示为 应用程序安装异常(-15) 主要是出现在vivo手机上 解决方法 打开项目的 gradle.properties 文件,在里面加 ...

  8. Android Studio执行在vivo手机上出现“应用程序安装异常(-15)”

    Android  Studio在vivo手机执行程序时出现"应用程序安装异常(-15)"出误. 如图: 设备信息: 解决办法: 打开 gradle.propeities文件,在最底 ...

  9. Android Studio执行出现“应用程序安装异常(-15)

    Android Studio执行出现"应用程序安装异常(-15) gradle.propeities文件,在最底下加入: android.injected.testOnly=false 我的 ...

最新文章

  1. codeforces round 416 div2补题
  2. Html/CSS博文目录
  3. 实例讲解hadoop中的map/reduce查询(python语言实现)
  4. Android控件随手指的移动而移动
  5. python label background设置成透明_纯Python绘制满满艺术感的山脊地图
  6. mybatis where、set、trim、sql、foreach标签的使用
  7. laravel 效率与java_让你的Laravel 应用运行速度飞起来!(利用PHP OPcache)
  8. LRU页面置换算法C语言实现
  9. python grasshopper_Grasshopper操作shp
  10. html百度站内搜索代码,网站添加百度站内搜索的教程
  11. 晒晒自己写的C++小程序(初学,书上的题目)
  12. 姓舒男孩名字简单大气,帮你解决起名的烦恼!
  13. 计算机后置音频接口,电脑后面音频插孔没声音怎么办?电脑后置插孔没声音的解决方案...
  14. 计算机excel实验结果分析,使用Excel2013分析管理表格数据实训演练——想象力电脑应用...
  15. 木瓜移动每日资讯0602:“店小秘”宣布完成1.35亿元人民币B+轮融资
  16. 前端技术栈---看完这篇就够了
  17. 新媒体运营教程:线上线下用户转化的核心流程!
  18. 网络购物需谨慎 “闲鱼”与“咸鱼“仅一个链接的距离
  19. html5播放器的示例代码
  20. 安装或者初始化达梦数据库卡死

热门文章

  1. java反序列化 构造函数_FastJson反序列化和构造函数之间的一点小秘密
  2. php7 setcookie无效_PHP setcookie() 函数 | 菜鸟教程
  3. 组态王c语言编程实例,组态王命令语言程序.doc
  4. Pyqt5 多标签_ESL电子货架标签方案
  5. redis在php中的用法,使用PHP-redis操作Redis
  6. 两台linux服务器负载均衡代码实现,nginx实现负载均衡,nginx负载均衡确保两台服务器数据保...
  7. python函数图像平移_[Python图像处理]六.图像缩放,图像旋转,图像翻转与图像平移...
  8. pythonsuper多重继承_Python多重继承引发的问题——牛逼的super
  9. mysql经典总结文章_MySQL基础篇(01):经典实用查询案例,总结整理
  10. github(入门),不入门找卢姥爷