【发布时间】:2011-06-23 19:09:27
【问题描述】:
cent os 5.4 新安装;全新安装 percona xtradb 服务器(服务器版本:5.1.56-rel12.7 Percona Server (GPL),12.7,修订版 224)gem install mysql 输出失败
/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for mysql_query() in -lmysqlclient... yes
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... yes
checking for rb_thread_start_timer()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
*** extconf.rb failed ***
这似乎表明它找不到开发库。我知道我通常会使用其他选项 -- --with-mysql-lib=... 但我不相信它们是作为此处概述的正常 percona 安装的一部分安装的:percona repositories info
所以我尝试执行 yum install mysql-devel 但与 percona 的东西发生冲突。我found this post 建议的解决方案是使用 --with-mysql-config 选项。 Percona 不会在安装时自动在 /etc/my.cnf 安装 my.cnf,所以我把它放在了那里,因为那是 mysql 的 init.d 脚本检查它的地方。重新启动mysql,确认它现在正在加载该配置并再次尝试安装,但仍然失败
"Exec format error - /etc/my.cnf --cflags (Errno::ENOEXEC)"
感谢您的帮助
我也做了一个 find / -name mysql.h 什么都没有,所以在使用 yum 安装 percona 服务器和客户端后,看起来所需的库不存在
【问题讨论】:
-
在玩了一天之后,我放弃了,回到了普通的 mysql。一分钟后,我就可以走了。糟糕,我知道 percona 摇滚,但必须在服务器上运行一些东西,所以也许我可以在将来的某个时候升级。
标签: mysql rubygems centos percona