|
error: could not find native static library OS: Windows 10 |
Replies: 2 comments 3 replies
|
This error means you need to provide a libmysqlclient version compatible to your compiler. Checkout the official mysql documentation for possible ways to install this library on your operating system. |
|
This is the connector https://cdn.mysql.com/archives/mysql-connector-c/mysql-connector-c-6.1.11-winx64.zip unzip it, for example in C:\mysql-connector-c-6.1.11-winx64 then add windows env variable MYSQLCLIENT_LIB_DIR pointing to "C:\mysql-connector-c-6.1.11-winx64\lib\vs14" then create a .env file in the project root, at same level of Cargo.toml Then install from windows prompt (do not use prompt from vs code !) Ensure your .toml has this |
This is the connector
https://cdn.mysql.com/archives/mysql-connector-c/mysql-connector-c-6.1.11-winx64.zip
unzip it, for example in C:\mysql-connector-c-6.1.11-winx64
then add windows env variable
MYSQLCLIENT_LIB_DIR
pointing to
"C:\mysql-connector-c-6.1.11-winx64\lib\vs14"
then create a .env file in the project root, at same level of Cargo.toml
Then install from windows prompt (do not use prompt from vs code !)
Ensure your .toml has this