我知道这个问题之前已经被问过,我尝试了所有的解决方案,但似乎无济于事。我已经花了大半天的时间来处理这个问题,但我已经束手无策了。
我正在尝试在 Windows 计算机上设置我的应用程序。我使用了 DevKit 附带的 Rails 安装程序。
这工作正常:
gem install mysql2 -- --with-mysql-include=\mysql\include --with-mysql-lib=\mysql\lib\opt --with- mysql-config=\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
但是,没有骰子。
任何指示将不胜感激。
I know this question has been asked before, ive tried all the solutions and cant seem to get anywhere. Ive spent the better half of the day on this and im at my wits end.
I am trying to setup my app on a windows machine. Ive used the rails installer which comes with DevKit.
This works fine:
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
But bundle install
fails with the native extension error.
Ive tried:
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
But, no dice.
Any pointers would be much appreciated.
发布评论
评论(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
Fixed it by using
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