Error with mysqlclient when install diesel-cli

I trying to install latest diesel-cli (v2.0.0) with mysql feature only, but got an error:

error: could not find native static library `mysqlclient`, perhaps an -L flag is missing?

error: could not compile `mysqlclient-sys` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `diesel_cli v2.0.0`, intermediate artifacts can be found at 

I use this command to install:

cargo install diesel_cli --no-default-features --features mysql

Could somebody explain how to fix the issue ?

On my side I have latest mysql installed, I use windows 10

Solved according to error: Could not compile `mysqlclient-sys`. · Issue #1286 · diesel-rs/diesel · GitHub

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.