`

gem install mysql error

 
阅读更多
sudo gem install mysql
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
        ERROR: Failed to build gem native extension.

/opt/ruby-enterprise-1.8.7-2012.02/bin/ruby extconf.rb
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=/opt/ruby-enterprise-1.8.7-2012.02/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 /opt/ruby-enterprise-1.8.7-2012.02/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.
Results logged to /opt/ruby-enterprise-1.8.7-2012.02/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out


MySQL 5.0:
sudo apt-get install libmysqlclient15-dev

MySQL 4.x:
sudo apt-get install libmysqlclient12-dev
分享到:
评论

相关推荐

    redmine的安装文档

    - `gem install mysql` - `gem install -v=2.3.5 rails` 3. 接下来,需要安装MySQL数据库。从MySQL官方网站下载并安装,然后在MySQL命令行客户端执行以下命令创建数据库和用户: - `mysql> create database ...

    mysql_health:一种独立的服务,用于监视MySQL并通过HTTP接口公开其运行状况,以与支持使用HTTP进行带外运行状况检查的TCP负载平衡器(如haproxy)一起使用

    MysqlHealth MySQL Health是一个独立的HTTP服务器,当MySQL按预期运行时,它将以200状态代码响应。... gem 'mysql_health'然后执行: $ bundle或将其自己安装为: $ gem install mysql_health用法Usage: mysql_hea

    rubyonrails mysql安装详解

    ERROR: While executing gem (Errno::EACCES) Permission denied - /usr/local/system/ruby/lib/ruby/site_ruby/1.8/rubygems ``` - 解决方法是先更改目标目录权限: ``` cd /usr/local sudo chmod -R 777 ...

    Windows下Redmine-1.3.0安装笔记

    - `gem install D:\mysql-2.8.1-x86-mingw32.gem` - `gem install -v=2.3.14 rails` 其中,安装命令中的路径应根据实际情况进行调整。如果在安装过程中遇到问题,请检查是否正确安装了libmySQL库,并重启服务。...

    Mac上rails环境的搭建

    - **错误:LoadError: dlopen(/Library/Ruby/Gems/2.0.0/gems/mysql2-0.4.1/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib** 如果遇到这个问题,可以尝试以下解决方案: ```bash ...

    mongify:Mongify允许您将数据从sql数据库映射到mongodb文档数据库

    You might have to install active record database gems (you'll know if you get an error message while running mongify command) 用法 创建配置文件 为了使Mongify能够完成其工作,它需要知道数据库的位置。 ...

    airbrake_tools

    空气制动电动工具最热门的错误列出/搜索错误分析 1 个错误(发生图 / 不同的回溯 + 频率)安装 gem install airbrake_tools用法 airbrake-tools your-account your-auth-token输出热的 airbrake-tools your-account ...

    logstash-output-jdbc插件

    ./bin/logstash-plugin install file:///root/logstash-output-jdbc.zip ``` 这个命令告诉Logstash从指定的本地路径安装插件。请确保你有执行此命令的相应权限,并且Logstash正在正确配置的环境中运行。 **配置与...

    Ruby-SQLite3Ruby绑定SQLite3嵌入式数据库

    gem install sqlite3 ``` 安装完成后,便可以在Ruby程序中引入SQLite3库: ```ruby require 'sqlite3' ``` Ruby-SQLite3的主要功能包括创建数据库、打开数据库、创建表、执行SQL查询、事务处理等。以下是一些基本...

Global site tag (gtag.js) - Google Analytics