-
Notifications
You must be signed in to change notification settings - Fork 4
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
sam-cli ==> qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory #5
Comments
Sorry... I should add a platform warning for this one. I learned that SAM CLI does not have an easy arm64 download like the AWS CLI does. Details here: What I have been doing till they address this is to install SAM via the .devcontainer/Dockerfile like so: This ensures a platform agnostic intsall and works for x86_64 and arm64. RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
RUN apt-get install -y pip && pip install aws-sam-cli |
Thanks @metaskills for the explanation. I'm currently installing via
My devcontainer.json:
|
I made this PR #6. I think it works as intended. I don't have a non Haven't updated such features for VSCode so I might have misunderstood what needs to be done. When I ran it worked for me on a MacBook Pro M2. ./bin/test
./bin/console \
public.ecr.aws/sam/build-nodejs16.x bash-4.2# sam --version
SAM CLI, version 1.105.0 I'm not sure if it's enough. Gladly taking feedback. |
@metaskills what's your thoughts? |
Do you have any estimate when you might have time for this? :) |
Docker file:
After the container build:
Machine: M2 macbook air; macOS 12.6.3
ghcr.io/customink/codespaces-features/sam-cli
is not installing an executable compatible with the M2 chip.The text was updated successfully, but these errors were encountered: