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
分享到:
相关推荐
- `gem install mysql` - `gem install -v=2.3.5 rails` 3. 接下来,需要安装MySQL数据库。从MySQL官方网站下载并安装,然后在MySQL命令行客户端执行以下命令创建数据库和用户: - `mysql> create database ...
MysqlHealth MySQL Health是一个独立的HTTP服务器,当MySQL按预期运行时,它将以200状态代码响应。... gem 'mysql_health'然后执行: $ bundle或将其自己安装为: $ gem install mysql_health用法Usage: mysql_hea
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 ...
- `gem install D:\mysql-2.8.1-x86-mingw32.gem` - `gem install -v=2.3.14 rails` 其中,安装命令中的路径应根据实际情况进行调整。如果在安装过程中遇到问题,请检查是否正确安装了libmySQL库,并重启服务。...
- **错误: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 ...
You might have to install active record database gems (you'll know if you get an error message while running mongify command) 用法 创建配置文件 为了使Mongify能够完成其工作,它需要知道数据库的位置。 ...
空气制动电动工具最热门的错误列出/搜索错误分析 1 个错误(发生图 / 不同的回溯 + 频率)安装 gem install airbrake_tools用法 airbrake-tools your-account your-auth-token输出热的 airbrake-tools your-account ...
./bin/logstash-plugin install file:///root/logstash-output-jdbc.zip ``` 这个命令告诉Logstash从指定的本地路径安装插件。请确保你有执行此命令的相应权限,并且Logstash正在正确配置的环境中运行。 **配置与...
gem install sqlite3 ``` 安装完成后,便可以在Ruby程序中引入SQLite3库: ```ruby require 'sqlite3' ``` Ruby-SQLite3的主要功能包括创建数据库、打开数据库、创建表、执行SQL查询、事务处理等。以下是一些基本...