第一个rails应用程序问题[需要libmysqlclient.so.18 LoadError]

时间:2014-12-06 15:58:32

标签: mysql ruby-on-rails runtime-error

我第一次运行" rails服务器"时遇到问题。  看看......

  

alvaro @ debian:〜/ rails / rc / rgcl $ rails server   /usr/lib/ruby/vendor_ruby/rails/script_rails_loader.rb:11:警告:不安全的世界可写dir /home/alvaro/springsource/grails-2.2.4/bin在PATH中,模式040777   /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:211:警告:不安全的世界可写dir /home/alvaro/springsource/grails-2.2.4/bin在PATH中,模式040777   /var/lib/gems/1.9.1/gems/mysql2-0.3.17/lib/mysql2.rb:8:in require': /opt/lampp/lib/libmysqlclient.so.18: symbol SSL_accept, version OPENSSL_1.0.1 not defined in file libssl.so.1.0.0 with link time reference - /var/lib/gems/1.9.1/gems/mysql2-0.3.17/lib/mysql2/mysql2.so (LoadError) from /var/lib/gems/1.9.1/gems/mysql2-0.3.17/lib/mysql2.rb:8:in'       来自/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:68:in require' from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:68:in块(2级)in require'       来自/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:66:in each' from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:66:in块中的要求'       来自/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:55:in each' from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:55:in要求'       来自/usr/lib/ruby/vendor_ruby/bundler.rb:119:in require' from /home/alvaro/rails/rc/rgcl/config/application.rb:7:in'       来自/usr/lib/ruby/vendor_ruby/rails/commands.rb:53:in require' from /usr/lib/ruby/vendor_ruby/rails/commands.rb:53:in阻止'       来自/usr/lib/ruby/vendor_ruby/rails/commands.rb:50:in tap' from /usr/lib/ruby/vendor_ruby/rails/commands.rb:50:in'       来自script / rails:6:require' from script/rails:6:in'

我不知道为什么有grails目录?以及如何使用mysql库解决错误。 PD:我需要使用mysql。

问候

0 个答案:

没有答案