安装错误 - 在Windows 7上安装MySQL2 Gems

时间:2014-09-23 19:29:38

标签: ruby-on-rails gem mysql2

我无法为我的rails应用程序安装最新版本的mysql2 gem。我已经尝试了建议in this answer的选项。但是安装的旧版本没有任何错误!     gem卸载mysql2     gem install mysql2 -v 0.2.6

以下是我尝试安装最新版本的mysql2 gem时弹出的错误

C:\Users\EcoAd>gem install mysql2 -v '0.3.16' -- '--with-mysql-lib="C:\Program Files\MySQL\MySQL Server 5.6\lib" --with-mysql-include="C:\Program Files\MySQL\MySQL Server 5.6\include"'

Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-mysql-lib="C:\Program Files\MySQL\MySQL Server 5.6\lib" --with-mysql-include="C:\Program Files\MySQL\MySQL Server 5.6\include"'

This could take a while...
ERROR:  Error installing mysql2:
    ERROR: Failed to build gem native extension.

C:/Ruby193/bin/ruby.exe -r ./siteconf20140923-3596-odrqgn.rb extconf.rb --with-mysql-lib="C:\Program Files\MySQL\MySQL Server 5.6\lib" --with-mysql-include="C:\Program Files\MySQL\MySQL Server 5.6\include"

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

使用--with-mysql-dir = C:\ Program Files \ MySQL \ MySQL Server 5.6

checking for main() in -llibmysql... yes
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes

creating Makefile

make  clean
Makefile:165: *** target pattern contains no `%'.  Stop.

make
Makefile:165: *** target pattern contains no `%'.  Stop.

make failed, exit code 2

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.3.16 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/mysql2-0.3.16/gem_make.out

C:\用户\ EcoAd>

0 个答案:

没有答案