routersploit icon indicating copy to clipboard operation
routersploit copied to clipboard

Failed to build on rpi

Open tatric opened this issue 6 years ago • 1 comments

! ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY !

Steps to Reproduce (for install fail to build)

1.follow instructions to install on Kali 2. (also apt install python3-future) 3. python3 -m pip install -r requirements.txt

Your Environment

  • RouterSploit Version used: latest
  • Operating System and version: kali on rpi (arm) (updated)
  • Python Version: ( python3 --version ) = Python 3.7.3rc1
  • Python Environment: ( python3 -m pip freeze ) asn1crypto==0.24.0 chardet==3.0.4 cryptography==2.6.1 debtags==2.1 distro-info==0.21 entrypoints==0.3 future==0.17.1 keyring==17.1.1 keyrings.alt==3.1.1 pycparser==2.19 pycrypto==2.6.1 PyGObject==3.30.4 python-apt==1.8.4 python-debian==0.1.34 pyxdg==0.25 SecretStorage==2.3.1 six==1.12.0 unattended-upgrades==0.1

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 <ffi.h> ^~~~~~~ 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/

tatric avatar May 07 '19 20:05 tatric

Try to install libffi-dev

lucyoa avatar Aug 31 '19 14:08 lucyoa