`
sitoto
  • 浏览: 120105 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

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
分享到:
评论

相关推荐

    Mysql安装错误代码对照

    Mysql安装错误代码对照,sql安装参照,帮助你解决安装遇到的问题

    Mysql安装错误 解决方法

    Mysql 安装错误的详细解决方法一览表

    DirectX增强修复 windows 2008 r2 安装mysql 错误 0xc000007b

    DirectX增强修复 windows 2008 r2 安装解压版mysql 时报错 应用程序无法正常启动(0xc000007b)

    mysql安装问题总结

    mysql安装问题总结 mysql安装问题总结 mysql安装问题总结 mysql安装问题总结 mysql安装问题总结

    mysql的常见错误解决

    mysql的常见错误解决:一.在进入mysql数据库时出错;二、在创建数据库时报错。

    Linux安装mysql压缩包安装

    Mysql数据库的安装对于开发者来说,是我们必然会面对的问题,它的安装过程其实并不复杂,并且网络上的安装教程也非常多,但是对于新手来说,各种不同形式的安装教程,又给新手们带来了要选择哪种方式进行安装的难题...

    Mysql服务无法启动的1067错误解决

    无论安装何版本的mysql,在管理工具的服务中启动mysql服务时都会在中途报错。内容为:在 本地计算机 无法启动mysql服务 错误1067:进程意外中止。

    mysql5.5.6安装教程及安装包.rar

    2、在打开的窗口中,选择接受安装协议,单击“next”继续安装,如图所示: 3、在出现选择安装类型的窗口中,有“typical(默认)”、“Complete(完全)”、“Custom(用户自定义)”三个选项,我们选择“Custom”,...

    安装mysql报错1045

    mysql安装,出现1045错误,解决方法有两张如资源

    mysql5.5.10安装手册

    mysql5.5.10安装文档。比较详细,后面附了一部分错误解决方案

    MySQL错误代码查询

    MySQL错误代码查询 MySQL错误代码查询 MySQL错误代码查询

    MySql常见错误表

    这个文本里记载了很多mysql的错误信息以及编号..可以方便的指导数据库报了什么样的错误

    MySQL安装教程windows64位

    4-安装MySQL服务 + 启动MySQL 服务 5-连接MySQL + 修改密码     先去官网下载点击的MySQL的下载   下载完成后解压  解压完是这个样子     配置初始化的my.ini文件的文件 解压后的目录并没有的my....

    MySQL无法安装的解决方案

    运行“MySQL Server Instance Config Wizard”时,总会出现“cannot create windows service for mysql error 0”的错误,试了好多次,再次删了MySQL,重启服务器,重新安装,都无济于事。手动启动“服务”里的MySQL...

    安装mysql-connector-odbc前提必须微软组件

    Error installing ODBC driver MySQL ODBC5.3 ANSI Driver,ODBC error 13:无法加载 MySQL ODBC5.3 ANSI Driver ODBC驱动程序的安装例程, 因为存在系统错误代码 127:找不到相应myodbc5s.dll。 解决方案:Visual ...

    查询mysql错误信息、及js错误信息

    查询mysql错误信息、及js错误信息 说明

    mysql错误以及处理方式

    mysql错误处理方式,常见的错误处理方式 最全面的错误处理方式

    linux安装mysql(rpm脱网安装).zip

    2、执行rpm安装 #rpm -ivh mysql-*.rpm --force --nodeps 3、安装完成后执行以下命令查询mysql root帐号密码 #grep 'temporary password' /var/log/mysqld.log 没拿到,执行以下命令后,再执行上面命令查 rm -rf /...

    浅谈Linux 二进制包安装MySQL的一些问题

    第一步:安装相关的依赖yum install perl-Data-Dumper 第二步:初始化mysql数据库的内部信息./scripts/mysql_install_db –...如果安装的好MySQL不能启动,可能是因为系统自带的/etc/my.cnf所引起的! 比如说不能更新pi

    R语言之RMySQL安装包及安装教程常见错误处理

    R语言之RMySQL安装包及安装教程常见错误处理,有问题请留言。

Global site tag (gtag.js) - Google Analytics