Hands-on Rust cargo run fails (p53) using ubuntu

Compiling scopeguard v1.1.0
Compiling miniz_oxide v0.6.2
Compiling wayland-client v0.29.5
error: failed to run custom build command for freetype-sys v0.13.1

Caused by:
process didn’t exit successfully: /home/jonathan/rust/flappy/target/debug/build/freetype-sys-9149991a30d96cb5/build-script-build (exit status: 101)
— stdout


One of the crates bracket-lib depends on updated and now requires that FreeType be installed on Linux. You can install it with sudo apt-get install libfreetype-dev.

That should get you up and running.


Thanks for the response - I got there in the end:
installed cmake, fontconfig, fontconfig-config.which may have been installed already…but left no fontconfig.ps in the relevant dir
so I then installed:
apt-file, (which led me to ensure PKG_CONFIG_PATH was set, and install…) libfontconfig1-dev
and libfreetype-dev

Loving the book, on to Chapter 4…

1 Like