Giter Site home page Giter Site logo

Comments (7)

EdwardLarson avatar EdwardLarson commented on May 18, 2024

Hi @morpheuslord , thanks for raising this issue! Can you describe the steps you took before seeing this error, as well as the platform you are using? If you can provide as much of the information which the bug report template here asks for, that will help us help you!

from ofrak.

morpheuslord avatar morpheuslord commented on May 18, 2024

i just ran

pip install -e .

from ofrak.

rbs-jacob avatar rbs-jacob commented on May 18, 2024

@EdwardLarson I was able to replicate this error by running pip install . in the root of the clone OFRAK source directory.

@morpheuslord the recommended way to install OFRAK from source is this section on installing from source in the OFRAK docs. That page goes into detail and contains all of the relevant information. I've included a summary of that information (tested on a fresh Debian system) below.

The gist is that you have to install python3, libmagic-dev, and pip—and nodejs and npm if you want to build the GUI—and then run make develop in the relevant directories.

The install step on a Debian or Ubuntu system looks like the following.

sudo apt install git git-lfs python3 python3-pip libmagic-dev nodejs npm
python3 -m pip install --upgrade pip setuptools wheel
git clone https://github.com/redballoonsecurity/ofrak.git
cd ofrak

The step to run the make develop in all of the OFRAK directories looks like the following. This first installs NPM dependencies, then finds all files named Makefile and runs make develop in their containing directory.

for DIR in ofrak_type ofrak_io ofrak_patch_maker ofrak_core disassemblers/ofrak_angr disassemblers/ofrak_capstone; do make -C "${DIR}" develop; done
cd frontend && npm install && make develop && cd ..

from ofrak.

morpheuslord avatar morpheuslord commented on May 18, 2024

i am doing this on windows is there any specific steps for windows

from ofrak.

rbs-jacob avatar rbs-jacob commented on May 18, 2024

@morpheuslord are you running commands from PowerShell, cmd.exe, or from bash via Cygwin or Windows Subsystem for Linux? Are you using a package manager like Choco or Winget, or no package manager?

We don't officially have OFRAK Windows support yet, although I have gotten it mostly working. There will be some upcoming GitHub issues, fixes, and other documentation related to Windows to be released shortly. In the meantime, there will be a few fixes on this OFRAK on Windows pull request.

from ofrak.

morpheuslord avatar morpheuslord commented on May 18, 2024

ok did it but still there is an issue

from ofrak.

rbs-jacob avatar rbs-jacob commented on May 18, 2024

@morpheuslord I responded to your other comment here, but will copy the advice in this thread as well: run the following to fix the error you're having.

python -m pip uninstall python-magic python-magic-bin
python -m pip install --upgrade python-magic-bin

from ofrak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.