我试图将我的 aptana rails 应用程序连接到 mysql。但一条错误消息显示 llibmysql 丢失。请帮帮我
这是我的步骤,如果我错过了什么,请告诉我。
1- 打开 aptana 并创建新的铁路项目 2- aptana 自动创建所有文件夹,
$ bundle install
3-然后我将database.yml配置为
adapter: mysql2
encoding: utf8
reconnect: false
database: blog_development
pool: 5
username: root
password: root
host: localhost
4- 在 gem 文件中添加 mysql2 5- 下载 mysql-connector-c-noinstall-6.0.2-win32.zip 并将其解压缩到桌面
5-
$ gem install mysql --platform=ruby -- --with-mysql-dir=D:\Software-backup\mysqlconnecter
6- 然后再次捆绑安装 7- 然后 rake db:create
但似乎错误信息这里是错误信息
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb --with-mysql-dir=C:UsersasusDesktopabc
checking for main() in -llibmysql... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
我不知道如何解决这个..请帮助..
谢谢