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

[Bug] installation error #923

Closed
1 of 9 tasks
hros opened this issue Dec 14, 2022 · 2 comments
Closed
1 of 9 tasks

[Bug] installation error #923

hros opened this issue Dec 14, 2022 · 2 comments

Comments

@hros
Copy link

hros commented Dec 14, 2022

GEF+GDB version

GNU gdb (Debian 12.1-4) 12.1

Operating System

Kali Linux 2022.4 on WSL2

Describe the issue you encountered

trying to install GEF by following the instruction in the README fails
I actually tried the various instructions listed (curl, wget and directly from gdb)
When starting gdb I see the following:

Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Traceback (most recent call last):
  File "/home/user/.gef-2b72f5d0d9f0f218a91cd1ca5148e45923b950d5.py", line 10878, in <module>
    reset()
  File "/home/user/.gef-2b72f5d0d9f0f218a91cd1ca5148e45923b950d5.py", line 190, in reset
    gef.setup()
  File "/home/user/.gef-2b72f5d0d9f0f218a91cd1ca5148e45923b950d5.py", line 10809, in setup
    self.reinitialize_managers()
  File "/home/user/.gef-2b72f5d0d9f0f218a91cd1ca5148e45923b950d5.py", line 10804, in reinitialize_managers
    self.session = GefSessionManager()
  File "/home/user/.gef-2b72f5d0d9f0f218a91cd1ca5148e45923b950d5.py", line 10454, in __init__
    self.constants[constant] = which(constant)
  File "/home/user/.gef-2b72f5d0d9f0f218a91cd1ca5148e45923b950d5.py", line 1810, in which
    raise FileNotFoundError(f"Missing file `{program}`")
FileNotFoundError: Missing file `file`
Traceback (most recent call last):
  File "/home/user/.gdbinit-gef.py", line 10878, in <module>
    reset()
  File "/home/user/.gdbinit-gef.py", line 190, in reset
    gef.setup()
  File "/home/user/.gdbinit-gef.py", line 10809, in setup
    self.reinitialize_managers()
  File "/home/user/.gdbinit-gef.py", line 10804, in reinitialize_managers
    self.session = GefSessionManager()
  File "/home/user/.gdbinit-gef.py", line 10454, in __init__
    self.constants[constant] = which(constant)
  File "/home/user/.gdbinit-gef.py", line 1810, in which
    raise FileNotFoundError(f"Missing file `{program}`")
FileNotFoundError: Missing file `file`
(gdb)

Do you read the docs and look at previously closed issues/PRs for similar cases?

Yes

Architecture impacted

  • X86
  • X64
  • ARM
  • ARM64
  • MIPS
  • MIPS64
  • PPC
  • PPC64
  • RISCV

Describe your issue. Without a proper reproduction step-by-step, your issue will be ignored.

Provide a step-by-step to reproduce your issue.

  1. execute bash -c "$(curl -fsSL https://gef.blah.cat/sh)" (or any other installation method listed in the README)
  2. verify that .gdbinit sources the gef script
  3. start gdb

Minimalist test case

No response

Additional context?

No response

@hugsy
Copy link
Owner

hugsy commented Dec 14, 2022

Do you read the docs and look at previously closed issues/PRs for similar cases?
Yes

#911

@karyuka
Copy link

karyuka commented Feb 8, 2024

I faced the same problem long ago, and it was really annoying to discover that all I needed to do was installing pip...

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

No branches or pull requests

3 participants