smartcontracts / simple-optimism-node

The easiest way to run an Optimism node
MIT License
337 stars 115 forks source link

./progress.sh: line 9: cast: command not found #130

Closed dholliday closed 9 months ago

dholliday commented 9 months ago

Running a node in Ubuntu 20.04 and getting cast: command not found error. Any ideas?

./progress.sh ./progress.sh: line 9: cast: command not found Chain ID: Please wait ./progress.sh: line 13: [: -eq: unary operator expected ./progress.sh: line 18: [: -eq: unary operator expected ./progress.sh: line 23: [: -eq: unary operator expected ./progress.sh: line 27: cast: command not found ./progress.sh: line 27: cast: command not found expr: non-integer argument Blocks per minute: ./progress.sh: line 33: [: -eq: unary operator expected ./progress.sh: line 40: cast: command not found expr: syntax error: missing argument after ‘/’ expr: syntax error: unexpected argument ‘60’ ./progress.sh: line 45: [: -le: unary operator expected ./progress.sh: line 49: [: -gt: unary operator expected ./progress.sh: line 53: [: -gt: unary operator expected

Chomtana commented 9 months ago

You need to run curl -L https://foundry.paradigm.xyz | bash and source .bashrc to install cast before running progress.sh

https://book.getfoundry.sh/getting-started/installation

dholliday commented 9 months ago

Perfect. Solved it thanks! :)

qezz commented 9 months ago

Is there a replacement bash command for it? Not a big fan of installing third party stuff just to output the chain id