i trying run rails server command showing mysql2 load error. place error log here 
i searched many places. tried install bundle using "gem install mysql2 --ruby=platform" command using connector c "libmysql.dll" file pasted in ruby/bin no use.
i have mysql installed on system long when doing jdbc connections. sql server version 5.0- version causing error? or need uninstall mysql system , install latest version! , doubt me how mysql server 5.0 connected rails no have no idea it, because while installation used connector c 6.1 mysql2 installation command promt!
i tried ruby on rails - cannot load such file -- mysql2/2.2/mysql2 (loaderror)
i tried error "...cannot load such file -- mysql2/2.0/mysql2 (loaderror)". on windows xp ruby 2.0.0 getting same error.
i think have given details regarding versions , did! tried doing 50 times no progress! hope problem solved !thank you!
the following you.
gem uninstall mysql2 download last mysql connector http://cdn.mysql.com/downloads/connector-c/mysql-connector-c-noinstall-6.0.2-win32.zip extract c:\connector-6.0.2 gem install mysql2 --platform=ruby -- '--with-mysql-lib="c:\connector-6.0.2\lib" --with-mysql-include="c:\connector-6.0.2\include" --with-mysql-dir="c:\connector-6.0.2"' or shorter:
gem install mysql2 --platform=ruby -- --with-opt-dir="c:\connector-6.0.2"
Comments
Post a Comment