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

Failed installation on Ubuntu 14.04 LTS #41

Closed
gergelykalman opened this issue Apr 30, 2014 · 7 comments
Closed

Failed installation on Ubuntu 14.04 LTS #41

gergelykalman opened this issue Apr 30, 2014 · 7 comments

Comments

@gergelykalman
Copy link

I installed binwalk according to the instructions in INSTALL, everything went fine, but when I start binwalk with a firmware file it gives me this:

WARNING: Failed to load plugin module 'compressd': Failed to locate library 'compress42'

WARNING: Failed to load plugin module 'zlibvalid': Failed to locate library 'tinfl'

WARNING: Failed to load plugin module 'compressd': Failed to locate library 'compress42'

WARNING: Failed to load plugin module 'zlibvalid': Failed to locate library 'tinfl'

Signature Exception: Failed to locate library 'inmagic'

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/binwalk/core/module.py", line 475, in main
self.init()
File "/usr/local/lib/python2.7/dist-packages/binwalk/modules/signature.py", line 85, in init
self.magic = binwalk.core.magic.Magic(self.mfile)
File "/usr/local/lib/python2.7/dist-packages/binwalk/core/magic.py", line 41, in init
self.libmagic = binwalk.core.C.Library("inmagic", self.LIBMAGIC_FUNCTIONS)
File "/usr/local/lib/python2.7/dist-packages/binwalk/core/C.py", line 99, in init
self.library = ctypes.cdll.LoadLibrary(self.find_library(library))
File "/usr/local/lib/python2.7/dist-packages/binwalk/core/C.py", line 137, in find_library
raise Exception("Failed to locate library '%s'" % library)

Exception: Failed to locate library 'inmagic'

@gergelykalman
Copy link
Author

By the way, my /usr/local/lib/ does not contain these files.

@gergelykalman
Copy link
Author

Copying the files form src/C/file-5.18/src/.libs and the like to /usr/local/lib and running ldconfig fixes the problem. Might want to put that into the build script.

@devttys0
Copy link
Collaborator

This is a bug due to a recent commit in which the install target in the Makefile was modified, and the line to actually install the dependency libraries was accidentally removed; it has now been fixed. Thanks!

@ebertek
Copy link

ebertek commented Aug 6, 2014

I have the same issue on OS X 10.9:

WARNING: Failed to load plugin module 'compressd': Failed to locate libraries '['compress42']'

WARNING: Failed to load plugin module 'zlibvalid': Failed to locate libraries '['tinfl']'

WARNING: Failed to load plugin module 'compressd': Failed to locate libraries '['compress42']'

WARNING: Failed to load plugin module 'zlibvalid': Failed to locate libraries '['tinfl']'

Signature Exception: Failed to locate libraries '['magic']'

Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/binwalk/core/module.py", line 481, in main
self.init()
File "/usr/local/lib/python2.7/site-packages/binwalk/modules/signature.py", line 85, in init
self.magic = binwalk.core.magic.Magic(self.mfile)
File "/usr/local/lib/python2.7/site-packages/binwalk/core/magic.py", line 43, in init
self.libmagic = binwalk.core.C.Library(self.LIBRARY, self.LIBMAGIC_FUNCTIONS)
File "/usr/local/lib/python2.7/site-packages/binwalk/core/C.py", line 100, in init
self.library = ctypes.cdll.LoadLibrary(self.find_library(library))
File "/usr/local/lib/python2.7/site-packages/binwalk/core/C.py", line 159, in find_library
raise Exception("Failed to locate libraries '%s'" % str(libraries))

Exception: Failed to locate libraries '['magic']'

@sneakyness
Copy link

@ebertek copying the *.dylibs from /src/binwalk/libs/ to /usr/local/lib/ fixed this for me 👍 (this was on OS X 10.10 not Ubuntu, did not notice that until now lol)

@hackerjj
Copy link

In the download folder src/binwalk/libs/ doesn't comes anything. :S where can i find this files?

@hackerjj
Copy link

Aleady get it.

First in installation folder run:

./configure
Then
make
Last:
sudo make install

Copy libs inside src/binwalk/libs folder into /usr/local/lib/ like sneaky said and wuala...

BR. Thankx!!!

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

5 participants