[英]MySql2 and bundler on windows
我知道之前已經問過這個問題,我嘗試了所有的解決方案,似乎無法到達任何地方。 我花了一天的時間在這一天,我的智慧結束了。
我想在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
但是,沒有骰子。
任何指針都將非常感激。
通過使用修復它
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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.