You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My app Rails development server was running great, until Apple said I should update to Monterey version 12.3, which included an xcode update.
I next tried to run the db migrate:
rake db:migrate
To which I received the following message:
rake aborted!
LoadError: dlopen(/Users/joseph-mac/.asdf/installs/ruby/3.1.0/lib/ruby/gems/3.1.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle, 0x0009): Library not loaded: libssl.1.1.dylib
Referenced from: /Users/joseph-mac/.asdf/installs/ruby/3.1.0/lib/ruby/gems/3.1.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle
Reason: tried: 'libssl.1.1.dylib' (no such file), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file), '/Users/joseph-mac/ProxLearn/Development/PLIConnectV2/repositories/pli2_tw/libssl.1.1.dylib' (no such file), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file) - /Users/joseph-mac/.asdf/installs/ruby/3.1.0/lib/ruby/gems/3.1.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle
My original MySQL2 gem was built as follows:
gem install mysql2 -- --with-opt-dir=/opt/homebrew/opt/[email protected] –with-mysql-dir=/opt/homebrew/opt/mysql
And as far as I remember, this is where homebrew was. I tried looking for the files:
Building native extensions with: '--with-opt-dir=ls -l /usr/local/Cellar/[email protected]/1.1.1m/lib --with-cppflags=-I/usr/local/Cellar/[email protected]/1.1.1m/include'
This could take a while...
Successfully installed mysql2-0.5.3
1 gem installed
But, when I run:
rake db:migrate
I get the exact same error I started with.
When I do:
which openssl
The response is:
/usr/bin/openssl
Which is an executable, not a folder.
I tried uninstalling the MySQL2 gem before every step, and then re-installing, and then re-bundling. Same error.
Any ideas?
The text was updated successfully, but these errors were encountered:
My app Rails development server was running great, until Apple said I should update to Monterey version 12.3, which included an xcode update.
I next tried to run the db migrate:
rake db:migrate
To which I received the following message:
My original MySQL2 gem was built as follows:
gem install mysql2 -- --with-opt-dir=/opt/homebrew/opt/[email protected] –with-mysql-dir=/opt/homebrew/opt/mysql
And as far as I remember, this is where homebrew was. I tried looking for the files:
/opt/homebrew/opt/[email protected]
And the response was:
no such file or directory: /opt/homebrew/opt/[email protected]
The following:
ls -l /opt/homebrew
Produces:
ls: /opt/homebrew: No such file or directory
Which means that the OS upgrade eradicated the /opt/homebrew, or at least eradicated the Symlinks to it.
However, doing:
brew list
Produces:
Digging further into it, it looks like the homebrew real folder, is at:
/usr/local/Cellar
And I found the following folders:
Great, so off to build the MySQL2 gem again:
gem install mysql2 -- --with-opt-dir=ls -l /usr/local/Cellar/[email protected]/1.1.1m/lib --with-cppflags=-I/usr/local/Cellar/[email protected]/1.1.1m/include
And the response is:
But, when I run:
rake db:migrate
I get the exact same error I started with.
When I do:
which openssl
The response is:
/usr/bin/openssl
Which is an executable, not a folder.
I tried uninstalling the MySQL2 gem before every step, and then re-installing, and then re-bundling. Same error.
Any ideas?
The text was updated successfully, but these errors were encountered: