Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WAMP&x27在哪里;"s MySQL";lib";及;包括「;目录?_Mysql_Ruby On Rails_Ruby On Rails 3_Windows 7_Wamp - Fatal编程技术网

WAMP&x27在哪里;"s MySQL";lib";及;包括「;目录?

WAMP&x27在哪里;"s MySQL";lib";及;包括「;目录?,mysql,ruby-on-rails,ruby-on-rails-3,windows-7,wamp,Mysql,Ruby On Rails,Ruby On Rails 3,Windows 7,Wamp,我已经提供了MySQL的lib和include目录的路径,如前所述 但是,我在Windows7(32位)上的WAMP安装中找不到这些目录 我试图指向bin目录: gem install mysql2 -- '--with-mysql-lib="c:\wamp\bin\mysql\mysql5.5.8\bin" --with-mysql-include="c:\wamp\bin\mysql\mysql5.5.8\bin"' 但它不起作用: ... checking for rb

我已经提供了MySQL的
lib
include
目录的路径,如前所述

但是,我在Windows7(32位)上的WAMP安装中找不到这些目录

我试图指向
bin
目录:

gem install mysql2 -- 
   '--with-mysql-lib="c:\wamp\bin\mysql\mysql5.5.8\bin" 
    --with-mysql-include="c:\wamp\bin\mysql\mysql5.5.8\bin"'
但它不起作用:

...
checking for rb_thread_blocking_region()... yes
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.
...

请告知。

将目录位置更改为将两个dll都指向其中的bin目录

即:


这应该行得通。只需使用正确的版本更改版本文件

以下是对我有效的方法:

gem install mysql2 -- '--with-mysql-dir="C:\wamp\bin\mysql\mysql5.5.xx"'
已经搜索了几个小时,没有看到这种变化的建议,所以希望它会帮助别人

gem install mysql2 -- '--with-mysql-dir="C:\wamp\bin\mysql\mysql5.5.xx"'