开发者

gem install mysql is wrong!

开发者 https://www.devze.com 2023-01-09 08:51 出处:网络
OS:     Fedora 13 Question:     The mysql for rails. I inputed the command \"gem install mysql\" and the request is error.

OS:

    Fedora 13

Question:

    The mysql for rails. I inputed the command "gem install mysql" and the request is error.

Error:

    Error: Error installing musql:

    ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb

can't find header开发者_StackOverflow中文版 files for ruby.

Gem files will remail installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.

Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out

Who can help me !


Make sure you have the ruby-devel package(s) installed


You need to install "mysql client devel" which will install the header files and library for mysql. Then you can do "gem install mysql".

0

精彩评论

暂无评论...
验证码 换一张
取 消