2014-06-30 59 views

回答

1

最後this faq工作。我猜是因爲我在文章中下載exactly the version of the connector linked和運行

gem install mysql2 --no-ri --no-rdoc --platform=ruby -- --with-mysql-include=C:/mysql-connector-c-noinstall-6.0.2-winx64\include --with-mysql-lib=C:/mysql-connector-c-noinstall-6.0.2-winx64\lib 

編輯 - 正確的版本使用的連接器的64位版本found here。正常版本segfaults,所以多虧了這個線程,我發現正確的版本https://github.com/brianmario/mysql2/issues/372

+0

謝謝你..你可以節省很多時間.. – Sreekar