gem install mysql报错checking for mysql_qu

来源:Asp之家 时间:2010-11-11 12:13:00 


Installing mysql (2.8.1) with native extensions /usr/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)/usr/local/bin/ruby extconf.rb checking for mysql_query() in -lmysqlclient... nochecking for main() in -lm... yeschecking for mysql_query() in -lmysqlclient... nochecking for main() in -lz... yeschecking for mysql_query() in -lmysqlclient... nochecking for main() in -lsocket... nochecking for mysql_query() in -lmysqlclient... nochecking for main() in -lnsl... yeschecking for mysql_query() in -lmysqlclient... nochecking for main() in -lmygcc... nochecking for mysql_query() in -lmysqlclient... no*** extconf.rb failed ***Could not create Makefile due to some reason, probably lack ofnecessary libraries and/or headers.  Check the mkmf.log file for moredetails.  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/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

 

解决办法:

 


sudo apt-get install libmysqlclient15-dev

标签:mysql,错误
0
投稿

猜你喜欢

  • python中实现定制类的特殊方法总结

    2023-06-19 10:32:31
  • python urllib库的使用详解

    2021-06-12 14:42:04
  • 使用python进行波形及频谱绘制的方法

    2023-02-07 02:48:58
  • go语言通过反射创建结构体、赋值、并调用对应的操作

    2024-03-16 15:52:47
  • 简介Django中内置的一些中间件

    2023-03-16 19:20:27
  • Go语言题解LeetCode下一个更大元素示例详解

    2024-05-21 10:25:33
  • Python基于keras训练实现微笑识别的示例详解

    2022-06-14 10:02:07
  • 超实用的全新JavaScript事件Scrollend实例详解

    2024-04-16 10:27:49
  • Selenium鼠标与键盘事件常用操作方法示例

    2023-04-23 12:39:26
  • python使用pygame模块实现坦克大战游戏

    2022-01-15 01:30:38
  • 关于SQL嵌套的误解分析

    2024-01-22 22:01:03
  • 浅谈Keras参数 input_shape、input_dim和input_length用法

    2021-02-19 13:24:40
  • 详解在OpenCV中实现的图像标注技术

    2023-12-01 11:54:34
  • python下函数参数的传递(参数带星号的说明)

    2022-12-20 02:58:59
  • 树莓派(python)与arduino串口通信的详细步骤

    2022-05-29 15:31:06
  • 用asp给网站添加rss聚合功能

    2007-11-05 19:08:00
  • python 拷贝特定后缀名文件,并保留原始目录结构的实例

    2021-08-30 04:17:46
  • Laravel配置全局公共函数的方法步骤

    2023-11-15 01:20:42
  • 分析SQL语句性能3种方法分享

    2012-06-06 20:09:30
  • Python实现矩阵转置的方法分析

    2023-07-03 21:56:46
  • asp之家 网络编程 m.aspxhome.com