Update Dockerfile for missing pam dev lib #8078
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After failing to build with this due to the missing pam development library package I have added it to the DockerFile for the build image.
to be more specific i was getting the error:
Compiling�pam-sys v1.0.0-alpha4 �error�failed to run custom build command for
pam-sys v1.0.0-alpha4`Caused by:
process didn't exit successfully:
/home/user/rustdesk/target/debug/build/pam-sys-8f2e6b1acacb4aab/build-script-build
(exit status: 101)--- stdout
cargo:rustc-link-lib=pam
cargo:rustc-link-lib=pam_misc
cargo:rerun-if-changed=wrapper.h
--- stderr
wrapper.h:1:10: fatal error: 'security/pam_appl.h' file not found
wrapper.h:1:10: fatal error: 'security/pam_appl.h' file not found, err: true
thread 'main' panicked at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pam-sys-1.0.0-alpha4/build.rs:69:10:
Unable to generate bindings: ()
note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace`After adding to the Dockerfile the install of 'libpam0g-dev' it now completes the build.