New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not compile `mysqlclient-sys`. #1608

Closed
Sjoerrdd opened this Issue Mar 31, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@Sjoerrdd

Sjoerrdd commented Mar 31, 2018

Hello,
I want to connect to a mysql database, but I'm getting the following error:

   Compiling mysqlclient-sys v0.2.3
error: could not find native static library `mysqlclient`, perhaps an -L flag is missing?

error: Could not compile `mysqlclient-sys`.

To learn more, run the command again with --verbose.

Versions

  • Rust: 1.26.0 nightly
  • Diesel: 1.1.1
  • Database: MySQL 5.7.0
  • Operating System Windows 10

Steps to reproduce

Cargo.toml:

[package]
name = "poll"
version = "0.1.0"
authors = ["Gebruiker"]

[dependencies]
rocket = "0.3.6"
rocket_codegen = "0.3.6"
diesel = { version = "1.1.1", features = ["mysql"] }
dotenv = "0.9.0"

** #1286 does not solve the issue for me **

@sgrif

This comment has been minimized.

Member

sgrif commented Mar 31, 2018

Please have a look at the readme of that crate (https://github.com/sgrif/mysqlclient-sys). If you are still having issues, please open an issue over there.

@sgrif sgrif closed this Mar 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment