ogham / rust-ansi-term

Rust library for ANSI terminal colours and styles (bold, underline)

Home Page:https://crates.io/crates/ansi_term

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dynamic linking against regex_macros causes problems unless LD_LIBRARY_PATH is set

mriehl opened this issue · comments

While trying to get exa to build I encounter

target/exa: error while loading shared libraries: libregex_macros-bdbdbfedad0748ac.so: cannot open shared object file: No such file or directory

It only works if I add the target/deps folder to the LD_LIBRARY_PATH.

This seems related to rust#21861.

I forgot to mention that I'm reporting the issue here since it's rust-ansi-term's Cargo.toml that lists regex_macros as a dependency.

Which version of Rust are you using? It works for me on rustc 1.0.0-nightly (f1398d273 2015-01-31 20:21:02 +0000), but I'm a couple of days behind.

I rustup'd today, so that might be it:

$ rustc --version
rustc 1.0.0-nightly (eaf4c5c78 2015-02-02 15:04:54 +0000)

Though the issue I linked occured with rustc 1.0.0-nightly (1d00c54 2015-01-30 19:56:34 +0000) which is older than yours.
Is it possible you have set a LD_LIBRARY_PATH on your machine?

Hey, I've tried building exa on Debian (eaf4c5c78) and I get this same error.

(no LD_LIBRARY_PATH)

I believe 1c331bb should fix it. Could you please do me a favour and see if it works for you?

yup, works like a charm now.

Thanks!!

Thank you too!