Cyfrin / foundry-simple-storage-cu

32 stars 30 forks source link

Anvil doesn't compile on Windows due to IPC #1

Closed hosseinmirzapur closed 1 year ago

hosseinmirzapur commented 1 year ago

Hey guys!

Just in case, if anyone ran into this error while installing foundry components directly from their Github simply use this command and you'll be fine (i'm sharing this cuz it took me 2 hours to find the reason):

$ cargo install --git https://github.com/foundry-rs/foundry --locked anvil --features ethers/ipc

This command will fetch the latest dependencies from the master branch of foundry github and simply be adequate to handle the error. Then after the command succeeded you can foundryup and/or follow along.

Thanks everyone and enjoy the lovely course!

PatrickAlphaC commented 1 year ago

Hello! Thanks for making this issue. What lesson did you run into this on? I'll add it to Chronological_updates.md in the main repo.

hosseinmirzapur commented 1 year ago

Hello! Thanks for making this issue. What lesson did you run into this on? I'll add it to Chronological_updates.md in the main repo.

Hello! I faced this problem watching lesson 6 while I was trying to build foundry from source code on my windows (without using WSL). When I tried to run:

# install Anvil
cargo install --path ./anvil --profile local --force

As it was in the documentation, the compile and build process took a while and then failed due to an IPC error.

PatrickAlphaC commented 1 year ago

Added here: https://github.com/Cyfrin/foundry-full-course-f23/blob/main/chronological-updates.md#lesson-6

Thank you!