i just deployed my app on ubuntu with passenger.
i installed the mysql gem as follows:
$ sudo gem install mysql
Select which gem to install for your platform (i486-linux)
- mysql 2.7.3 (mswin32)
- mysql 2.7.1 (mswin32)
- mysql 2.7 (ruby)
- mysql 2.6 (ruby)
- Skip this gem
- Cancel installation
Building native extensions. This could take a while…
Successfully installed mysql-2.7
ok. restarted my app and in my log file was
“WARNING: You’re using the Ruby-based MySQL library that
ships with Rails. This library is not suited for production.
Please install the C-based MySQL library instead (gem install mysql).”
i tried installation switchers like “-with-mysql-config” and
“-with-mysql-dir” but none solved the problem. i checked for missing
packages (rub1.8-dev, build-essential, libmysqlclient15-dev, etc) and
they are there.
any ideas? thanks.