http://whomwah.com/2008/10/13/installing-mysql-gem-on-centos/
[quote]Old news, but you’d be surprised how many times the same:
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.
...
error brings everything to a halt. Well on Centos the way to install the MySQL gem is:
$ sudo yum install mysql mysql-devel gcc
...
# 32 bit machine
$ sudo gem install mysql -- \
> --with-mysql-include=/usr/bin/mysql \
> --with-mysql-lib=/usr/lib/mysql
# or 64 bit like they are on SliceHost
$ sudo gem install mysql -- \
> --with-mysql-include=/usr/bin/mysql \
> --with-mysql-lib=/usr/lib64/mysq
Building native extensions. This could take a while...
Successfully installed mysql-2.7
1 gem installed
...[/quote]
[quote]Old news, but you’d be surprised how many times the same:
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.
...
error brings everything to a halt. Well on Centos the way to install the MySQL gem is:
$ sudo yum install mysql mysql-devel gcc
...
# 32 bit machine
$ sudo gem install mysql -- \
> --with-mysql-include=/usr/bin/mysql \
> --with-mysql-lib=/usr/lib/mysql
# or 64 bit like they are on SliceHost
$ sudo gem install mysql -- \
> --with-mysql-include=/usr/bin/mysql \
> --with-mysql-lib=/usr/lib64/mysq
Building native extensions. This could take a while...
Successfully installed mysql-2.7
1 gem installed
...[/quote]
本文提供了一种在CentOS上安装MySQL Gem的方法。通过使用yum安装必要的依赖包,并指定MySQL的包含文件和库文件路径,可以成功安装MySQL Gem。适用于32位和64位系统。
732

被折叠的 条评论
为什么被折叠?



