Closed termoshtt closed 5 years ago
Running `/__w/1/s/target/debug/deps/link-318d10df940f251f`
/__w/1/s/target/debug/deps/link-318d10df940f251f: error while loading shared libraries: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory
error: test failed, to rerun pass '--test link'
we need some link option
Without pkg-config, the downloaded shared libraries are found by the executable due to cargo run
sets LD_LIBRARY_PATH
https://github.com/rust-lang/cargo/issues/4879
RPATH could be a better way to set default search path for executable, but it will be hard because cargo does not support RPATH. I will add an explanation for it, and merge this PR.
Testing #12 on a mkl-installed container
dockerhub: https://cloud.docker.com/u/rustmath/repository/docker/rustmath/mkl