scottlamb / moonfire-nvr

Moonfire NVR, a security camera network video recorder
Other
1.28k stars 143 forks source link

error: failed to run custom build command for `openssl v0.9.24` #60

Closed polyzen closed 5 years ago

polyzen commented 5 years ago

This is apparently pulled in by reqwest.

https://github.com/rust-lang/cargo/pull/5012

scottlamb commented 5 years ago

What's the actual build failure—does your machine not have that older version of openssl available? If so, upgrading to reqwest 0.9.x presumably would fix it. There was a similar issue in one of my other projects: scottlamb/http-serve#13.

polyzen commented 5 years ago
...
   Compiling aho-corasick v0.6.6
   Compiling parking_lot_core v0.2.14                                                                                  
error: failed to run custom build command for `openssl v0.9.24`                                                        
process didn't exit successfully: `/build/moonfire-nvr-git/src/moonfire-nvr/target/release/build/openssl-4c84590159ae59
9e/build-script-build` (exit code: 101)                                                                                
--- stderr                                                                                                             
thread 'main' panicked at 'Unable to detect OpenSSL version', /build/.cargo/registry/src/github.com-1ecc6299db9ec823/op
enssl-0.9.24/build.rs:16:14                                                                                            
note: Run with `RUST_BACKTRACE=1` for a backtrace.                                                                     

warning: build failed, waiting for other jobs to finish...                                                             
error: build failed                                                                                                    

I do have openssl-1.0 installed, but as you say, this is a common issue.

polyzen commented 5 years ago

Thank you for resolving this so quickly.