我看到其他人也有类似的问题,但没有一个解决方案对我有用.0.3.14 gem存在于其他gem文件中.我完全按照此处的说明完成了所有操作:https://github.com/brianmario/mysql2.我仍然得到以下内容.我不知道为什么安装程序指示它找不到包含目录,因为我已经检查过并且它存在.thread.h文件存在,但不存在于ruby目录中.而是它在这里:C:\ RailsInstaller\DevKit\lib\perl5\5.8\msys\CORE \
我正在运行Windows 7并尝试在Aptana 3中构建我的rails项目.我的Ruby是1.9.3.
$ gem install mysql2 -v 0.3.14 -- --with-mysql-dir=C:\MySQL-Connector-C-6.1
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb --with-mysql-dir=C:MySQL-Connector-C-6.1
checking for ruby/thread.h... no
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
-----
Cannot find include dir at C:MySQL-Connector-C-6.1/include
-----
*** extconf.rb failed ***
Could …Run Code Online (Sandbox Code Playgroud) ruby 1.8.7 gem 1.3.7 rails 3.0.0,3.0.0.rc
当我写rails -v错误信息来
在任何gem源中都找不到gem'mysql2 <> = 0,runtime>'. 尝试运行'bundle install'.
当我运行bundle install时,它也无法安装mysql2
请帮我.