Rust compiler with Ubuntu "pkg-config" --> build fail :(
patrikhorvatic
PROOP

2 years ago

Hello,

one of the packages for my Rust project requires "pkg-config" Ubuntu package, but I fail to configure it.

Here is the Rust compiler error:

called Result::unwrap() on an Err value: "pkg-config has not been configured to support cross-compilation.\n\nInstall a sysroot for the target platform and configure it via\nPKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_PATH, or install a\ncross-compiling wrapper for pkg-config and set it via\nPKG_CONFIG environment variable."

Any help is welcome!

View Deploy

2 Replies

2 years ago

To begin, is pkg-config being installed? Check this in the build table at the top of your build logs.


patrikhorvatic
PROOP

2 years ago

Hello,

yes it is being installed. In logs it is repored:

[stage-0 5/9] RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends pkg-config libssl-dev libfreetype6-dev libfontconfig1-dev


Welcome!

Sign in to your Railway account to join the conversation.

Loading...