Cyfrin / foundry-full-course-cu

GNU General Public License v3.0
2.88k stars 671 forks source link

Lesson 6 Foundry installation error #876

Closed Zatin010 closed 5 months ago

Zatin010 commented 9 months ago

"Seems like Windows and Ubuntu WSL have different opinions on 'forge --version'. On Windows, it's all 'I got this,' but in WSL, it's like 'What command?'. 🙄 Any tips for syncing up these two worlds or should I just stick to the 'normal' terminal in VS Code? 🤔

Ethanol48 commented 9 months ago

I don't have much experience in windows, but I have a machine that I used with WSL, some programs didn't worked in WSL if I install them in windows and vice-versa, I think there are different 'machines' as there are isolated, ubuntu can't run windows executables and windows can't run linux's ones, it's normal.

Try to install foundryup in a WSL command-line

If I'm not mistaken there's some difference when installing it in WSL but it won't be that much of a difference

Zatin010 commented 9 months ago

I tried installing foundryup the WSL way but its not letting me install even after installing rust. I am just using the PowerShell terminal as that's only working for me RN. Thanks for the response.

SilviyaPBrayanova commented 9 months ago

Hi guys. I tried WSL on Windows and everything installs and works in general. When I reached the integration of the foundry tools (anvil) with the Thirdweb tool, all fell apart. So I switched to GitBash and haven't had any further issues.

Zatin010 commented 9 months ago

Got it Silviya.

cromewar commented 9 months ago

@Zatin010 Please use Windows Terminal on the "+" button you will have the linux instance, install everything through it.

Fot Vscode to take the terminal as the linux one you have 2 options:

  1. Open vscode from the windows terminal (linux instance) with code ..
  2. Open a new instance directly on vscode using the left button for WSL.

Do not forget to have the remote development dependencies installed.

Cheers.

karthiksathishjeemain commented 9 months ago

Any Idea on SSL Verification Error? I suffered a lot at this error, so I switched to gitpod. But as it has some time restrictions, I am no longer be able to use it. So thinking back of working in the local environment. Btw I am using WSL on my Windows system Screenshot 2023-09-20 124316 @cromewar

cromewar commented 9 months ago

Does this help you @karthiksathishjeemain?

GTK-ARJUN commented 9 months ago

WSL is like an isolated OS within your PC. you have to install forge separately on WSL and then use it. if you use it on Windows, install Rust from the official website.

karthiksathishjeemain commented 9 months ago

Does this help you @karthiksathishjeemain?

image

The problem still exists (even after using -k command after curl)