R
Railway•11mo ago
BigLung

Rust Actix Build Failding

Howdy yall, I'm deploying a rust actix web server to railway, getting a strange build failure that I am struggling to understand. Here are the error logs from the template with my latest source code
7 Replies
Percy
Percy•11mo ago
Project ID: N/A
BigLung
BigLung•11mo ago
It appears that this is the critical error. I might be wrong though 🤔
#13 3.446 error: failed to run custom build command for `openssl-sys v0.9.97`
...
#13 3.446 Could not find directory of OpenSSL installation, and this `-sys` crate cannot
#13 3.446 proceed without this knowledge. If OpenSSL is installed and this crate had
#13 3.446 trouble finding it, you can set the `OPENSSL_DIR` environment variable for the
#13 3.446 compilation process.
...
#13 3.450 error: could not find system library 'openssl' required by the 'openssl-sys' crate
#13 3.450 --- stderr
#13 3.450 Package openssl was not found in the pkg-config search path.
#13 3.450 Perhaps you should add the directory containing `openssl.pc'
#13 3.450 to the PKG_CONFIG_PATH environment variable
#13 3.450 No package 'openssl' found
#13 3.446 error: failed to run custom build command for `openssl-sys v0.9.97`
...
#13 3.446 Could not find directory of OpenSSL installation, and this `-sys` crate cannot
#13 3.446 proceed without this knowledge. If OpenSSL is installed and this crate had
#13 3.446 trouble finding it, you can set the `OPENSSL_DIR` environment variable for the
#13 3.446 compilation process.
...
#13 3.450 error: could not find system library 'openssl' required by the 'openssl-sys' crate
#13 3.450 --- stderr
#13 3.450 Package openssl was not found in the pkg-config search path.
#13 3.450 Perhaps you should add the directory containing `openssl.pc'
#13 3.450 to the PKG_CONFIG_PATH environment variable
#13 3.450 No package 'openssl' found
Solution
BigLung
BigLung•11mo ago
BigLung
BigLung•11mo ago
This is the result after adding open ssl as a dependency 🤔
BigLung
BigLung•11mo ago
deleted link* Here is a publicly reproducible repo
BigLung
BigLung•11mo ago
Old sollution worked, had another problem after that which I also resolved which was unrelated. Thanks yall
Want results from more Discord servers?
Add your server