我试图将我的aptana rails应用程序连接到mysql。但是错误消息显示llibmysql丢失。 请帮我请Rails - 第一个应用程序Mysql错误
这是我的步骤,请让我知道如果我错过了任何东西。
1-开放集锦和创建的新轨道项目 2-集锦自动创建的所有文件夹,
$ bundle install
3-然后我已配置的database.yml作为
adapter: mysql2
encoding: utf8
reconnect: false
database: blog_development
pool: 5
username: root
password: root
host: localhost
4-加入mysql2在gem文件中 5- downloded mysql-connector-c-noinstall-6.0.2-win32.zip并将其提取到桌面
5- $ gem install mysql --platform=ruby -- --with-mysql-dir=D:\Software-backup\mysqlconnecter
6-然后重新安装捆绑7 然后耙分贝:创建
,但似乎错误信息 这里是错误消息
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.
我不知道如何解决这个..请帮助..
谢谢
可以粘贴'mkmf.log'的输出吗? – 2013-02-11 17:02:26
请原谅我,是一个初学者,我不知道mkmf.log的位置.. – 2013-02-11 17:07:38
看起来类似于http://stackoverflow.com/questions/5841406/cannot-install-mysql2-gem – AnkitG 2013-02-11 17:34:07