2011-09-02 26 views
0

我知道這個問題之前已經問過,我試過所有的解決方案,並且似乎無法獲得任何地方。我在這一天花了大半天的時間,並且在我的智慧結尾。Windows上的MySql2和捆綁器

我想在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 

但是,沒有骰子。

任何指針將不勝感激。

回答

2

使用

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

+0

我試圖讓這個現在的工作修正它,但我發現,如果你的配置指定多個標誌,捆綁忘記它。有沒有辦法解決這個問題? – Trejkaz