Closed krishnaTORQUE closed 1 month ago
This resolves the issue.
paho-mqtt = { version = "^0.12.5", default-features = false, features = [ "bundled" ] }
The way you got it to work was to turn off SSL/TLS support. If you need secure connections, you should be able to get it building.
In your Docerfile, you mixed OpenSSL (openssl
) and LibreSSL (libressl-dev
) libraries. I suspect that was your problem. If you follow the instructions in the README it might work. Just the OpenSSL library files. Use:
apt install libssl-dev build-essential cmake
@fpagliughi thanks Its true. I just switch to ssl & now ssl is require but I am getting the error again. I am using alpine & I am still unable to fix this issue. If you know how it will work on alpine, please help me. Thanks
RUN apk --update --no-cache add build-base openssl libressl-dev cmake c++ g++ gcc musl-dev mpc1-dev
Please actually read what I wrote already.
@fpagliughi Thanks
Finally I resolved for SSL too by this in alpine.
Dockerfile
RUN apk --update --no-cache add build-base openssl-dev libressl cmake perl
Cargo.toml
paho-mqtt = { version = "^0.12.5", features = ["vendored-ssl"] }
Great. I will mention that you are still also installing the LibreSSL library binary files (libressl
). Those are not needed for Paho Rust. Do you need them for something else? If not you can remove that package.
Great. I will mention that you are still also installing the LibreSSL library binary files (
libressl
). Those are not needed for Paho Rust. Do you need them for something else? If not you can remove that package.
Thanks Its correct.
Getting error in github ci-cd pipeline. Using docker alpine
Error
Cargo.toml
paho-mqtt = "^0.12.5"
Dockerfile
RUN apk --update --no-cache add build-base openssl libressl-dev cmake