2

I'm trying to install the mysql2 gem for a rails app on a machine with an external mysql server. The machine I'm installing onto doesn't have or need a mysql server on it. However, whenever I try to install it always checks for a mysql install and fails. Is there an install configuration or work-around for this?

Cheers

lbz
  • 9,560
  • 2
  • 30
  • 35
Bradley Priest
  • 7,438
  • 1
  • 29
  • 33

1 Answers1

1

You need just the MySQL header files to be there where the native compiling takes place.

Depending on your OS / Distribution you should find the way to install the header files without installing the actual server (Debian / Ubuntu alikes should allow you to do so with the standard apt-get, but I might be wrong).

If you are on Windows, please check this post about mysql2 gem issues on Windows.

Community
  • 1
  • 1
lbz
  • 9,560
  • 2
  • 30
  • 35