Dev V
Dev V

Reputation: 155

Unable to start rails server after install [email protected]

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

Upvotes: 0

Views: 149

Answers (1)

spickermann
spickermann

Reputation: 107057

Just uninstall the mysql2 gem that was build against your old MySQL version with

gem uninstall mysql2

And reinstall it with

Bundle install

Upvotes: 2

Related Questions