Skip to content

Trouble shooting

Shunsuke Kanda edited this page May 28, 2023 · 8 revisions

Tips on how to resolve errors @kampersanda faced in his environment (WSL2+Ubuntu22.04 that installs build-essential at least).

Compile errors from ndarray-linalg

On errors when --features = openblas.

openssl-sys

$ cargo build
...
error: failed to run custom build command for `openssl-sys v0.9.87`

However, OpenSSL is installed.

$ openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

It is necessary to set up the link correctly. First, find the locations of openssl.

$ dpkg -L libssl-dev | grep lib
$ dpkg -L libssl-dev | grep include

Next, set up links to the appropriate paths.

$ export OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu
$ export OPENSSL_INCLUDE_DIR=/usr/include/openssl

Solve it!

openblas-src

$ cargo build
...
error: failed to run custom build command for `openblas-src v0.10.8`

In my case, Fortran is not installed.

$ sudo apt install gfortran

Solve it!

Clone this wiki locally