Skip to content

Erorr Building Ghidraton : Task :installJep FAILED - Arch Linux #81

@0xdeaddc0de

Description

@0xdeaddc0de

Hello,
I tried to install Ghidraton following the Readme.
But it failed.
I was able to trick gradle to build by modfiying build.gradle like this

task installJep(type: Exec) {
    environment "JAVA_HOME", System.getProperty("java.home")
    commandLine pythonBin, '-m', 'pip', 'install', 'jep', '--break-system-packages'
}

Here is the full error



╰─>$ gradle -PGHIDRA_INSTALL_DIR=/opt/ghidra/

> Configure project :
Using Ghidra install directory /opt/ghidra/

> Task :installJep
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
    python-xyz', where xyz is the package you are trying to
    install.

    If you wish to install a non-Arch-packaged Python package,
    create a virtual environment using 'python -m venv path/to/venv'.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip.

    If you wish to install a non-Arch packaged Python application,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. Make sure you have python-pipx
    installed via pacman.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

> Task :installJep FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':installJep'.
> Process 'command 'python'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions