matter-labs / foundry-zksync

Fork of Foundry tailored for zkSync environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"./install-foundry-zksync" not working

Chathura-Ahangama opened this issue · comments

Component

Other (please describe)

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (3ae4f50 2024-07-07T04:28:54.758287900Z)

What command(s) is the bug in?

./install-foundry-zksync

Operating System

Windows

Describe the bug

When I follow the instructions for quick install ,I cloned the repo and as the last command when i run "./install-foundry-zksync" it throws an error .Here it is

"...foundryup-zksync: installing foundry (version nightly, tag nightly)
foundryup-zksync: downloading latest forge, and cast
##################################################################################################################################################### 100.0%
Archive: /tmp/tmp.MohwuZYRfX/foundry-zksync.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /tmp/tmp.MohwuZYRfX/foundry-zksync.zip or
/tmp/tmp.MohwuZYRfX/foundry-zksync.zip.zip, and cannot find /tmp/tmp.MohwuZYRfX/foundry-zksync.zip.ZIP, period.
foundryup-zksync: command failed: unzip /tmp/tmp.MohwuZYRfX/foundry-zksync.zip -d /c/Users/chath/.foundry/bin"

Did you find any solutions?

Is any solution for this? I've only managed to make it work in WSL

Are you all using "raw" windows? Or windows with WSL?

Are you all using "raw" windows? Or windows with WSL?

windows with WSL

Windows with WSL

Are you all using "raw" windows? Or windows with WSL?

For me works fine on WSL. But not on windows

Are you all using "raw" windows? Or windows with WSL?

For me works fine on WSL. But not on windows

By the time I log this issue,this error were thrown in both "raw" windows with gitbash and wsl.so I'll try back with wsl,if it works then

2024-08-07 05_07_33-ubuntu
How can i fix this

2024-08-07 05_07_33-ubuntu How can i fix this

first install foundry in this project and do zksync stuff

2024-08-07 05_07_33-ubuntu How can i fix this

first install foundry in this project and do zksync stuff

i did,foundry installed without problem,then when i wanna install zksync this error appear

2024-08-07 16_29_38-foundry

I faced the same issue

Do this

  1. curl -L https://foundry.paradigm.xyz | bash
  2. foundryup
  3. ./install-foundry-zksync

2024-08-07 16_29_38-foundry

I faced the same issue

Do this

  1. curl -L https://foundry.paradigm.xyz | bash
  2. foundryup
  3. ./install-foundry-zksync

i updated ubuntu wsl to 22 and this error is fixed,i was ou wsl 20

2024-08-07 16_29_38-foundry

I faced the same issue
Do this

  1. curl -L https://foundry.paradigm.xyz | bash
  2. foundryup
  3. ./install-foundry-zksync

i updated ubuntu wsl to 22 and this error is fixed,i was ou wsl 20

Great 👍🏻

Hi, as written in the official foundry documentation, neither PowerShell nor CMD are supported with foundryup.
We have not added further Windows support to this fork, thus we won't expect our foundryup-zksync to work either.

For future reference, we specified that our support for Windows is limited (#500).

@Chathura-Ahangama could you please confirm if you were able to succesfully install using WSL? And if so, could you close the issue? Thank you.

Hi, as written in the official foundry documentation, neither PowerShell nor CMD are supported with foundryup.

We have not added further Windows support to this fork, thus we won't expect our foundryup-zksync to work either.

For future reference, we specified that our support for Windows is limited (#500).

@Chathura-Ahangama could you please confirm if you were able to succesfully install using WSL? And if so, could you close the issue? Thank you.

Yes, but on git bash foundry works perfect without the need of WSL

Yes, but on git bash foundry works perfect without the need of WSL

Were you able to install foundry-zksync on git bash, @maikelordaz ? Or have you encountered issues? Could you share what error are you getting with git bash? same as OP?

Yes, but on git bash foundry works perfect without the need of WSL

Were you able to install foundry-zksync on git bash, @maikelordaz ? Or have you encountered issues? Could you share what error are you getting with git bash? same as OP?

Mine is a proble with windows, foundry works fine on git bash, but foundry-zksync I can only run it on wsl.
this is the output
image

@Karrq I still cannot install foundry zksync using git bash.But it works in wsl.
Zksync-issue

You said correctly working fine in wsl but having issue in git bash