【问题标题】:MySql2 and bundler on windowsWindows 上的 MySql2 和捆绑器
【发布时间】:2011-11-09 00:02:12
【问题描述】:

我知道以前有人问过这个问题,我尝试了所有的解决方案,但似乎无处可去。我花了大半天的时间在这上面,我束手无策。

我正在尝试在 Windows 机器上设置我的应用程序。我使用了 DevKit 附带的 rails 安装程序。

这很好用:

gem install mysql2 -- --with-mysql-include=<PATH_TO_XAMPP>\mysql\include --with-mysql-lib=<PATH_TO_XAMPP>\mysql\lib\opt --with-mysql-config=<PATH_TO_XAMPP>\mysql\bin\mysql_config

但是bundle install 失败并出现本机扩展错误。

我试过了:

bundle config build.mysql --with-mysql-include=e:\xampp\xampp\mysql\include --with-mysql-lib=e:\xampp\xampp\mysql\lib\opt --with-mysql-config=e:\xampp\xampp\mysql\bin\mysql_config

但是,没有骰子。

任何指针将不胜感激。

【问题讨论】:

    标签: windows ruby-on-rails-3 bundler mysql2


    【解决方案1】:

    通过使用修复它

    bundle config build.mysql2 --with-mysql-include=e:\xampp\xampp\mysql\include --with-mysql-lib=e:\xampp\xampp\mysql\lib\opt --with-mysql-config=e:\xampp\xampp\mysql\bin\mysql_config

    【讨论】:

    • 我现在正试图让它工作,但我发现如果你为配置指定多个标志,bundler 会忘记它。有什么办法吗?
    猜你喜欢
    • 2011-03-28
    • 2011-05-03
    • 2018-12-02
    • 2013-01-30
    • 2015-01-20
    • 1970-01-01
    • 1970-01-01
    • 2011-08-19
    • 2018-12-15
    相关资源
    最近更新 更多