I recently uninstalled the [email protected] and installed [email protected]. But now when I start the rails server, I get the following error.
Library not loaded: /usr/local/opt/[email protected]/lib/libmysqlclient.18.dylib (LoadError)
It is still searching for [email protected] that is why it is failing. I have started the mysql server and even added the below line in my .zshrc
file
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
Please let me know if someone knows how to fix this.
I have the following file present:
/usr/local/opt/[email protected]/lib/libmysqlclient.20.dylib
CodePudding user response:
Just uninstall the mysql2 gem that was build against your old MySQL version with
gem uninstall mysql2
And reinstall it with
Bundle install