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

`diesel_cli` does not compile when MySql is not installed #735

Closed
kud1ing opened this Issue Feb 18, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@kud1ing

kud1ing commented Feb 18, 2017

I want to use Diesel with Sqlite only. A cargo install diesel_cli gives:

Build failed, waiting for other jobs to finish...
error: failed to compile `diesel_cli v0.11.0`, intermediate artifacts can be found at `/var/folders/z_/3qpjvhwx54zdk21csqshvkr40000gp/T/cargo-install.Cvzkx1a1kpyS`

Caused by:
  failed to run custom build command for `mysqlclient-sys v0.1.2`
process didn't exit successfully: `/var/folders/z_/3qpjvhwx54zdk21csqshvkr40000gp/T/cargo-install.Cvzkx1a1kpyS/release/build/mysqlclient-sys-f2e6918a59e30a72/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to locate `mysql.h`', /Users/rustbuild/src/rust-buildbot/slave/stable-dist-rustc-mac/build/src/libcore/option.rs:715
note: Run with `RUST_BACKTRACE=1` for a backtrace.

@kud1ing kud1ing changed the title from `diesel_cli` does not compile without MySql installed to `diesel_cli` does not compile when MySql is not installed Feb 18, 2017

@sgrif

This comment has been minimized.

Member

sgrif commented Feb 18, 2017

@sgrif sgrif closed this Feb 18, 2017

@kud1ing

This comment has been minimized.

kud1ing commented Feb 18, 2017

I didn't know about cargo install diesel_cli --no-default-features --features sqlite. I was following the getting started guide. Maybe it could be mentioned there.

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