Help talk:Toolforge/Rust
Appearance
Rendered with Parsoid
Latest comment: 9 months ago by Legoktm in topic Job framework compilation
Job framework compilation
Hi, using the described procedure, I get:
error: linking with `cc` failed: exit status: 1 ... = note: /usr/bin/ld: cannot find -lcurl: No such file or directory collect2: error: ld returned 1 exit status
I tired php7.4 and golang1.11 images but they don't seem to have cc installed.
Maybe it's time for a proper Rust image? Magnus Manske (talk) 11:32, 8 December 2023 (UTC)
- @Magnus Manske: cc is there, the issue is that it's trying to link against libcurl-dev, which isn't installed. What crate are you using/which project is this? If it's the
curl
crate, you can try enabling the static-curl feature which will use a bundled libcurl instead of looking for a system-installed one. But also I'd recommend just using pure Rust crates to avoid dealing with C code entirely... :) Legoktm (talk) 19:04, 8 December 2023 (UTC)