freeCodeCamp / solana-curriculum

freeCodeCamp Solana Curriculum
BSD 3-Clause "New" or "Revised" License
130 stars 50 forks source link

[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 8 months ago

ronilsonalves commented 8 months ago

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 commented 8 months ago

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

https://github.com/freeCodeCamp/solana-curriculum/issues/19#issuecomment-1256165275

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 commented 7 months ago

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 commented 1 month ago

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