ethereum-optimism / optimism

Optimism is Ethereum, scaled.
https://optimism.io
MIT License
5.64k stars 3.27k forks source link

binary code missing for op-node, op-batcher, and op-proposer. #11841

Open jvc-byte opened 1 month ago

jvc-byte commented 1 month ago

In the Creating Your Own L2 Rollup Testnet section of the optimism documentation, when running any command related to ./bin/op-node, ./bin/op-batcher, ./bin/op-proposer etc. for the first time you'll get an error message saying the folder location does not exist (no such file or directory).

So, along the line, i notice the program I'm trying to run has not been built yet (doesn't have a binary code to run). I ran the make command + the folder-name I'm building to create the bin folder which contains the binary code to execute.

But it didn't just end there, i had version compatibility issues while trying to build any section using the make command which was frustrating till i found and installed this Microsoft Visual Studio Code extension Makefile Tools by microsoft.com. Since then, running the make command has never been an issue.

Just wish to share so others who don't know won't find it frustrating like i did.

jvc-byte commented 1 month ago

The above applies if you ran the below command at the root of the optimism folder and didn't find the bin folder in the respective directories.

make op-node op-batcher op-proposer
pnpm build