I've reinstalled my computer with ubuntu,and i had to reconfiguration my environment ,but when i was installing mysql lib
sudo gem install mysql -r
an error occured
Building native extensions. This could take a while...
*** 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
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
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... no
checking for mysql_query() in -lmysqlclient... no
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out
I've installed all the required lib,why?
When i saw he mkmf.log,i knew what happened.The ubuntu didn't install gcc as default,so we sould install it.
sudo apt-get install gcc
Then install mysql lib
sudo gem install mysql -r
1. mysql 2.7.1 (mswin32)
2. mysql 2.7 (ruby)
3. mysql 2.6 (ruby)
4. mysql 2.5.1 (ruby)
5. Cancel installation
> 2
Building native extensions. This could take a while...
/usr/lib/ruby/1.8/fileutils.rb:243: command not found: make
/usr/lib/ruby/1.8/fileutils.rb:243: command not found: make install
ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... yes
checking for mysql_ssl_set()... yes
checking for mysql.h... no
checking for mysql/mysql.h... yes
creating Makefile
make
make install
Test:
irb(main):001:0> require 'mysql'
=> true
irb(main):002:0> require 'rubygems'
=> true
irb(main):003:0> require_gem 'mysql'
=> true
irb(main):004:0>
分享到:
相关推荐
2.3.6. Troubleshooting a MySQL Installation Under Windows 2.3.7. Upgrading MySQL on Windows 2.3.8. Windows Postinstallation Procedures 2.4. Installing MySQL on Mac OS X 2.4.1. General Notes on ...
DPKG已预装于Ubuntu中,负责跟踪Ubuntu发行版中安装的所有包,并存储数据库于`/var/lib/dpkg`下;而RPM包管理系统需手动安装,其数据库位于`/var/lib/rpm`或对于Ubuntu 10.10版本的用户而言,则是`/root/.rpmdb`,...
### MySQL 5.7在Windows系统上的安装与配置教程 #### 概述 MySQL是由Oracle公司维护的一个开源的关系型数据库管理系统。它以其性能稳定、功能强大而被广泛应用于各种应用场景中。本文档主要介绍了如何在Windows...
OpenERP Installing Ubuntu9.04
- **APT-based发行版(如Debian和Ubuntu)**:建议使用MySQL官方提供的APT仓库进行安装。具体步骤可参考《使用MySQL APT Repository快速指南》。若您的系统无法使用APT仓库,可参照《使用Debian包在Linux上安装...
MySQL是世界上最受欢迎的开源数据库...本教程的"Mysql Installing.pdf"文件应该包含了这些步骤的详细指南,对于初学者来说是一份宝贵的资源。通过跟随教程,您将能够顺利安装MySQL,并开始探索这个强大的数据库世界。
TUTORIAL FOR INSTALLING MINIX-386 MINIX 升级到 MINIX-386的经典 John Nall写的关于如何使用Bruce Evans的补丁程序将MINIX 1.5.10版升级到MINIX-386的说明。
### 安装Oracle 10g R2在RHEL 5 & OEL 5 (x86_64)上的需求 #### 概述 本文档详细介绍了在Red Hat Enterprise Linux(RHEL)5和Oracle Enterprise Linux(OEL)5(x86_64架构)上安装Oracle 10g Release 2数据库的...
面是我在Ubuntu6.06 LTS 下源码编译安装samba主要安装过程,本人第一次用Ubuntu,刚装上去时候,没有gcc编译环境。郁闷了半天。找出这一过程发了不少的时间。可能还有些不妥,不过我经过这样的安装达到了向windows共享...
### 安装Anaconda在Ubuntu上的详细步骤及关键知识点 #### 一、Anaconda简介 Anaconda是一款非常受欢迎的数据科学平台,它集成了Python或R语言环境中的许多库和工具,便于用户进行数据处理、科学计算、机器学习等...
Error installing ODBC driver MySQL ODBC5.3 ANSI Driver,ODBC error 13:无法加载 MySQL ODBC5.3 ANSI Driver ODBC驱动程序的安装例程, 因为存在系统错误代码 126:找不到指定的模块。 解决方案:如果电脑是...
eCos RedBoot guide-A guide for installing and using RedBootdebug and bootstrap firmware.eCos操作系统redboot源码详细说明及使用移植说明
### Ubuntu Pocket Guide and Reference: A Concise Companion for Day-to-Day Ubuntu Use #### Introduction "Ubuntu Pocket Guide and Reference: A Concise Companion for Day-to-Day Ubuntu Use," authored by ...
Ensure high performance and high availability of your MySQL solution using effective replication and backup techniques A comprehensive guide to performing query optimization, security and a whole host...
- **Installation Options**: Explanation of the different methods for installing Ubuntu, such as live CD/DVD, USB drive, or virtual machines. Instructions for creating bootable media are provided. - **...
在Ubuntu系统中,可以通过以下命令安装MySQL客户端和服务器: ```bash sudo apt-get install mysql-client sudo apt-get install mysql-server sudo apt-get install python-mysqldb ``` 对于Python的安装,首先从...
- For installation instructions, see the Installing and Upgrading chapter. - For the new features/bugfix history, see the MySQL Change History appendix. You can browse the MySQL Reference Manual ...
Installing Ubuntu 14.04 & ROS & TurtleBot 06-29-2016 个人小结,关于Ubuntu和ROS的安装。
- **文件夹结构**:MySQL安装完成后会在C盘或其他指定位置创建一个MySQL文件夹,该文件夹包含bin、data、docs、include、lib等多个子文件夹,分别用于存放可执行文件、数据文件、文档、头文件和库文件等。...