threat9 / routersploit

Exploitation Framework for Embedded Devices
Other
12.1k stars 2.31k forks source link

Failed to build on rpi #592

Closed tatric closed 5 months ago

tatric commented 5 years ago

! ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY !

Steps to Reproduce (for install fail to build)

1.follow instructions to install on Kali

  1. (also apt install python3-future)
  2. python3 -m pip install -r requirements.txt

Your Environment

So following the install instructions and installing dependencies i expected python3 -m pip install -r requirements.txt to finish successfully, however the below message shows....is there a typo...a missing c in the include name?

... building '_cffi_backend' extension creating build/temp.linux-armv7l-3.7 creating build/temp.linux-armv7l-3.7/c arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory

include

            ^~~~~~~
  compilation terminated.
  error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  ----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-5l0qlqu9/cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-ft6s03ko/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-zvgzg_v2 --compile" failed with error code 1 in /tmp/pip-install-5l0qlqu9/cffi/

lucyoa commented 5 years ago

Try to install libffi-dev