xingangshi/rust_notes

Cargo-build error: error: failed to run custom build command for `xcb v0.9.0`

Closed this issue · 2 comments

detail:

error: failed to run custom build command for `xcb v0.9.0`

Caused by:
  process didn't exit successfully: `/home/panshi/exec/rust_notes/rust_hello/target/debug/build/xcb-70a98c187c212445/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to find build dependency python3: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/s1635/.cargo/registry/src/github.com-1ecc6299db9ec823/xcb-0.9.0/build.rs:68:26
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Just Install python 3

$ wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
$ tar -zxvf Python-3.7.0.tgz && cd Python-3.7.0 
$ ./configure prefix=/usr/local/python3 && make && make install
$ ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3
$ ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3
$ python3 -V
$ pip3 --version

Closed issue.