Description
Hi, I experience difficulties installing pdfsizeopt on an M1 (Apple Silicon) Mac. I have installed it successfully before on an Intel Mac, probably using Homebrew, but now it doesn’t work either with Homebrew or with Docker.
Homebrew
With Homebrew, the installation process for the dependency pts/utils/sam2p
tries to copy a file to a folder with advanced privileges and quits with an error:
cp: /usr/local/bin/sam2p: Operation not permitted
Homebrew binaries should be installed to a specific Homebrew directory, that’s probably why it doesn’t work.
Docker
I then tried the suggested installation with Docker. As VirtualBox isn’t available on Apple Silicon, I installed Docker Desktop. However, using the command you provide, I first get the
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
and even though I can overcome this by adding --platform linux/amd64
to the command, I still get the error message
ImportError: No module named site
Help, please!
Is there anyone who could tell me how to get pdfsizeopt running on a M1 (Apple Silicon) Mac?
Thanks,
Lorenz