Sunday, December 24, 2023

Mysql and Python Nowadays 🤦

 Some notes after installing mysql-client and pkg-config using brew:

mysql-client is keg-only, which means it was not symlinked into /opt/homebrew,

because it conflicts with mysql (which contains client libraries).


If you need to have mysql-client first in your PATH, run:

  echo 'export PATH="/opt/homebrew/opt/mysql-client/bin:$PATH"' >> ~/.zshrc


For compilers to find mysql-client you may need to set:

  export LDFLAGS="-L/opt/homebrew/opt/mysql-client/lib"

  export CPPFLAGS="-I/opt/homebrew/opt/mysql-client/include"


For pkg-config to find mysql-client you may need to set:

  export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"

==> Summary

🍺  /opt/homebrew/Cellar/mysql-client/8.2.0: 128 files, 151.0MB

==> Caveats

==> mysql-client

mysql-client is keg-only, which means it was not symlinked into /opt/homebrew,

because it conflicts with mysql (which contains client libraries).


If you need to have mysql-client first in your PATH, run:

  echo 'export PATH="/opt/homebrew/opt/mysql-client/bin:$PATH"' >> ~/.zshrc


For compilers to find mysql-client you may need to set:

  export LDFLAGS="-L/opt/homebrew/opt/mysql-client/lib"

  export CPPFLAGS="-I/opt/homebrew/opt/mysql-client/include"


For pkg-config to find mysql-client you may need to set:

  export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"