Skip to content
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

Fix missing libs #928

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions runtime/base/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,13 @@ RUN set -xe; cd ${POSTGRES_BUILD_DIR}/src/include && make install
# sqlite-devel : Since PHP 7.4 this must be installed (https://github.com/php/php-src/blob/99b8e67615159fc600a615e1e97f2d1cf18f14cb/UPGRADING#L616-L619)
RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel sqlite-devel

# Copy libcrypt libs and resolve broken libcrypt.so symlink to solve "missing libcrypt.so" error
RUN cp -a /usr/lib64/libcrypt* ${INSTALL_DIR}/lib64/
RUN rm ${INSTALL_DIR}/lib64/libcrypt.so && cd ${INSTALL_DIR}/lib64/ && ln -s libcrypt.so.1 libcrypt.so

# Resolve broken libgpg-error.so symlink
RUN rm ${INSTALL_DIR}/lib64/libgpg-error.so && cd ${INSTALL_DIR}/lib64/ && ln -s libgpg-error.so.0 libgpg-error.so

RUN cp -a /usr/lib64/libgcrypt.so* ${INSTALL_DIR}/lib64/

# Copy readline shared libs that are not present in amazonlinux2
Expand Down