rails 2.1 – mysql adapter

I installed rails 2.1. I notice this version doesn’t include a mysql adapter. Therefore, I need to install the adapter manually.

run this command to install:
gem install mysql

but I got some errors. It cannot find mysqlclient library.
I try the following command to specific the path of mysql_config, it works.

gem install mysql — –with-mysql-config=/path/to/your/mysql/bin/mysql_config

MySQL Database access problem



WordPress.com Logo

你正使用 WordPress.com 帳號留言。 登出 / 變更 )

Twitter picture

你正使用 Twitter 帳號留言。 登出 / 變更 )


你正使用 Facebook 帳號留言。 登出 / 變更 )

Google+ photo

你正使用 Google+ 帳號留言。 登出 / 變更 )

連結到 %s

%d 位部落客按了讚: