0
我在我的Mac osX maverick上安裝mysql2時出現問題。請看看我收到的回覆Mac上的Mysql2安裝
Muhammeds-MacBook-Pro:second_app muhammedz786$ gem install mysql2 --platform=ruby -- '--with-mysql-dir="C:\mysql-connector\"'
Building native extensions with: '--with-mysql-dir="C:\mysql-connector\"'
This could take a while...
sh: -c: line 0: unexpected EOF while looking for matching `"'
sh: -c: line 1: syntax error: unexpected end of file
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/muhammedz786/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb --with-mysql-dir="C:\mysql-connector\"
extconf failed, exit code 2
Gem files will remain installed in /Users/muhammedz786/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.14 for inspection.
Results logged to /Users/muhammedz786/.rvm/gems/ruby-2.0.0-p247/extensions/x86_64-darwin-12/2.0.0-static/mysql2-0.3.14/gem_make.out
請幫忙!
'C:\ mysql-connector \'是一個Windows路徑,而不是OS X/Unix路徑。 –
我嘗試使用gem install mysql2以及。 –