Install mysql client brew4/2/2023 ![]() Would still be interested in knowing whether there are other ways of doing this. Please note that not all platforms are equally suitable for running MySQL, and that not all platforms on which MySQL is known to run are officially supported by Oracle Corporation. ![]() I am pretty unfamiliar with how to do linking correctly in Rust (and in general tbh)- are there extra steps I need to do here to link mysqlclient directly?ĮDIT: I have managed to do this using Rust Flags, by running RUSTFLAGS="-L/usr/local/opt/mysql-client/lib" cargo install diesel_cli. Installation of MySQL generally follows the steps outlined here: Determine whether MySQL runs and is supported on your platform. I set the PATH and flags as in that warning message, but I still get the above linking error when trying to install the diesel-cli tool. If you need to have mysql-client first in your PATH run:Įcho 'export PATH="/usr/local/opt/mysql-client/bin:$PATH"' > ~/.bash_profileįor compilers to find mysql-client you may need to set:Įxport LDFLAGS="-L/usr/local/opt/mysql-client/lib"Įxport CPPFLAGS="-I/usr/local/opt/mysql-client/include” ![]() Mysql-client is keg-only, which means it was not symlinked into /usr/local, During installation I got the following warning: I installed mysql client using home-brew : brew install mysql-client. Hi there, I have been trying to install the rust diesel cli tool, using cargo install diesel_cli, but the installation fails with a linking errorĬlang: error: linker command failed with exit code 1
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |