Code Monkey home page Code Monkey logo

Comments (10)

LocutusOfBorg avatar LocutusOfBorg commented on July 18, 2024

this is the debian package
https://github.com/LocutusOfBorg/binwalk

from binwalk.

devttys0 avatar devttys0 commented on July 18, 2024

The above dependencies list is correct, with the following exceptions:

  • python-magic is not required
  • The development packages for libfuzzy and libmagic are not required (just the libraries themselves)
  • zlib1g-dev and liblzma-dev are not directly required by binwalk (they are needed for building the firmware-mod-kit)

When loading C libraries, binwalk's search order is (libmagic is used as an example, but the same is done for all libraries):

  • Look for libmagic.so in binwalk's own libs directory
  • If not found, look for libmagic.so in /usr/local/lib
  • If not found, search for libmagic using ctypes.util.find_library

I will add clearer documentation regarding the specific build and runtime dependencies.

from binwalk.

LocutusOfBorg avatar LocutusOfBorg commented on July 18, 2024

thank! but:

Look for libmagic.so in binwalk's own libs directory

if I don't install the libmagic-dev the .so will not be on the system.
https://packages.debian.org/sid/amd64/libmagic1/filelist
https://packages.debian.org/sid/amd64/libmagic-dev/filelist

unless your code detects something like
/usr/lib/x86_64-linux-gnu/libmagic.so.1 it shouldn't work...

from binwalk.

devttys0 avatar devttys0 commented on July 18, 2024

That should be detected by ctypes.util.find_library, as long as /usr/lib/x86_64-linux-gnu is a path that ldconfig knows about (ctypes uses ldconfig to find the library path).

from binwalk.

LocutusOfBorg avatar LocutusOfBorg commented on July 18, 2024

wonderful! many thanks, it is more than enough for me! thanks!

from binwalk.

LocutusOfBorg avatar LocutusOfBorg commented on July 18, 2024

Hi again @devttys0 the binwalk libraries were used to be installed in /usr/lib.

Now I changed them to be installed into
ls -l /usr/lib/python2.7/dist-packages/binwalk/libs/
total 36
-rw-r--r-- 1 root root 14264 ago 2 17:42 libcompress42.so
-rw-r--r-- 1 root root 18352 ago 2 17:42 libtinfl.so

it that ok for you?

from binwalk.

devttys0 avatar devttys0 commented on July 18, 2024

Yes, that is fine; the binwalk build should be putting those libraries in /usr/lib/python2.7/dist-packages/binwalk/libs/ anyway (let me know if that is not the case!).

from binwalk.

LocutusOfBorg avatar LocutusOfBorg commented on July 18, 2024

after the DESTDIR patch it is :)

from binwalk.

LocutusOfBorg avatar LocutusOfBorg commented on July 18, 2024

last thing: do you use from pyqtgraph python-pyside or python-qt4?

from binwalk.

LocutusOfBorg avatar LocutusOfBorg commented on July 18, 2024

oh yes, qt4 :)

from binwalk.

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.