I've been fighting with a Rails install on my Mac for some time. The error I'm getting (in my development log) says:
Status: 500 Internal Server Error no such file to load -- mysql
Here's some info:
- I can successfully rake db:migrate my application.
- I've installed the MySQL gem and it appears in the gem list: mysql (2.8.1).
- I have Passenger installed.
- The error comes from an existing rails app that works on our production server.
- Creating a new Rails app, a new MySQL db (using
mysqladmin -uroot create sampledb
) works fine.
I've googled this and can't find anything specific to this error. There are a few related results where the solutions relate to paths when installing the MySQL gem. For example,
sudo env ARCHFLAGS="-arch i386" gem install mysql -- \
--with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib \
--with-mysql-include=/usr/local/mysql/include
Has anyone else experienced this issue or suggest a solution?