Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use forge because `GLIBC_2.29' not found #3211

Closed
mudgen opened this issue Sep 14, 2022 · 5 comments
Closed

Cannot use forge because `GLIBC_2.29' not found #3211

mudgen opened this issue Sep 14, 2022 · 5 comments
Labels
T-bug Type: bug

Comments

@mudgen
Copy link

mudgen commented Sep 14, 2022

Component

Forge

Operating System

MX Linux

Describe the bug

I recently did a brand new installation of foundry, using foundryup.

I cannot use forge because I get this error when I try to use it:

forge: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by forge)

I am using MX Linux and it does not have a package for GLIBC_2.29.

Is there any easy work around for this? I really want to use foundry.

I tried this solution:'foundryup -b master but then I get the following error:

error: failed to parse manifest at `/home/mudgen/.foundry/foundry-rs/foundry/cli/Cargo.toml`

Caused by:
  failed to parse the `edition` key

Caused by:
  supported edition values are `2015` or `2018`, but `2021` is unknown
foundryup: command failed: cargo install --path ./cli --bins --locked --force --root /home/mudgen/.foundry

I tried fixing that by changing the value of edition and tried again but then I got another error.

@mudgen mudgen added the T-bug Type: bug label Sep 14, 2022
@gakonst gakonst added this to Foundry Sep 14, 2022
@gakonst gakonst moved this to Todo in Foundry Sep 14, 2022
@mattsse
Copy link
Member

mattsse commented Sep 14, 2022

please try again after upgrading via rustup self update && rustup update

@mudgen
Copy link
Author

mudgen commented Sep 14, 2022

please try again after upgrading via rustup self update && rustup update

Thanks, that helped, but now I get this error:

remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 13 (delta 10), reused 12 (delta 10), pack-reused 0
Unpacking objects: 100% (13/13), done.
From github.com:foundry-rs/foundry
   9317dab1..58155473  master     -> origin/master
Previous HEAD position was 9317dab1 fix: update fork url when extracting evm opts (#3196)
HEAD is now at 58155473 chore(verify): extract provider and better error (#3210)
  Installing foundry-cli v0.2.0 (/home/mudgen/.foundry/foundry-rs/foundry/cli)
    Updating git repository `https://github.com/roynalnaruto/svm-rs`
error: failed to load source for dependency `svm-rs`

Caused by:
  Unable to update https://github.com/roynalnaruto/svm-rs#3d55c338

Caused by:
  failed to clone into: /home/mudgen/.cargo/git/db/svm-rs-cd2fa967df1e48a1

Caused by:
  failed to authenticate when downloading repository: [email protected]:roynalnaruto/svm-rs

  * attempted ssh-agent authentication, but no usernames succeeded: `git`

  if the git CLI succeeds then `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  no authentication available
foundryup: command failed: cargo install --path ./cli --bins --locked --force --root /home/mudgen/.foundry

@mattsse
Copy link
Member

mattsse commented Sep 14, 2022

looks like this is the fix

rust-lang/cargo#3381 (comment)

@mudgen
Copy link
Author

mudgen commented Sep 14, 2022

@mattsse You are right, that fixed that issue. I can use forge now, thanks!

@mattsse mattsse closed this as completed Sep 14, 2022
Repository owner moved this from Todo to Done in Foundry Sep 14, 2022
@Nikzadkhan
Copy link

Hi @mudgen how did fixed the issue ?
im facing it still

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

No branches or pull requests

3 participants