运行软件包安装时出错 Installing mysql2 (0.3.11) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. … Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling. 当我运行确保gem install mysql2 -v '0.3.11' 。我仍然得到相同的错误。
我正在尝试通过Bundler安装mysql2 gem,但它一直死于以下错误: ** executing command /home/cc_rails/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/installer.rb:483:in 'rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /home/cc_rails/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb –with-mysql-config=/usr/bin/mysql_config checking for rb_thread_blocking_region()… yes checking for mysql.h… no checking for mysql/mysql.h… no —– mysql.h is missing. please check your installation of mysql and try again. —– *** extconf.rb failed *** Could not create […]