Difficulties installing mysql gem on Ubuntu

后端 未结 4 664
悲哀的现实
悲哀的现实 2020-12-13 06:23

I am trying to install the mysql 2.8.1 gem. I would be using it to build a Rails 2.0.2 application on Ubuntu 10.04. I would be using Ruby 1.8.7. I have installed the develop

4条回答
  •  生来不讨喜
    2020-12-13 06:57

    You should do what the error message tells you: check the mkmf.log! Search for this file using find /usr/lib/ruby/gems/1.8/gems/ -name mkmf.log. Usually, this error message appears because you forgot to install the -dev package for the extension you were trying to install. So if you wanted to install the mysql gem, you probably forgot to install the libmysqlclient14-dev first. Do an apt-cache search | grep dev to find the appropriate packages.

    plz check this for more information

提交回复
热议问题