LoginSignup
3
1

More than 5 years have passed since last update.

Tips: cargo install diesel_cliが失敗する

Last updated at Posted at 2017-08-16

現象

cargo install diesel_cliとすると以下のエラーが出て失敗する。

error: linking with `cc` failed: exit code: 1

(中略)

  = note: ld: library not found for -lmysqlclient
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

解決方法

例えばPostgreSQLを使用するときは
cargo install diesel_cli --no-default-features --features "postgres"
とする。

環境:

  • OS: macOS X 10.12.6
  • Rust: 1.19.0
  • Cargo: 0.20.0
  • Diesel_cli: 0.15.0

参考

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1