-
Notifications
You must be signed in to change notification settings - Fork 79
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
Failed to run custom build command for openssl-sys v0.9.24
#51
Comments
What you're most likely missing here is a |
Solved with command |
Yep. Done! |
Just in case anybody else stumbles upon this, on NixOS you need to do something a bit special:
Then inside of the Also, you need to install the NixOS I also recommend using the Mozilla Rust Overlay with NixOS, to get the most up-to-date version of Rust. And when installing Rust, you need to specify which targets to build, like this: {
environment = {
systemPackages = with pkgs; [
pkgconfig # needed by cargo-web
openssl # needed by cargo-web
emscripten # needed by cargo-web
(latest.rustChannels.nightly.rust.override {
targets = [
"asmjs-unknown-emscripten"
"wasm32-unknown-emscripten"
"wasm32-unknown-unknown"
];
})
];
};
} If |
@Pauan Could you elaborate how exactly |
@koute I get this error when running
I assume it's because it can't find llvm or something like that (even though it should be installed). NixOS doesn't store packages at "normal" places, so even if a package is installed most programs outside of NixOS won't be able to find it. |
Actually, even with
And then stops with
|
|
thanks! wrangler needs these two packages as well! |
I got this when I ran
On Fedora here. I have installed both FIXED: If you're on Fedora install |
Thanks, after installing |
The command
cargo install cargo-web
,after a minute and half of compiling, printed:
The command
which openssl
prints/usr/bin/openssl
, and so I tried also the commandOPENSSL_DIR=/usr/bin cargo install cargo-web
, getting the following output:The text was updated successfully, but these errors were encountered: