Saturday, 24 August 2013

My rails s and other commands dont work anymore

My rails s and other commands dont work anymore

i am new to rails . i have rcently installed the mysql2 gem with the
following command
gem install mysql2 –version=0.2.7 — –with-mysql-lib="c:\xampp\mysql\lib"
–with-mysql->include="c:\xampp\mysql\include"
i am using xampp on windows with rails version 3 .... the gem was actually
installed but none of the generate commands work im getting the following
errors
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.13/lib/mysql2.rb
:8:in require': 126: The specified module could not be found. -
C:/RailsInsta
ller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.13/lib/mysql2/mysql2.so
(Load Error) from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.13/
lib/mysql2.rb:8:in' from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/
lib/bundler/runtime.rb:72:in require' from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/
lib/bundler/runtime.rb:72:inblock (2 levels) in require' from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/
lib/bundler/runtime.rb:70:in each' from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/
lib/bundler/runtime.rb:70:inblock in require' from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/
lib/bundler/runtime.rb:59:in each' from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/
lib/bundler/runtime.rb:59:inrequire' from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/
lib/bundler.rb:132:in require' from
C:/Sites/depot4/config/application.rb:7:in' from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1
3/lib/rails/commands.rb:24:in require' from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1
v3/lib/rails/commands.rb:24:in' from script/rails:6:in require' v from
script/rails:6:in'

No comments:

Post a Comment