liljencrantz / crush

Crush is a command line shell that is also a powerful modern programming language.
MIT License
1.84k stars 35 forks source link

Error while building. #30

Closed avinashkanaujiya closed 4 years ago

avinashkanaujiya commented 4 years ago

Error is :

error: failed to run custom build command for `libdbus-sys v0.2.1`

Caused by:
  process didn't exit successfully: `/media/terra9/4C68B5E468B5CCC8/Projects/crush/target/debug/build/libdbus-sys-
e0872a4b05c65c5f/build-script-build` (exit code: 101)
  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Failure { command: "\"pkg-config\" \"--libs\" \"--cflags\" 
\"dbus-1\" \"dbus-1 >= 1.6\"", output: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "Package dbus-1 was not 
found in the pkg-config search path.\nPerhaps you should add the directory containing `dbus-1.pc\'\nto the PKG_CONFIG_PATH 
environment variable\nNo package \'dbus-1\' found\nPackage dbus-1 was not found in the pkg-config search path.\nPerhaps you 
should add the directory containing `dbus-1.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'dbus-1\' 
found\n" } }', /home/terra9/.cargo/registry/src/github.com-1ecc6299db9ec823/libdbus-sys-0.2.1/build.rs:6:70
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
liljencrantz commented 4 years ago

Under Linux, you need the dbus headers installed. The name of the relevant OS package is system dependant, but under Debina-based systems it should be libdbus-1-dev. You will also need libsystemd-dev or the equivalent.