Foundry Setup – Troubleshooting Solc Installation Issues

forgefoundry

Hi I just installed ubuntu 22 lts and then installed foundry.

forge init works fine, but on forge test or forge buildit gets stuck on installing solc i have tried to cancel the operation and redo it, restart machine and tried to remove and reinstall foundry but nothing seems to work.

does anyone have an idea of what could be the trouble?

Best Answer

Try to install solc separately: https://docs.soliditylang.org/en/latest/installing-solidity.html . In my case I installed solc (globally) on my system (win10) by using npm:

npm install -g solc