gpt4 book ai didi

mysql - WAMP 的 MySQL "lib"和 "include"目录在哪里?

转载 作者:可可西里 更新时间:2023-11-01 08:55:21 25 4
gpt4 key购买 nike

我已经提供了 MySQL 的 libinclude 目录的路径,如 in step #10 here 所述.

但是,我在 Windows 7(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.
...

请指教。

最佳答案

这是对我有用的:

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

已经搜索了几个小时,但没有看到建议的变体,所以希望它能对某人有所帮助!

关于mysql - WAMP 的 MySQL "lib"和 "include"目录在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5779548/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com