Closed happy-machine closed 2 years ago
The error message is telling you to install the lxcb-shape library. apt install libxcb-shape0-dev
Thanks for your help. I don't mean this to sound critical i appreciate that you guys are doing amazing things with no doubt limited resources.
I installed that (which didnt fix the build but led me to my next missing dependency) and then after some further searching around discovered i also needed libxcb-composite0-dev as you have made clear it is not transparent what is missing.
My issue is more to do with the behaviour of cargo as a dependency management tool. I would expect as is the case with NPM or PYPY that cargo would manage the installation of sub-dependencies? and that i shouldn't need to install these things on top of the official docker image?
My issue is more to do with the behaviour of cargo as a dependency management tool.
That would probably be better directed to https://github.com/rust-lang/cargo.
and that i shouldn't need to install these things on top of the official docker image?
Are you requesting that the official docker image install every -dev
package in existence?
This program which builds fine on mac will also not run after cargo finally gave me: Finished release [optimized] target(s)
thread 'main' panicked at 'called
Result::unwrap()on an
Errvalue: XcbConn(ClosedParseErr)
refers to:
let mut ctx: ClipboardContext = ClipboardProvider::new().unwrap();
My issue is more to do with the behaviour of cargo as a dependency management tool.
That would probably be better directed to https://github.com/rust-lang/cargo.
I will do so
My very simple cli program wont compile in the official rust image but will compile on mac. The official image shouldn't need tinkering to build.
to reproduce
build docker image from latest official image:
cargo new test
use this cargo.toml:
cargo build --release or cargo run
result:
error: linking with
ccfailed: exit status: 1
Note: have tried also installing gcc-multilib libgpgme-dev unixodbc unixodbc-dev to no effect and running RUSTFLAGS='-L /db2-query/clidriver/lib' cargo build --release
to no effect.