emscripten-core / emsdk

Emscripten SDK
http://emscripten.org
Other
2.92k stars 662 forks source link

Failed to install 3.1.7 #1346

Closed ImJeremyHe closed 4 months ago

ImJeremyHe commented 5 months ago

Hi! I am trying to install the emsdk 3.1.7 through a docker file.

   3 | >>> RUN apt-get update && \
   4 | >>>     apt-get install -y cmake make git lbzip2 python3 xz-utils && \
   5 | >>>     git clone https://github.com/emscripten-core/emsdk.git && \
   6 | >>>     cd emsdk && \
   7 | >>>     ./emsdk install 3.1.7 && \
   8 | >>>     ./emsdk activate 3.1.7

Got the response and it looks like something wrong with my network

151.7 Cloning into 'emsdk'...
154.6 WARNING: arm64-linux binaries are not available for all releases.
154.6 See https://github.com/emscripten-core/emsdk/issues/547
154.9 Error: Downloading URL 'https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/node-v16.20.0-linux-arm64.tar.xz': <urlopen error [Errno 111] Connection refused>
154.9 error: installation failed!
154.9 Resolving SDK version '3.1.7' to 'sdk-releases-d0e637fe48197587d981f79e8114757731d0c2a9-64bit'
154.9 Installing SDK 'sdk-releases-d0e637fe48197587d981f79e8114757731d0c2a9-64bit'..
154.9 Installing tool 'node-16.20.0-64bit'..

But I could download it via wget successfully (macOS).

wget https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/node-v16.20.0-linux-arm64.tar.xz
sbc100 commented 4 months ago

Are you getting that urlopen error [Errno 111] Connection refused message consistently. It seems odd that that you would only see that error message or that one file.

Are you able to wget that file from withing the docker file? (i.e. from the linux VM running the docker script)?

ImJeremyHe commented 4 months ago

Setting the ip addr of storage.googleapis.com in /etc/hosts solves this issue. Maybe something wrong in docker's network stack