DEV Community

Discussion on: Intro to Web Development with Rust for NodeJS Developers

Collapse
 
johncsimon profile image
John Simon

you might get something like this when you try to cargo build withh reqwest

error: failed to run custom build command for `openssl-sys v0.9.42`
process didn't exit successfully: `/home/john/git/rust/webapptest/target/debug/build/openssl-sys-ee15cf4bf02eea9b/build-script-main` (exit code: 101)

and this

Make sure you also have the development packages of openssl installed.
For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.

so ... sudo apt-get install libssl-dev ... rebuild and it runs!

Collapse
 
gruberb profile image
Bastian Gruber

I ran this on macOS, so thanks for checking it on Ubuntu!