gem install mysql时报错:
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
*** 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/bin/ruby1.8
--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
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out
解决方案:
$ sudo apt-get install libmysqlclient15-dev
sudo gem install mysql
分享到:
相关推荐
在Ubuntu下解决MySQL不能远程访问的问题.docx
在ubuntu下安装mysql
解决 Rails bundle 安装不上 mysql gem包的问题 环境 ubuntu 12.04 ruby-2.1.1 首先 新建一个的一个项目,在该项目上执行 bundle install 提示 代码如下: … Make sure that gem install mysql2 -v ‘0.3.16’; ...
ubuntu20.04离线安装mysql8.0.30需要的tar包和对应的两个依赖包分别是:libaio1和libmecab2,详细的安装步骤请关注博主的另一篇博文
Ubuntu下C语言访问MySQL数据库入门 https://blog.csdn.net/xiajun07061225/article/details/8505987
手动在Ubuntu系统下安装指定版本mysql,
ubuntu 下mysql 安装及配置文件 有个是关于编码方式的 也可以在windows下修改 不过文件名不一样了
Ubuntu18.0.4安装mysql5.7.25后无法登陆如何处理
这是一份可以在Ubuntu安装的mysql,同时里面附带了安装手册,适用于ubuntu系统,便于快速安装。
ubuntu下MySql的安装教程,每一步都有详细的说明。也提供了一些安装中的问题的解决方法,绝对可用。
ubuntu安装和删除mysql,只要熟悉ubuntu命令来操作此系统。
Ubuntu下C语言访问MySQL数据库入门 https://blog.csdn.net/xiajun07061225/article/details/8505987
Ubuntu8.10下mysql是自启动的,但root用户、mysql数据库都被限制了。该Shell脚本是启动mysql安全模式脚本,启动后mysql数据库可以自行调试。比如php、lighttp、mysql。
本文档主要讲解ubuntu下QT连接数据库的时出现的各种驱动加载错误的问题的解决方法
ubuntu安装mysql,以及mysql的主从备份, ubuntu版本: 17.04
在ubuntu下安装mysql服务器 以及导入数据库的方法 还有设置双机热备份
mysql-ubuntu14.04系统版
Ubuntu 通过Deb 安装 MySQL 5.5 描述了整个过程 亲测可用
sudo apt-get install mysql-server 命令2 切换成root用户后执行下面的命令,否则可能权限不够,想换回普通用户只需ctrl+D sudo su - 命令3 下载安装mysql的客户端: sudo apt-get install mysql-client 命令4 ...
ubuntu_下mysql的常用命令