Skip to content

libregex-1cae1bee-0.11-pre.so: No such file or directory #13900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
suhr opened this issue May 2, 2014 · 7 comments
Closed

libregex-1cae1bee-0.11-pre.so: No such file or directory #13900

suhr opened this issue May 2, 2014 · 7 comments

Comments

@suhr
Copy link

suhr commented May 2, 2014

I'm trying to use a regex library. But when I try to compile the code, this happens:

% rustc main.rs
refix/fixset.rs:2:18: 2:44 error: libregex-1cae1bee-0.11-pre.so: cannot open shared object file: No such file or directory
refix/fixset.rs:2 #[phase(syntax)] extern crate regex_macros;
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~

Setting a library path by -L /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/ doesn't help. But the file libregex-1cae1bee-0.11-pre.so exists:

% du -h /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libregex-1cae1bee-0.11-pre.so
376K    /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libregex-1cae1bee-0.11-pre.so

Also, the code: https://gist.github.com/suhr/11207656 (there may be some errors, but I'm interested about this issue).

@alexcrichton
Copy link
Member

What version of the compiler are you using?

I thought I had a fix for this recently, but I may have made a mistake...

@suhr
Copy link
Author

suhr commented May 3, 2014

I built it from git yesterday.

% rustc -v
rustc 0.11-pre (b5d6b07 2014-05-02 07:06:50 -0700)
host: x86_64-unknown-linux-gnu

@alexcrichton
Copy link
Member

Could you provide a more self-contained example? I tried to compile your gist but there were numerous errors, so some support may have been missing.

@suhr
Copy link
Author

suhr commented May 6, 2014

Sure. I've updated the gist. For me it shows only No such file or directory error.

I'll also try to update rust again.

@suhr
Copy link
Author

suhr commented May 12, 2014

Still happen on rust 0.11-pre 11571cd.

@BurntSushi
Copy link
Member

I'm not sure what's going on here. The gist that is linked in OP has tons of errors in it unrelated to the issue at hand. e.g., use regex is an unresolved import. The type Regex isn't in scope...

I've updated the gist to fix the errors, but it then compiles fine and I don't get the error reported in the OP.

Version:

[andrew@Liger rust] rustc --version
rustc 0.11.0-pre (b1302f9 2014-06-10 15:17:01 -0700)
host: x86_64-unknown-linux-gnu

@alexcrichton
Copy link
Member

Closing as likely fixed in the meantime (pending an example that fails to compile).

bors pushed a commit to rust-lang-ci/rust that referenced this issue Apr 22, 2025
fixes rust-lang#13900

changelog: [`redundant_clone`]: fix FP in overlapping lifetime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants