mysql - Rails - Library not loaded: @@HOMEBREW_PREFIX@@/opt/openssl/lib/libssl.1.0.0.dylib (LoadError) -
mysql - Rails - Library not loaded: @@HOMEBREW_PREFIX@@/opt/openssl/lib/libssl.1.0.0.dylib (LoadError) -
i fighting error occurs when run rails s:
/users/adam/.rvm/gems/ruby-2.0.0-p481/gems/mysql2-0.3.16/lib/mysql2.rb:8:in `require': dlopen(/users/adam/.rvm/gems/ruby-2.0.0-p481/extensions/x86_64-darwin-13/2.0.0-static/mysql2-0.3.16/mysql2/mysql2.bundle, 9): library not loaded: @@homebrew_prefix@@/opt/openssl/lib/libssl.1.0.0.dylib (loaderror) referenced from: /usr/lib/libmysqlclient.18.dylib reason: image not found - /users/adam/.rvm/gems/ruby-2.0.0-p481/extensions/x86_64-darwin-13/2.0.0-static/mysql2-0.3.16/mysql2/mysql2.bundle
mysql installed through brew.
unfortunately not sure how prepare issue, appreciate every help.
thank you
i having same issue on rbenv setup after updating few things in homebrew. recompiled ruby , problem went away. in case looks might want recompile gems well. according this so can run rvm reinstall 2.0.0-p481
(recompiles ruby , removes gems) , re-bundle project , should go.
i'm pretty sure happened new version of openssl installed dependency else installed using homebrew , broke linking between compiled ruby , old version of libssl.
mysql ruby-on-rails ruby osx mysql2
Comments
Post a Comment