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?

1 Answer 1


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.