mysql2
mysql2 copied to clipboard
Library not loaded: libssl.1.1.dylib
Hello, I'm trying to use this gem but I'm having an error when I use this command bundle exec rake db:seed
I'm getting the following error, I'm using MacOS:
** Invoke db:seed (first_time)
** Execute db:seed
rake aborted!
LoadError: dlopen(/Users/qiqemtz/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/mysql2-0.5.2/lib/mysql2/mysql2.bundle, 9): Library not loaded: libssl.1.1.dylib
Referenced from: /Users/qiqemtz/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/mysql2-0.5.2/lib/mysql2/mysql2.bundle
Reason: image not found - /Users/luisj.eronimo/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/mysql2-0.5.2/lib/mysql2/mysql2.bundle
I thought that it was a link error, so I tried to locate the libssl.1.1.dylib and create a link in the location where is trying to be found but it didn't worked for me
I'd like to know if anybody had the same issue
Thanks
I am having this same issue @QiqeMtz . Let me know if you figured anything out. Somewhere in the process of install additional ruby versions on rvm, updating or downgrading my rubygems version, this got hosed on my main work project. Everything I am finding online is about how to get the libmysqlclient.18.dylib to load, but that is already loaded for me. I think i may just have to reinstall mysql but I'm hoping to avoid that fix.
@QiqeMtz , i just caved and reinstall mysql using brew and the problem went away.
Maybe this one might help you? https://github.com/brianmario/mysql2/issues/795#issuecomment-433219176
@QiqeMtz , i just caved and reinstall mysql using brew and the problem went away.
I tried your method with no success, the solution that worked for me was to delete my Ruby installation and reinstall everything related to