我已经在 ubuntu 机器上安装了 ruby on rails(确切地说是 gitlab)xampp
,但我无法将现有连接mysql
到 ror。mysql2
我可以通过运行安装 gem
"gem install mysql2 -- --with-mysql-include=/opt/lampp/include --with-mysql-config=/opt/lampp/bin/mysql_config".
但是当我运行“捆绑安装”时,它出现了:
"Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension."
和
"An error occurred while installing mysql2 (0.3.11)"
等等。我应该怎么办?