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

[HELP]: unable to run sh -c "$(curl -sSfL https://release.solana.com/stable/install)" inside dev container running it on MacOS with M2 #333

Open
ronilsonalves opened this issue Mar 18, 2024 · 3 comments

Comments

@ronilsonalves
Copy link

ronilsonalves commented Mar 18, 2024

Project

Solana - Learn How to Set Up Solana by Building a Hello World Smart Contract

Lesson Number

Lesson 2

Question

How can I install the Solana CLI inside my dev container if inside it's happening the same thing as seen #19 in installation process? I've try to copy install file to dev container root directory as a workaround and the script hit the unknown-linux-gnu URL.
There's any workaround that is not to run it on gitpod instance?

/learn-how-to-set-up-solana-by-building-a-hello-world-smart-contract
  - install

Code and Screenshots

# Running install with CURL
root ~/solana-curriculum/learn-how-to-set-up-solana-by-building-a-hello-world-smart-contract (main) $ sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
downloading stable installer
curl: (22) The requested URL returned error: 403 
solana-install-init: command failed: downloader https://release.solana.com/stable/solana-install-init-aarch64-unknown-linux-gnu /tmp/tmp.p4Bmy3cwva/solana-install-init
# Running install from file
root ~/solana-curriculum/learn-how-to-set-up-solana-by-building-a-hello-world-smart-contract (main) $ sh install
downloading stable installer
curl: (22) The requested URL returned error: 403 
solana-install-init: command failed: downloader https://release.solana.com/stable/solana-install-init-aarch64-unknown-linux-gnu /tmp/tmp.CxCnu9NrhD/solana-install-init
root ~/solana-curriculum/learn-how-to-set-up-solana-by-building-a-hello-world-smart-contract (main) $ 

If I run the requested commands in lesson this recognize it as passed
tests-passing-even-not-working

@ShaunSHamilton
Copy link
Member

Hello there,

I cannot help much, because I do not have access to any Mac hardware. That said, I think you should try installing during the Docker build as mentioned here:

# Solana
#RUN sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
CMD install

#19 (comment)

Specifically, before building, change the Dockerfile to have the above. This IS different compared to:

I've try to copy install file to dev container root directory

Because the the container is already built.

Let us know how this goes.

@SeldomseenSchweig
Copy link

SeldomseenSchweig commented Apr 9, 2024

I have the same issue,

sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
downloading stable installer
curl: (22) The requested URL returned error: 403 

@xsa-dev
Copy link

xsa-dev commented Sep 19, 2024

Hi! I created a draft pr to solve this problem. I knocked down the container, but still the extension did not start and nothing helped. Can anyone help with this from a maintainer?

This screen shot what it doesn't work well
image

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

4 participants