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

[Bug-Candidate]: Unable to install solc versions on wsl ubuntu 20.04.06 #208

Closed
JacobYiu opened this issue Dec 12, 2023 · 6 comments
Closed

Comments

@JacobYiu
Copy link

Describe the issue:

Hi, I have successfully downloaded solc-select. I have added ppa for ethereum however, I am unable to download any compiler versions for solc. When I use the command solc-select install 0.8.20. It just hangs there indefinitely after 10 minutes of waiting which I am quite confident that should not happen.

Code example to reproduce the issue:

N/A

Version:

0.2.0
Screenshot 2023-12-12 121249

Relevant log output:

No response

@elopez
Copy link
Member

elopez commented Dec 12, 2023

Hi! Does your network connectivity in WSL work fine otherwise? Can you confirm both the following commands work and show you some JSON?

curl https://raw.githubusercontent.com/crytic/solc/new-list-json/linux/amd64/list.json -v
curl https://binaries.soliditylang.org/linux-amd64/list.json -v

If that works, can you confirm this downloads a binary correctly?

curl https://binaries.soliditylang.org/linux-amd64/solc-linux-amd64-v0.8.20+commit.a1b79de6 -o test -v

@JacobYiu JacobYiu changed the title [Bug-Candidate]: Unable to download different solc-select on wsl ubuntu 20.04.06 [Bug-Candidate]: Unable to install solc versions on wsl ubuntu 20.04.06 Dec 12, 2023
@JacobYiu
Copy link
Author

Hi, it seems when I run this command
curl https://raw.githubusercontent.com/crytic/solc/new-list-json/linux/amd64/list.json -v

It works as expected. However when I try to run this command,

curl https://binaries.soliditylang.org/linux-amd64/list.json -v
It does not work

@elopez
Copy link
Member

elopez commented Dec 12, 2023

If you have the possibility, could you try with a different internet provider/internet connection? Unfortunately that server that does not seem to work from your computer is an external server we don't have control over.

@Zodomo
Copy link

Zodomo commented Dec 15, 2023

Hi! Does your network connectivity in WSL work fine otherwise? Can you confirm both the following commands work and show you some JSON?

curl https://raw.githubusercontent.com/crytic/solc/new-list-json/linux/amd64/list.json -v
curl https://binaries.soliditylang.org/linux-amd64/list.json -v

If that works, can you confirm this downloads a binary correctly?

curl https://binaries.soliditylang.org/linux-amd64/solc-linux-amd64-v0.8.20+commit.a1b79de6 -o test -v

I am able to do all three of these things and am also encountering this same problem. I'm not using WSL Ubuntu, but I am running it in a VirtualBox VM. I've tried completely removing all forms of solc from my computer, whether it be installed from snap, npm, solc-select, etc. I've purged it all. which solc, which solcjs, and which solc-select all return nothing. When I perform a clean install of solc-select with pip3 install solc-select, it takes a while but eventually goes through. I then run solc --version to see that solc 0.8.20 is installed instead of the newest 0.8.23 version. When I run solc-select install or solc-select use 0.8.23 --always-install, it just hangs forever as described in the original issue.

@HOLLYwyh
Copy link

The http proxy setting in Windows CMD works for me.
I encountered the same situation when connecting to an Ubuntu server using my personal computer(Windows). This can serve as a reference for everyone.

  1. As mentioned in the previous comment, make sure this command works in your personal computercurl https://binaries.soliditylang.org/linux-amd64/list.json -v
  2. Retrieve your own computer's IP by running ipconfig on your computer and confirm a proxy port. For example, 127.0.0.1:10809
  3. To set up a proxy in Ubuntu Server, enter the following command:
    EXTERNAL_PROXY="http://127.0.0.1:10809"
    export HTTP_PROXY="$EXTERNAL_PROXY"
    export http_proxy="$EXTERNAL_PROXY"
    export HTTPS_PROXY="$EXTERNAL_PROXY"
    export https_proxy="$EXTERNAL_PROXY"

Next, you can successfully run it in the terminal of the Ubuntu server.

@elopez
Copy link
Member

elopez commented Jan 2, 2025

Closing this issue as it has not had activity for a while. If you are still experiencing issues on the latest release feel free to create a new issue.

@elopez elopez closed this as not planned Won't fix, can't repro, duplicate, stale Jan 2, 2025
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