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

Cannot build Dockerfile.dev container: no libcrypt.so.1 available. #255

Open
abacon opened this issue Aug 29, 2022 · 1 comment
Open

Cannot build Dockerfile.dev container: no libcrypt.so.1 available. #255

abacon opened this issue Aug 29, 2022 · 1 comment

Comments

@abacon
Copy link

abacon commented Aug 29, 2022

Hey! Long-time fan. I'm trying to build the dev version for the emulator and am getting hung up on a libcrypt error. Apparently there is a package called libxcrypt-compat that provides the missing .so for other distros, but I can't figure out what to install for debian. Any advice?

Steps to repro:

  1. install docker.
  2. brew install wget curl git pkg-config unzip jq patchelf
  3. docker build . -t plato:dev -f Dockerfile.dev

Expected result:

  1. I see a dev build of Plato.

Actual result:

  1. The build fails when setting up the docker container:
#5 150.1 Unpacking libgcc-s1:amd64 (12.2.0-1) ...
#5 150.1 Replacing files in old package libgcc1:amd64 (1:8.3.0-6) ...
#5 150.2 Setting up libgcc-s1:amd64 (12.2.0-1) ...
#5 150.2 Setting up libc6:amd64 (2.34-4) ...
#5 150.2 /usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
#5 150.2 dpkg: error processing package libc6:amd64 (--configure):
#5 150.2  installed libc6:amd64 package post-installation script subprocess returned error exit status 127
#5 150.3 Errors were encountered while processing:
#5 150.3  libc6:amd64
#5 150.4 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
executor failed running [/bin/sh -c echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list        && apt-get update        && apt-get install -y mupdf libmupdf-dev]: exit code: 100

Host:
macOS 11.6.5 (big sur)
Docker version 20.10.17
plato v0.9.30 (827f776)

@baskerville
Copy link
Owner

I'm afraid I won't be of any help as I've never used the Docker containers. @welps created those.

You should be able to run the emulator on macOS though : brew install mupdf harfbuzz djvulibre freetype sdl2 && brew pin mupdf && ./run-emulator.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants