开发者

Where are WAMP's MySQL "lib" and "include" directories?

I have provide the path to MySQL's lib and 开发者_如何学JAVAinclude directories as described in step #10 here.

However, I can't find these directories in my WAMP installation on Windows 7 (32-bits).

I tried to point to the bin directory:

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"'

but it doesn't work:

...
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.
...

Please advise.


Here's what worked for me:

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

Been searching for a few hours and not seen this variation suggested, so hopefully it will help someone!


Change the directory location to point both to the bin directory both dll's are in there.

I.E.:

gem install mysql2 -- '--with-mysql-lib="c:\wamp\bin\mysql5.1.xx\bin" --with-mysql-include="c:\wamp\bin\mysql5.1.xx\bin"'

that should work. just change the version file with the correct version.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜