Hello Folks.
I want to install mysql2 gem on my Windows Machine.
Mysql installed on that path : C:\Program Files (x86)\MySQL Server 5.5
and i following below command but its occured that error.
Command.
gem install mysql2 -v=0.3.11 --platform=ruby –
–with-mysql-include=C:\Program Files (x86)\MySQL Server 5.5\include
–with-mysql-lib=C:\Program Files (x86)\MySQL Server 5.5\lib
–with-mysql-dir=C:\Program Files (x86)\MySQL Server 5.5
Error.
Temporarily enhancing PATH to include DevKit…
Building native extensions. This could take a while…
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
–with-mysql-include=C:\Program Files (x86)\MySQL Server 5.5\include
–with-mysql-lib=C:\Program Files (x86
r 5.5\lib --with-mysql-dir=C:\Program Files (x86)\MySQL Server 5.5
C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe: No such file or directory –
extconf.rb (LoadError)
Gem files will remain installed in
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11 for
inspection.
Results logged to
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11/ext/mysql2/gem_make.out
Can anyone help me?.