Skip to content
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

error: multiple dylib candidates for std found #871

Closed
liigo opened this issue Nov 14, 2014 · 1 comment
Closed

error: multiple dylib candidates for std found #871

liigo opened this issue Nov 14, 2014 · 1 comment

Comments

@liigo
Copy link
Contributor

liigo commented Nov 14, 2014

When I make cargo:

Compiling openssl-sys v0.0.1 (https://github.com/alexcrichton/openssl-sys#d66fe840)
/home/liigo/.cargo/git/checkouts/openssl-sys-338c662611d0ea62/master/src/lib.rs:1:1: 1:1 error: multiple dylib candidates for `std` found
/home/liigo/.cargo/git/checkouts/openssl-sys-338c662611d0ea62/master/src/lib.rs:1 // TODO: work with sfackler and rust-openssl to get this here
                                                                                  ^
/home/liigo/.cargo/git/checkouts/openssl-sys-338c662611d0ea62/master/src/lib.rs:1:1: 1:1 note: candidate #1: /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4e7c5e5c.so
/home/liigo/.cargo/git/checkouts/openssl-sys-338c662611d0ea62/master/src/lib.rs:1 // TODO: work with sfackler and rust-openssl to get this here
                                                                                  ^
/home/liigo/.cargo/git/checkouts/openssl-sys-338c662611d0ea62/master/src/lib.rs:1:1: 1:1 note: candidate #2: /usr/local/lib/libstd-4e7c5e5c.so
/home/liigo/.cargo/git/checkouts/openssl-sys-338c662611d0ea62/master/src/lib.rs:1 // TODO: work with sfackler and rust-openssl to get this here
@alexcrichton
Copy link
Member

It looks like this is unfortunately a dupe of rust-lang/rust#16402 actually. For now you may want to install rustc to a nonstandard location. One of cargo's native dependencies is likely found in /usr/local/lib adding that as a -L flag.

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

2 participants