rust-ws icon indicating copy to clipboard operation
rust-ws copied to clipboard

Failing to build cargo test on ubuntu 14.10 with nightly

Open tbillington opened this issue 11 years ago • 2 comments

Perhaps I'm going something wrong, I build rust-ws fine but when I ran cargo test it failed.

Got this output https://gist.github.com/PudgePacket/63da3d3a1e98728ce8b9

using gcc v 4.9.1

Thanks! looking forward to using/contributing to your library.

tbillington avatar Jan 06 '15 11:01 tbillington

This is the salient bit from your output:

note: /usr/bin/ld: cannot find -lcrypto
/usr/bin/ld: cannot find -lssl

I think you're just missing dependencies. I think on Ubuntu, what you need to do is:

sudo apt-get install libssl-dev

See here for other platforms: https://github.com/sfackler/rust-openssl

ehsanul avatar Jan 07 '15 09:01 ehsanul

BTW, while the compiler backend isn't important here since this was a linking issue, note that rustc uses llvm, not gcc. And I think rustc still uses a bundled llvm with some patches instead of any system llvm, but that might have changed recently.

ehsanul avatar Jan 07 '15 09:01 ehsanul