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 install aderyn #713

Open
rafael-abuawad opened this issue Sep 10, 2024 · 3 comments
Open

Cannot install aderyn #713

rafael-abuawad opened this issue Sep 10, 2024 · 3 comments

Comments

@rafael-abuawad
Copy link

Describe the bug
I cannot install Aderyn using the new installation method. Im on a dev container inside WSL.

To Reproduce
Steps to reproduce the behavior:

  1. Install aderyn using the following command:
curl -L https://raw.githubusercontent.com/Cyfrin/aderyn/dev/cyfrinup/install | bash
  1. Comlete the installation
  2. Run aderyn .
  3. See error

Expected behavior
To aderyn to run as it did before. I triend installing all those GLIBC versions, nothing works.

Output

aderyn: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by aderyn)
aderyn: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by aderyn)
aderyn: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by aderyn)

Desktop (please complete the following information):

  • OS: Windows 10
  • Chip: AMD Ryzen 7
  • Aderyn Version: 0.2.0

Additional context
It worked perfectly when the installation was via cargo.

@TilakMaddy
Copy link
Contributor

Thanks for reporting man ! This has been a known issue for a while but didn't know how many users it was affected. We will take this seriously now 🫡

@xyizko
Copy link
Contributor

xyizko commented Sep 23, 2024

Did come across a similar issue when using cyfrinup

Investigation

The issue is here

$ ldd --version 

🔴ldd (Ubuntu GLIBC 2.35-0ubuntu3.8) 2.35
.
.

But what aderyn wants is

❌ aderyn: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by aderyn)
❌ aderyn: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by aderyn)
❌ aderyn: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by aderyn)

Fixes

  1. Use Docker
  2. Build from source on your machine so the right library is linked - cargo build
 ldd --version 
🟢ldd (Ubuntu GLIBC 2.35-0ubuntu3.8) 2.35
.
.
.

 aderyn/target/debug/./aderyn --version
aderyn 0.3.0

@TilakMaddy
Copy link
Contributor

TilakMaddy commented Sep 23, 2024

Do you know of any way to statically link the required GLIBC libraries into aderyn so that it doesn't depend on the users' environment ?

I was thinking of cargo zigbuild

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants