MobSF / Mobile-Security-Framework-MobSF

Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis.
https://opensecurity.in
GNU General Public License v3.0
17.57k stars 3.25k forks source link

trouble installing mobSF #1576

Closed figo46 closed 4 years ago

figo46 commented 4 years ago

Am trying to install MobSF on linux but this error keep comeing up

ERROR: Failed building wheel for lief any maybe more.. please any help would be appreicate it as am using thi tool for thesis

i have installed all pre-requirment any help please

LoG ErroR

root@fares:~/Desktop/Mobile-Security-Framework-MobSF# pip install -r requirements.txt
Requirement already satisfied: Django==3.1.2 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 1)) (3.1.2)
Requirement already satisfied: pdfkit==0.6.1 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 2)) (0.6.1)
Requirement already satisfied: androguard==3.3.5 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 3)) (3.3.5)
Requirement already satisfied: lxml==4.6.1 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 4)) (4.6.1)
Requirement already satisfied: rsa==4.6 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 5)) (4.6)
Requirement already satisfied: biplist==1.0.3 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 6)) (1.0.3)
Requirement already satisfied: requests==2.24.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 7)) (2.24.0)
Requirement already satisfied: bs4==0.0.1 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 8)) (0.0.1)
Requirement already satisfied: colorlog==4.4.0 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 9)) (4.4.0)
Requirement already satisfied: macholib==1.14 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 10)) (1.14)
Requirement already satisfied: google-play-scraper==0.1.1 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 11)) (0.1.1)
Requirement already satisfied: whitenoise==5.2.0 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 12)) (5.2.0)
Requirement already satisfied: waitress==1.4.4 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 13)) (1.4.4)
Requirement already satisfied: gunicorn==20.0.4 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 14)) (20.0.4)
Requirement already satisfied: frida==14.0.5 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 15)) (14.0.5)
Requirement already satisfied: psutil==5.7.3 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 16)) (5.7.3)
Requirement already satisfied: shelljob==0.6.2 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 17)) (0.6.2)
Requirement already satisfied: asn1crypto==1.4.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 18)) (1.4.0)
Requirement already satisfied: oscrypto==1.2.1 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 19)) (1.2.1)
Requirement already satisfied: distro==1.5.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 20)) (1.5.0)
Requirement already satisfied: IP2Location==8.5.1 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 21)) (8.5.1)
Collecting lief==0.10.1
  Using cached lief-0.10.1.tar.gz (12.7 MB)
Collecting http-tools==1.1.1
  Using cached http_tools-1.1.1-py3-none-any.whl (573 kB)
Collecting libsast==1.3.1
  Using cached libsast-1.3.1-py3-none-any.whl (41 kB)
Collecting apkid==2.1.0
  Using cached apkid-2.1.0-py2.py3-none-any.whl (131 kB)
Processing /root/.cache/pip/wheels/25/18/2a/aa91b67eb90b1e96326f7043ec79868974fc94648b14b64c5c/cryptography-2.9.2-cp38-cp38-linux_i686.whl
Requirement already satisfied: pyOpenSSL<19.2,>=19.1.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 28)) (19.1.0)
Requirement already satisfied: asgiref~=3.2.10 in /root/.local/lib/python3.8/site-packages (from Django==3.1.2->-r requirements.txt (line 1)) (3.2.10)
Requirement already satisfied: pytz in /usr/lib/python3/dist-packages (from Django==3.1.2->-r requirements.txt (line 1)) (2020.1)
Requirement already satisfied: sqlparse>=0.2.2 in /usr/lib/python3/dist-packages (from Django==3.1.2->-r requirements.txt (line 1)) (0.3.1)
Requirement already satisfied: matplotlib in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (3.3.2)
Requirement already satisfied: colorama in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (0.4.3)
Requirement already satisfied: ipython>=5.0.0 in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (7.18.1)
Requirement already satisfied: future in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (0.18.2)
Requirement already satisfied: pygments in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (2.3.1)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (7.1.2)
Requirement already satisfied: pydot>=1.4.1 in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (1.4.1)
Requirement already satisfied: networkx>=1.11 in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (2.5)
Requirement already satisfied: pyasn1>=0.1.3 in /usr/lib/python3/dist-packages (from rsa==4.6->-r requirements.txt (line 5)) (0.4.8)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from bs4==0.0.1->-r requirements.txt (line 8)) (4.9.3)
Requirement already satisfied: altgraph>=0.15 in /root/.local/lib/python3.8/site-packages (from macholib==1.14->-r requirements.txt (line 10)) (0.17)
Requirement already satisfied: setuptools>=3.0 in /usr/local/lib/python3.8/dist-packages (from gunicorn==20.0.4->-r requirements.txt (line 14)) (50.3.2)
Requirement already satisfied: mitmproxy>=5.0.1 in /usr/lib/python3/dist-packages (from http-tools==1.1.1->-r requirements.txt (line 23)) (5.1.1)
Collecting semgrep==0.28.0; platform_system != "Windows"
  Using cached semgrep-0.28.0-cp36.cp37.cp38.py36.py37.py38-none-any.whl (91.7 MB)
Requirement already satisfied: pyyaml>=5.3 in /usr/lib/python3/dist-packages (from libsast==1.3.1->-r requirements.txt (line 24)) (5.3.1)
Collecting argparse
  Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Processing /root/.cache/pip/wheels/27/fd/3e/01457816545a515ab14625228ae952ecd2a859b60a68a820f3/yara_python-3.11.0-cp38-cp38-linux_i686.whl
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/lib/python3/dist-packages (from cryptography<3.0,>=2.9->-r requirements.txt (line 27)) (1.14.3)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3/dist-packages (from cryptography<3.0,>=2.9->-r requirements.txt (line 27)) (1.15.0)
Requirement already satisfied: pexpect>4.3 in /usr/lib/python3/dist-packages (from ipython>=5.0.0->androguard==3.3.5->-r requirements.txt (line 3)) (4.6.0)
Requirement already satisfied: soupsieve>1.2 in /usr/lib/python3/dist-packages (from beautifulsoup4->bs4==0.0.1->-r requirements.txt (line 8)) (2.0.1)
Requirement already satisfied: tqdm>=4.46.1 in /usr/lib/python3/dist-packages (from semgrep==0.28.0; platform_system != "Windows"->libsast==1.3.1->-r requirements.txt (line 24)) (4.51.0)
Collecting junit-xml==1.9
  Using cached junit_xml-1.9-py2.py3-none-any.whl (7.1 kB)
Requirement already satisfied: attrs>=19.3.0 in /usr/lib/python3/dist-packages (from semgrep==0.28.0; platform_system != "Windows"->libsast==1.3.1->-r requirements.txt (line 24)) (19.3.0)
Requirement already satisfied: jsonschema~=3.2.0 in /usr/lib/python3/dist-packages (from semgrep==0.28.0; platform_system != "Windows"->libsast==1.3.1->-r requirements.txt (line 24)) (3.2.0)
Requirement already satisfied: packaging>=20.4 in /usr/lib/python3/dist-packages (from semgrep==0.28.0; platform_system != "Windows"->libsast==1.3.1->-r requirements.txt (line 24)) (20.4)
Collecting ruamel.yaml==0.16.10
  Using cached ruamel.yaml-0.16.10-py2.py3-none-any.whl (111 kB)
Requirement already satisfied: ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.9" in /usr/lib/python3/dist-packages (from ruamel.yaml==0.16.10->semgrep==0.28.0; platform_system != "Windows"->libsast==1.3.1->-r requirements.txt (line 24)) (0.2.2)
Building wheels for collected packages: lief
  Building wheel for lief (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c85mnv1h/lief/setup.py'"'"'; __file__='"'"'/tmp/pip-install-c85mnv1h/lief/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-4b1i7yyd                                                         
       cwd: /tmp/pip-install-c85mnv1h/lief/                                
  Complete output (124 lines):                                             
  0.10.1                                                                   
  running bdist_wheel                                                      
  running build                                                            
  running build_ext                                                        
  cmake /tmp/pip-install-c85mnv1h/lief -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-c85mnv1h/lief/build -DPYTHON_EXECUTABLE=/usr/bin/python3 -DLIEF_PYTHON_API=on -DCMAKE_BUILD_TYPE=Release                                
  -- Could NOT find cppcheck (missing: CPPCHECK_EXECUTABLE CPPCHECK_POSSIBLEERROR_ARG CPPCHECK_UNUSEDFUNC_ARG CPPCHECK_STYLE_ARG CPPCHECK_INCLUDEPATH_ARG CPPCHECK_QUIET_ARG)                                                    
  -- The C compiler identification is GNU 9.3.0                            
  -- The CXX compiler identification is GNU 9.3.0                          
  -- Detecting C compiler ABI info                                         
  -- Detecting C compiler ABI info - done                                  
  -- Check for working C compiler: /usr/bin/cc - skipped                   
  -- Detecting C compile features                                          
  -- Detecting C compile features - done                                   
  -- Detecting CXX compiler ABI info                                       
  -- Detecting CXX compiler ABI info - done                                
  -- Check for working CXX compiler: /usr/bin/c++ - skipped                
  -- Detecting CXX compile features                                        
  -- Detecting CXX compile features - done                                 
  -- LIEF 0.10.0                                                           
  -- ccache: ON                                                            
  -- Enable JSON support                                                   
  -- Enable Frozen (C++14 support)                                         
  -- Performing Test C_SUPPORTS_WALL                                       
  -- Performing Test C_SUPPORTS_WALL - Success                             
  -- Performing Test CXX_SUPPORTS_WALL                                     
  -- Performing Test CXX_SUPPORTS_WALL - Success                           
  -- Performing Test C_SUPPORTS_WEXTRA                                     
  -- Performing Test C_SUPPORTS_WEXTRA - Success                           
  -- Performing Test CXX_SUPPORTS_WEXTRA                                   
  -- Performing Test CXX_SUPPORTS_WEXTRA - Success                         
  -- Performing Test C_SUPPORTS_WPEDANTIC                                  
  -- Performing Test C_SUPPORTS_WPEDANTIC - Success                        
  -- Performing Test CXX_SUPPORTS_WPEDANTIC                                
  -- Performing Test CXX_SUPPORTS_WPEDANTIC - Success                      
  -- Performing Test C_SUPPORTS_NO_STACK_PROTECTOR                         
  -- Performing Test C_SUPPORTS_NO_STACK_PROTECTOR - Success               
  -- Performing Test CXX_SUPPORTS_NO_STACK_PROTECTOR                       
  -- Performing Test CXX_SUPPORTS_NO_STACK_PROTECTOR - Success             
  -- Performing Test C_SUPPORTS_OMIT_FRAME_POINTER                         
  -- Performing Test C_SUPPORTS_OMIT_FRAME_POINTER - Success               
  -- Performing Test CXX_SUPPORTS_OMIT_FRAME_POINTER                       
  -- Performing Test CXX_SUPPORTS_OMIT_FRAME_POINTER - Success             
  -- Performing Test C_SUPPORTS_NO_STRICT_ALIASING                         
  -- Performing Test C_SUPPORTS_NO_STRICT_ALIASING - Success               
  -- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING                       
  -- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING - Success             
  -- Performing Test C_SUPPORTS_EXCEPTION                                  
  -- Performing Test C_SUPPORTS_EXCEPTION - Success                        
  -- Performing Test CXX_SUPPORTS_EXCEPTION                                
  -- Performing Test CXX_SUPPORTS_EXCEPTION - Success                      
  -- Performing Test C_SUPPORTS_VISIBILITY                                 
  -- Performing Test C_SUPPORTS_VISIBILITY - Success                       
  -- Performing Test CXX_SUPPORTS_VISIBILITY                               
  -- Performing Test CXX_SUPPORTS_VISIBILITY - Success                     
  -- Performing Test C_SUPPORTS_NO_EXPANSION_TO_DEFINED                    
  -- Performing Test C_SUPPORTS_NO_EXPANSION_TO_DEFINED - Success          
  -- Performing Test CXX_SUPPORTS_NO_EXPANSION_TO_DEFINED                  
  -- Performing Test CXX_SUPPORTS_NO_EXPANSION_TO_DEFINED - Success        
  -- Performing Test C_SUPPORTS_DIAGNOSTICS_COLOR                          
  -- Performing Test C_SUPPORTS_DIAGNOSTICS_COLOR - Success                
  -- Performing Test CXX_SUPPORTS_DIAGNOSTICS_COLOR                        
  -- Performing Test CXX_SUPPORTS_DIAGNOSTICS_COLOR - Success              
  -- Performing Test C_SUPPORTS_COLOR_DIAGNOSTICS                          
  -- Performing Test C_SUPPORTS_COLOR_DIAGNOSTICS - Failed                 
  -- Performing Test CXX_SUPPORTS_COLOR_DIAGNOSTICS                        
  -- Performing Test CXX_SUPPORTS_COLOR_DIAGNOSTICS - Failed               
  -- Could NOT find cppcheck (missing: CPPCHECK_EXECUTABLE CPPCHECK_POSSIBLEERROR_ARG CPPCHECK_UNUSEDFUNC_ARG CPPCHECK_STYLE_ARG CPPCHECK_INCLUDEPATH_ARG CPPCHECK_QUIET_ARG)                                                    
  -- Configuration Types:                                                  
  -- Build Types: Release                                                  
  -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.6", minimum required is "3.5")                                                 
  -- Found PythonLibs: /usr/lib/i386-linux-gnu/libpython3.8.so             
  -- Python version: 3.5                                                   
  -- Python lib:     /usr/lib/i386-linux-gnu/libpython3.8.so               
  -- Python include: /usr/include/python3.8                                
  -- Python interpreter: /usr/bin/python3                                  
  -- Performing Test C_SUPPORTS_NO_MACRO_REDEFINED                         
  -- Performing Test C_SUPPORTS_NO_MACRO_REDEFINED - Success               
  -- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED                       
  -- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED - Success             
  -- Performing Test C_SUPPORTS_NO_DEPRECATED_DECLARATIONS                 
  -- Performing Test C_SUPPORTS_NO_DEPRECATED_DECLARATIONS - Success       
  -- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS               
  -- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS - Success     
  -- Performing Test HAS_ANSI                                              
  -- Performing Test HAS_ANSI - Success                                    
  CMake Error at CMakeLists.txt:541 (add_subdirectory):                    
    add_subdirectory given source "/tmp/pip-install-c85mnv1h/lief/package" 
    which is not an existing directory.                                    

  -- Configuring incomplete, errors occurred!                              
  See also "/tmp/pip-install-c85mnv1h/lief/build/temp.linux-i686-3.8/CMakeFiles/CMakeOutput.log".                                                     
  See also "/tmp/pip-install-c85mnv1h/lief/build/temp.linux-i686-3.8/CMakeFiles/CMakeError.log".                                                      
  Traceback (most recent call last):                                       
    File "<string>", line 1, in <module>                                   
    File "/tmp/pip-install-c85mnv1h/lief/setup.py", line 363, in <module>  
      setup(                                                               
    File "/usr/local/lib/python3.8/dist-packages/setuptools/__init__.py", line 153, in setup                                                          
      return distutils.core.setup(**attrs)                                 
    File "/usr/lib/python3.8/distutils/core.py", line 148, in setup        
      dist.run_commands()                                                  
    File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands 
      self.run_command(cmd)                                                
    File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command  
      cmd_obj.run()                                                        
    File "/usr/local/lib/python3.8/dist-packages/wheel/bdist_wheel.py", line 290, in run                                                              
      self.run_command('build')                                            
    File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command   
      self.distribution.run_command(command)                               
    File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command  
      cmd_obj.run()                                                        
    File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run 
      self.run_command(cmd_name)                                           
    File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command   
      self.distribution.run_command(command)                               
    File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command  
      cmd_obj.run()                                                        
    File "/tmp/pip-install-c85mnv1h/lief/setup.py", line 78, in run        
      self.build_extension(ext)                                            
    File "/tmp/pip-install-c85mnv1h/lief/setup.py", line 202, in build_extension                                                                      
      subprocess.check_call(configure_cmd, cwd=self.build_temp, env=env)   
    File "/usr/lib/python3.8/subprocess.py", line 364, in check_call       
      raise CalledProcessError(retcode, cmd)                               
  subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-c85mnv1h/lief', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-c85mnv1h/lief/build', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DLIEF_PYTHON_API=on', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.              
  ----------------------------------------                                 
  ERROR: Failed building wheel for lief
  Running setup.py clean for lief
Failed to build lief
Installing collected packages: lief, http-tools, junit-xml, ruamel.yaml, semgrep, libsast, argparse, yara-python, apkid, cryptography
    Running setup.py install for lief ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c85mnv1h/lief/setup.py'"'"'; __file__='"'"'/tmp/pip-install-c85mnv1h/lief/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-ddze0a9_/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/lief          
         cwd: /tmp/pip-install-c85mnv1h/lief/                              
    Complete output (126 lines):                                           
    0.10.1                                                                 
    running install                                                        
    running build                                                          
    running build_ext                                                      
    cmake /tmp/pip-install-c85mnv1h/lief -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-c85mnv1h/lief/build -DPYTHON_EXECUTABLE=/usr/bin/python3 -DLIEF_PYTHON_API=on -DCMAKE_BUILD_TYPE=Release                              
    -- Could NOT find cppcheck (missing: CPPCHECK_EXECUTABLE CPPCHECK_POSSIBLEERROR_ARG CPPCHECK_UNUSEDFUNC_ARG CPPCHECK_STYLE_ARG CPPCHECK_INCLUDEPATH_ARG CPPCHECK_QUIET_ARG)                                                  
    -- The C compiler identification is GNU 9.3.0                          
    -- The CXX compiler identification is GNU 9.3.0                        
    -- Detecting C compiler ABI info                                       
    -- Detecting C compiler ABI info - done                                
    -- Check for working C compiler: /usr/bin/cc - skipped                 
    -- Detecting C compile features                                        
    -- Detecting C compile features - done                                 
    -- Detecting CXX compiler ABI info                                     
    -- Detecting CXX compiler ABI info - done                              
    -- Check for working CXX compiler: /usr/bin/c++ - skipped              
    -- Detecting CXX compile features                                      
    -- Detecting CXX compile features - done                               
    -- LIEF 0.10.0                                                         
    -- ccache: ON                                                          
    -- Enable JSON support                                                 
    -- Enable Frozen (C++14 support)                                       
    -- Performing Test C_SUPPORTS_WALL                                     
    -- Performing Test C_SUPPORTS_WALL - Success                           
    -- Performing Test CXX_SUPPORTS_WALL                                   
    -- Performing Test CXX_SUPPORTS_WALL - Success                         
    -- Performing Test C_SUPPORTS_WEXTRA                                   
    -- Performing Test C_SUPPORTS_WEXTRA - Success                         
    -- Performing Test CXX_SUPPORTS_WEXTRA                                 
    -- Performing Test CXX_SUPPORTS_WEXTRA - Success                       
    -- Performing Test C_SUPPORTS_WPEDANTIC                                
    -- Performing Test C_SUPPORTS_WPEDANTIC - Success                      
    -- Performing Test CXX_SUPPORTS_WPEDANTIC                              
    -- Performing Test CXX_SUPPORTS_WPEDANTIC - Success                    
    -- Performing Test C_SUPPORTS_NO_STACK_PROTECTOR                       
    -- Performing Test C_SUPPORTS_NO_STACK_PROTECTOR - Success             
    -- Performing Test CXX_SUPPORTS_NO_STACK_PROTECTOR                     
    -- Performing Test CXX_SUPPORTS_NO_STACK_PROTECTOR - Success           
    -- Performing Test C_SUPPORTS_OMIT_FRAME_POINTER                       
    -- Performing Test C_SUPPORTS_OMIT_FRAME_POINTER - Success             
    -- Performing Test CXX_SUPPORTS_OMIT_FRAME_POINTER                     
    -- Performing Test CXX_SUPPORTS_OMIT_FRAME_POINTER - Success           
    -- Performing Test C_SUPPORTS_NO_STRICT_ALIASING                       
    -- Performing Test C_SUPPORTS_NO_STRICT_ALIASING - Success             
    -- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING                     
    -- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING - Success           
    -- Performing Test C_SUPPORTS_EXCEPTION                                
    -- Performing Test C_SUPPORTS_EXCEPTION - Success                      
    -- Performing Test CXX_SUPPORTS_EXCEPTION                              
    -- Performing Test CXX_SUPPORTS_EXCEPTION - Success                    
    -- Performing Test C_SUPPORTS_VISIBILITY                               
    -- Performing Test C_SUPPORTS_VISIBILITY - Success                     
    -- Performing Test CXX_SUPPORTS_VISIBILITY                             
    -- Performing Test CXX_SUPPORTS_VISIBILITY - Success                   
    -- Performing Test C_SUPPORTS_NO_EXPANSION_TO_DEFINED                  
    -- Performing Test C_SUPPORTS_NO_EXPANSION_TO_DEFINED - Success        
    -- Performing Test CXX_SUPPORTS_NO_EXPANSION_TO_DEFINED                
    -- Performing Test CXX_SUPPORTS_NO_EXPANSION_TO_DEFINED - Success      
    -- Performing Test C_SUPPORTS_DIAGNOSTICS_COLOR                        
    -- Performing Test C_SUPPORTS_DIAGNOSTICS_COLOR - Success              
    -- Performing Test CXX_SUPPORTS_DIAGNOSTICS_COLOR                      
    -- Performing Test CXX_SUPPORTS_DIAGNOSTICS_COLOR - Success            
    -- Performing Test C_SUPPORTS_COLOR_DIAGNOSTICS                        
    -- Performing Test C_SUPPORTS_COLOR_DIAGNOSTICS - Failed               
    -- Performing Test CXX_SUPPORTS_COLOR_DIAGNOSTICS                      
    -- Performing Test CXX_SUPPORTS_COLOR_DIAGNOSTICS - Failed             
    -- Could NOT find cppcheck (missing: CPPCHECK_EXECUTABLE CPPCHECK_POSSIBLEERROR_ARG CPPCHECK_UNUSEDFUNC_ARG CPPCHECK_STYLE_ARG CPPCHECK_INCLUDEPATH_ARG CPPCHECK_QUIET_ARG)                                                  
    -- Configuration Types:                                                
    -- Build Types: Release                                                
    -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.6", minimum required is "3.5")                                               
    -- Found PythonLibs: /usr/lib/i386-linux-gnu/libpython3.8.so           
    -- Python version: 3.5                                                 
    -- Python lib:     /usr/lib/i386-linux-gnu/libpython3.8.so             
    -- Python include: /usr/include/python3.8                              
    -- Python interpreter: /usr/bin/python3                                
    -- Performing Test C_SUPPORTS_NO_MACRO_REDEFINED                       
    -- Performing Test C_SUPPORTS_NO_MACRO_REDEFINED - Success             
    -- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED                     
    -- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED - Success           
    -- Performing Test C_SUPPORTS_NO_DEPRECATED_DECLARATIONS               
    -- Performing Test C_SUPPORTS_NO_DEPRECATED_DECLARATIONS - Success     
    -- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS             
    -- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS - Success   
    -- Performing Test HAS_ANSI                                            
    -- Performing Test HAS_ANSI - Success                                  
    CMake Error at CMakeLists.txt:541 (add_subdirectory):                  
      add_subdirectory given source "/tmp/pip-install-c85mnv1h/lief/package"                                                                          
      which is not an existing directory.                                  

    -- Configuring incomplete, errors occurred!                            
    See also "/tmp/pip-install-c85mnv1h/lief/build/temp.linux-i686-3.8/CMakeFiles/CMakeOutput.log".                                                   
    See also "/tmp/pip-install-c85mnv1h/lief/build/temp.linux-i686-3.8/CMakeFiles/CMakeError.log".                                                    
    Traceback (most recent call last):                                     
      File "<string>", line 1, in <module>                                 
      File "/tmp/pip-install-c85mnv1h/lief/setup.py", line 363, in <module>
        setup(                                                             
      File "/usr/local/lib/python3.8/dist-packages/setuptools/__init__.py", line 153, in setup                                                        
        return distutils.core.setup(**attrs)                               
      File "/usr/lib/python3.8/distutils/core.py", line 148, in setup      
        dist.run_commands()                                                
      File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands                                                                          
        self.run_command(cmd)                                              
      File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()                                                      
      File "/usr/local/lib/python3.8/dist-packages/setuptools/command/install.py", line 61, in run                                                    
        return orig.install.run(self)                                      
      File "/usr/lib/python3.8/distutils/command/install.py", line 589, in run                                                                        
        self.run_command('build')                                          
      File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command 
        self.distribution.run_command(command)                             
      File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()                                                      
      File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run                                                                          
        self.run_command(cmd_name)                                         
      File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command 
        self.distribution.run_command(command)                             
      File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()                                                      
      File "/tmp/pip-install-c85mnv1h/lief/setup.py", line 78, in run      
        self.build_extension(ext)                                          
      File "/tmp/pip-install-c85mnv1h/lief/setup.py", line 202, in build_extension                                                                    
        subprocess.check_call(configure_cmd, cwd=self.build_temp, env=env) 
      File "/usr/lib/python3.8/subprocess.py", line 364, in check_call     
        raise CalledProcessError(retcode, cmd)                             
    subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-c85mnv1h/lief', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-c85mnv1h/lief/build', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DLIEF_PYTHON_API=on', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.            
    ----------------------------------------                               
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c85mnv1h/lief/setup.py'"'"'; __file__='"'"'/tmp/pip-install-c85mnv1h/lief/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-ddze0a9_/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/lief Check the logs for full command output.            
root@fares:~/Desktop/Mobile-Security-Framework-MobSF# pip install -r requirements.txt --user
Requirement already satisfied: Django==3.1.2 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 1)) (3.1.2)
Requirement already satisfied: pdfkit==0.6.1 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 2)) (0.6.1)
Requirement already satisfied: androguard==3.3.5 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 3)) (3.3.5)
Requirement already satisfied: lxml==4.6.1 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 4)) (4.6.1)
Requirement already satisfied: rsa==4.6 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 5)) (4.6)
Requirement already satisfied: biplist==1.0.3 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 6)) (1.0.3)
Requirement already satisfied: requests==2.24.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 7)) (2.24.0)
Requirement already satisfied: bs4==0.0.1 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 8)) (0.0.1)
Requirement already satisfied: colorlog==4.4.0 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 9)) (4.4.0)
Requirement already satisfied: macholib==1.14 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 10)) (1.14)
Requirement already satisfied: google-play-scraper==0.1.1 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 11)) (0.1.1)
Requirement already satisfied: whitenoise==5.2.0 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 12)) (5.2.0)
Requirement already satisfied: waitress==1.4.4 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 13)) (1.4.4)
Requirement already satisfied: gunicorn==20.0.4 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 14)) (20.0.4)
Requirement already satisfied: frida==14.0.5 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 15)) (14.0.5)
Requirement already satisfied: psutil==5.7.3 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 16)) (5.7.3)
Requirement already satisfied: shelljob==0.6.2 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 17)) (0.6.2)
Requirement already satisfied: asn1crypto==1.4.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 18)) (1.4.0)
Requirement already satisfied: oscrypto==1.2.1 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 19)) (1.2.1)
Requirement already satisfied: distro==1.5.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 20)) (1.5.0)
Requirement already satisfied: IP2Location==8.5.1 in /root/.local/lib/python3.8/site-packages (from -r requirements.txt (line 21)) (8.5.1)
Collecting lief==0.10.1
  Using cached lief-0.10.1.tar.gz (12.7 MB)
Collecting http-tools==1.1.1
  Using cached http_tools-1.1.1-py3-none-any.whl (573 kB)
Collecting libsast==1.3.1
  Using cached libsast-1.3.1-py3-none-any.whl (41 kB)
Collecting apkid==2.1.0
  Using cached apkid-2.1.0-py2.py3-none-any.whl (131 kB)
Processing /root/.cache/pip/wheels/25/18/2a/aa91b67eb90b1e96326f7043ec79868974fc94648b14b64c5c/cryptography-2.9.2-cp38-cp38-linux_i686.whl
Requirement already satisfied: pyOpenSSL<19.2,>=19.1.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 28)) (19.1.0)
Requirement already satisfied: sqlparse>=0.2.2 in /usr/lib/python3/dist-packages (from Django==3.1.2->-r requirements.txt (line 1)) (0.3.1)
Requirement already satisfied: asgiref~=3.2.10 in /root/.local/lib/python3.8/site-packages (from Django==3.1.2->-r requirements.txt (line 1)) (3.2.10)
Requirement already satisfied: pytz in /usr/lib/python3/dist-packages (from Django==3.1.2->-r requirements.txt (line 1)) (2020.1)
Requirement already satisfied: matplotlib in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (3.3.2)
Requirement already satisfied: ipython>=5.0.0 in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (7.18.1)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (7.1.2)
Requirement already satisfied: colorama in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (0.4.3)
Requirement already satisfied: pygments in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (2.3.1)
Requirement already satisfied: networkx>=1.11 in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (2.5)
Requirement already satisfied: future in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (0.18.2)
Requirement already satisfied: pydot>=1.4.1 in /usr/lib/python3/dist-packages (from androguard==3.3.5->-r requirements.txt (line 3)) (1.4.1)
Requirement already satisfied: pyasn1>=0.1.3 in /usr/lib/python3/dist-packages (from rsa==4.6->-r requirements.txt (line 5)) (0.4.8)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from bs4==0.0.1->-r requirements.txt (line 8)) (4.9.3)
Requirement already satisfied: altgraph>=0.15 in /root/.local/lib/python3.8/site-packages (from macholib==1.14->-r requirements.txt (line 10)) (0.17)
Requirement already satisfied: setuptools>=3.0 in /usr/local/lib/python3.8/dist-packages (from gunicorn==20.0.4->-r requirements.txt (line 14)) (50.3.2)
Requirement already satisfied: mitmproxy>=5.0.1 in /usr/lib/python3/dist-packages (from http-tools==1.1.1->-r requirements.txt (line 23)) (5.1.1)
Collecting semgrep==0.28.0; platform_system != "Windows"
  Using cached semgrep-0.28.0-cp36.cp37.cp38.py36.py37.py38-none-any.whl (91.7 MB)
Requirement already satisfied: pyyaml>=5.3 in /usr/lib/python3/dist-packages (from libsast==1.3.1->-r requirements.txt (line 24)) (5.3.1)
Processing /root/.cache/pip/wheels/27/fd/3e/01457816545a515ab14625228ae952ecd2a859b60a68a820f3/yara_python-3.11.0-cp38-cp38-linux_i686.whl
Collecting argparse
  Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3/dist-packages (from cryptography<3.0,>=2.9->-r requirements.txt (line 27)) (1.15.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/lib/python3/dist-packages (from cryptography<3.0,>=2.9->-r requirements.txt (line 27)) (1.14.3)
Requirement already satisfied: pexpect>4.3 in /usr/lib/python3/dist-packages (from ipython>=5.0.0->androguard==3.3.5->-r requirements.txt (line 3)) (4.6.0)
Requirement already satisfied: soupsieve>1.2 in /usr/lib/python3/dist-packages (from beautifulsoup4->bs4==0.0.1->-r requirements.txt (line 8)) (2.0.1)
Collecting junit-xml==1.9
  Using cached junit_xml-1.9-py2.py3-none-any.whl (7.1 kB)
Requirement already satisfied: attrs>=19.3.0 in /usr/lib/python3/dist-packages (from semgrep==0.28.0; platform_system != "Windows"->libsast==1.3.1->-r requirements.txt (line 24)) (19.3.0)
Collecting ruamel.yaml==0.16.10
  Using cached ruamel.yaml-0.16.10-py2.py3-none-any.whl (111 kB)
Requirement already satisfied: tqdm>=4.46.1 in /usr/lib/python3/dist-packages (from semgrep==0.28.0; platform_system != "Windows"->libsast==1.3.1->-r requirements.txt (line 24)) (4.51.0)
Requirement already satisfied: packaging>=20.4 in /usr/lib/python3/dist-packages (from semgrep==0.28.0; platform_system != "Windows"->libsast==1.3.1->-r requirements.txt (line 24)) (20.4)
Requirement already satisfied: jsonschema~=3.2.0 in /usr/lib/python3/dist-packages (from semgrep==0.28.0; platform_system != "Windows"->libsast==1.3.1->-r requirements.txt (line 24)) (3.2.0)
Requirement already satisfied: ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.9" in /usr/lib/python3/dist-packages (from ruamel.yaml==0.16.10->semgrep==0.28.0; platform_system != "Windows"->libsast==1.3.1->-r requirements.txt (line 24)) (0.2.2)
Building wheels for collected packages: lief
  Building wheel for lief (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5uxiif1c/lief/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5uxiif1c/lief/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-1a541eh9                                                         
       cwd: /tmp/pip-install-5uxiif1c/lief/                                
  Complete output (124 lines):                                             
  0.10.1                                                                   
  running bdist_wheel                                                      
  running build                                                            
  running build_ext                                                        
  cmake /tmp/pip-install-5uxiif1c/lief -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-5uxiif1c/lief/build -DPYTHON_EXECUTABLE=/usr/bin/python3 -DLIEF_PYTHON_API=on -DCMAKE_BUILD_TYPE=Release                                
  -- Could NOT find cppcheck (missing: CPPCHECK_EXECUTABLE CPPCHECK_POSSIBLEERROR_ARG CPPCHECK_UNUSEDFUNC_ARG CPPCHECK_STYLE_ARG CPPCHECK_INCLUDEPATH_ARG CPPCHECK_QUIET_ARG)                                                    
  -- The C compiler identification is GNU 9.3.0                            
  -- The CXX compiler identification is GNU 9.3.0                          
  -- Detecting C compiler ABI info                                         
  -- Detecting C compiler ABI info - done                                  
  -- Check for working C compiler: /usr/bin/cc - skipped                   
  -- Detecting C compile features                                          
  -- Detecting C compile features - done                                   
  -- Detecting CXX compiler ABI info                                       
  -- Detecting CXX compiler ABI info - done                                
  -- Check for working CXX compiler: /usr/bin/c++ - skipped                
  -- Detecting CXX compile features                                        
  -- Detecting CXX compile features - done                                 
  -- LIEF 0.10.0                                                           
  -- ccache: ON                                                            
  -- Enable JSON support                                                   
  -- Enable Frozen (C++14 support)                                         
  -- Performing Test C_SUPPORTS_WALL                                       
  -- Performing Test C_SUPPORTS_WALL - Success                             
  -- Performing Test CXX_SUPPORTS_WALL                                     
  -- Performing Test CXX_SUPPORTS_WALL - Success                           
  -- Performing Test C_SUPPORTS_WEXTRA                                     
  -- Performing Test C_SUPPORTS_WEXTRA - Success                           
  -- Performing Test CXX_SUPPORTS_WEXTRA                                   
  -- Performing Test CXX_SUPPORTS_WEXTRA - Success                         
  -- Performing Test C_SUPPORTS_WPEDANTIC                                  
  -- Performing Test C_SUPPORTS_WPEDANTIC - Success                        
  -- Performing Test CXX_SUPPORTS_WPEDANTIC                                
  -- Performing Test CXX_SUPPORTS_WPEDANTIC - Success                      
  -- Performing Test C_SUPPORTS_NO_STACK_PROTECTOR                         
  -- Performing Test C_SUPPORTS_NO_STACK_PROTECTOR - Success               
  -- Performing Test CXX_SUPPORTS_NO_STACK_PROTECTOR                       
  -- Performing Test CXX_SUPPORTS_NO_STACK_PROTECTOR - Success             
  -- Performing Test C_SUPPORTS_OMIT_FRAME_POINTER                         
  -- Performing Test C_SUPPORTS_OMIT_FRAME_POINTER - Success               
  -- Performing Test CXX_SUPPORTS_OMIT_FRAME_POINTER                       
  -- Performing Test CXX_SUPPORTS_OMIT_FRAME_POINTER - Success             
  -- Performing Test C_SUPPORTS_NO_STRICT_ALIASING                         
  -- Performing Test C_SUPPORTS_NO_STRICT_ALIASING - Success               
  -- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING                       
  -- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING - Success             
  -- Performing Test C_SUPPORTS_EXCEPTION                                  
  -- Performing Test C_SUPPORTS_EXCEPTION - Success                        
  -- Performing Test CXX_SUPPORTS_EXCEPTION                                
  -- Performing Test CXX_SUPPORTS_EXCEPTION - Success                      
  -- Performing Test C_SUPPORTS_VISIBILITY                                 
  -- Performing Test C_SUPPORTS_VISIBILITY - Success                       
  -- Performing Test CXX_SUPPORTS_VISIBILITY                               
  -- Performing Test CXX_SUPPORTS_VISIBILITY - Success                     
  -- Performing Test C_SUPPORTS_NO_EXPANSION_TO_DEFINED                    
  -- Performing Test C_SUPPORTS_NO_EXPANSION_TO_DEFINED - Success          
  -- Performing Test CXX_SUPPORTS_NO_EXPANSION_TO_DEFINED                  
  -- Performing Test CXX_SUPPORTS_NO_EXPANSION_TO_DEFINED - Success        
  -- Performing Test C_SUPPORTS_DIAGNOSTICS_COLOR                          
  -- Performing Test C_SUPPORTS_DIAGNOSTICS_COLOR - Success                
  -- Performing Test CXX_SUPPORTS_DIAGNOSTICS_COLOR                        
  -- Performing Test CXX_SUPPORTS_DIAGNOSTICS_COLOR - Success              
  -- Performing Test C_SUPPORTS_COLOR_DIAGNOSTICS                          
  -- Performing Test C_SUPPORTS_COLOR_DIAGNOSTICS - Failed                 
  -- Performing Test CXX_SUPPORTS_COLOR_DIAGNOSTICS                        
  -- Performing Test CXX_SUPPORTS_COLOR_DIAGNOSTICS - Failed               
  -- Could NOT find cppcheck (missing: CPPCHECK_EXECUTABLE CPPCHECK_POSSIBLEERROR_ARG CPPCHECK_UNUSEDFUNC_ARG CPPCHECK_STYLE_ARG CPPCHECK_INCLUDEPATH_ARG CPPCHECK_QUIET_ARG)                                                    
  -- Configuration Types:                                                  
  -- Build Types: Release                                                  
  -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.6", minimum required is "3.5")                                                 
  -- Found PythonLibs: /usr/lib/i386-linux-gnu/libpython3.8.so             
  -- Python version: 3.5                                                   
  -- Python lib:     /usr/lib/i386-linux-gnu/libpython3.8.so               
  -- Python include: /usr/include/python3.8                                
  -- Python interpreter: /usr/bin/python3                                  
  -- Performing Test C_SUPPORTS_NO_MACRO_REDEFINED                         
  -- Performing Test C_SUPPORTS_NO_MACRO_REDEFINED - Success               
  -- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED                       
  -- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED - Success             
  -- Performing Test C_SUPPORTS_NO_DEPRECATED_DECLARATIONS                 
  -- Performing Test C_SUPPORTS_NO_DEPRECATED_DECLARATIONS - Success       
  -- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS               
  -- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS - Success     
  -- Performing Test HAS_ANSI                                              
  -- Performing Test HAS_ANSI - Success                                    
  CMake Error at CMakeLists.txt:541 (add_subdirectory):                    
    add_subdirectory given source "/tmp/pip-install-5uxiif1c/lief/package" 
    which is not an existing directory.                                    

  -- Configuring incomplete, errors occurred!                              
  See also "/tmp/pip-install-5uxiif1c/lief/build/temp.linux-i686-3.8/CMakeFiles/CMakeOutput.log".                                                     
  See also "/tmp/pip-install-5uxiif1c/lief/build/temp.linux-i686-3.8/CMakeFiles/CMakeError.log".                                                      
  Traceback (most recent call last):                                       
    File "<string>", line 1, in <module>                                   
    File "/tmp/pip-install-5uxiif1c/lief/setup.py", line 363, in <module>  
      setup(                                                               
    File "/usr/local/lib/python3.8/dist-packages/setuptools/__init__.py", line 153, in setup                                                          
      return distutils.core.setup(**attrs)                                 
    File "/usr/lib/python3.8/distutils/core.py", line 148, in setup        
      dist.run_commands()                                                  
    File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands 
      self.run_command(cmd)                                                
    File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command  
      cmd_obj.run()                                                        
    File "/usr/local/lib/python3.8/dist-packages/wheel/bdist_wheel.py", line 290, in run                                                              
      self.run_command('build')                                            
    File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command   
      self.distribution.run_command(command)                               
    File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command  
      cmd_obj.run()                                                        
    File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run 
      self.run_command(cmd_name)                                           
    File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command   
      self.distribution.run_command(command)                               
    File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command  
      cmd_obj.run()                                                        
    File "/tmp/pip-install-5uxiif1c/lief/setup.py", line 78, in run        
      self.build_extension(ext)                                            
    File "/tmp/pip-install-5uxiif1c/lief/setup.py", line 202, in build_extension                                                                      
      subprocess.check_call(configure_cmd, cwd=self.build_temp, env=env)   
    File "/usr/lib/python3.8/subprocess.py", line 364, in check_call       
      raise CalledProcessError(retcode, cmd)                               
  subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-5uxiif1c/lief', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-5uxiif1c/lief/build', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DLIEF_PYTHON_API=on', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.              
  ----------------------------------------                                 
  ERROR: Failed building wheel for lief
  Running setup.py clean for lief
Failed to build lief
Installing collected packages: lief, http-tools, junit-xml, ruamel.yaml, semgrep, libsast, yara-python, argparse, apkid, cryptography
    Running setup.py install for lief ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5uxiif1c/lief/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5uxiif1c/lief/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-sopu7omf/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /root/.local/include/python3.8/lief                                                                  
         cwd: /tmp/pip-install-5uxiif1c/lief/                              
    Complete output (126 lines):                                           
    0.10.1                                                                 
    running install                                                        
    running build                                                          
    running build_ext                                                      
    cmake /tmp/pip-install-5uxiif1c/lief -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-5uxiif1c/lief/build -DPYTHON_EXECUTABLE=/usr/bin/python3 -DLIEF_PYTHON_API=on -DCMAKE_BUILD_TYPE=Release                              
    -- Could NOT find cppcheck (missing: CPPCHECK_EXECUTABLE CPPCHECK_POSSIBLEERROR_ARG CPPCHECK_UNUSEDFUNC_ARG CPPCHECK_STYLE_ARG CPPCHECK_INCLUDEPATH_ARG CPPCHECK_QUIET_ARG)                                                  
    -- The C compiler identification is GNU 9.3.0                          
    -- The CXX compiler identification is GNU 9.3.0                        
    -- Detecting C compiler ABI info                                       
    -- Detecting C compiler ABI info - done                                
    -- Check for working C compiler: /usr/bin/cc - skipped                 
    -- Detecting C compile features                                        
    -- Detecting C compile features - done                                 
    -- Detecting CXX compiler ABI info                                     
    -- Detecting CXX compiler ABI info - done                              
    -- Check for working CXX compiler: /usr/bin/c++ - skipped              
    -- Detecting CXX compile features                                      
    -- Detecting CXX compile features - done                               
    -- LIEF 0.10.0                                                         
    -- ccache: ON                                                          
    -- Enable JSON support                                                 
    -- Enable Frozen (C++14 support)                                       
    -- Performing Test C_SUPPORTS_WALL                                     
    -- Performing Test C_SUPPORTS_WALL - Success                           
    -- Performing Test CXX_SUPPORTS_WALL                                   
    -- Performing Test CXX_SUPPORTS_WALL - Success                         
    -- Performing Test C_SUPPORTS_WEXTRA                                   
    -- Performing Test C_SUPPORTS_WEXTRA - Success                         
    -- Performing Test CXX_SUPPORTS_WEXTRA                                 
    -- Performing Test CXX_SUPPORTS_WEXTRA - Success                       
    -- Performing Test C_SUPPORTS_WPEDANTIC                                
    -- Performing Test C_SUPPORTS_WPEDANTIC - Success                      
    -- Performing Test CXX_SUPPORTS_WPEDANTIC                              
    -- Performing Test CXX_SUPPORTS_WPEDANTIC - Success                    
    -- Performing Test C_SUPPORTS_NO_STACK_PROTECTOR                       
    -- Performing Test C_SUPPORTS_NO_STACK_PROTECTOR - Success             
    -- Performing Test CXX_SUPPORTS_NO_STACK_PROTECTOR                     
    -- Performing Test CXX_SUPPORTS_NO_STACK_PROTECTOR - Success           
    -- Performing Test C_SUPPORTS_OMIT_FRAME_POINTER                       
    -- Performing Test C_SUPPORTS_OMIT_FRAME_POINTER - Success             
    -- Performing Test CXX_SUPPORTS_OMIT_FRAME_POINTER                     
    -- Performing Test CXX_SUPPORTS_OMIT_FRAME_POINTER - Success           
    -- Performing Test C_SUPPORTS_NO_STRICT_ALIASING                       
    -- Performing Test C_SUPPORTS_NO_STRICT_ALIASING - Success             
    -- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING                     
    -- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING - Success           
    -- Performing Test C_SUPPORTS_EXCEPTION                                
    -- Performing Test C_SUPPORTS_EXCEPTION - Success                      
    -- Performing Test CXX_SUPPORTS_EXCEPTION                              
    -- Performing Test CXX_SUPPORTS_EXCEPTION - Success                    
    -- Performing Test C_SUPPORTS_VISIBILITY                               
    -- Performing Test C_SUPPORTS_VISIBILITY - Success                     
    -- Performing Test CXX_SUPPORTS_VISIBILITY                             
    -- Performing Test CXX_SUPPORTS_VISIBILITY - Success                   
    -- Performing Test C_SUPPORTS_NO_EXPANSION_TO_DEFINED                  
    -- Performing Test C_SUPPORTS_NO_EXPANSION_TO_DEFINED - Success        
    -- Performing Test CXX_SUPPORTS_NO_EXPANSION_TO_DEFINED                
    -- Performing Test CXX_SUPPORTS_NO_EXPANSION_TO_DEFINED - Success      
    -- Performing Test C_SUPPORTS_DIAGNOSTICS_COLOR                        
    -- Performing Test C_SUPPORTS_DIAGNOSTICS_COLOR - Success              
    -- Performing Test CXX_SUPPORTS_DIAGNOSTICS_COLOR                      
    -- Performing Test CXX_SUPPORTS_DIAGNOSTICS_COLOR - Success            
    -- Performing Test C_SUPPORTS_COLOR_DIAGNOSTICS                        
    -- Performing Test C_SUPPORTS_COLOR_DIAGNOSTICS - Failed               
    -- Performing Test CXX_SUPPORTS_COLOR_DIAGNOSTICS                      
    -- Performing Test CXX_SUPPORTS_COLOR_DIAGNOSTICS - Failed             
    -- Could NOT find cppcheck (missing: CPPCHECK_EXECUTABLE CPPCHECK_POSSIBLEERROR_ARG CPPCHECK_UNUSEDFUNC_ARG CPPCHECK_STYLE_ARG CPPCHECK_INCLUDEPATH_ARG CPPCHECK_QUIET_ARG)                                                  
    -- Configuration Types:                                                
    -- Build Types: Release                                                
    -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.6", minimum required is "3.5")                                               
    -- Found PythonLibs: /usr/lib/i386-linux-gnu/libpython3.8.so           
    -- Python version: 3.5                                                 
    -- Python lib:     /usr/lib/i386-linux-gnu/libpython3.8.so             
    -- Python include: /usr/include/python3.8                              
    -- Python interpreter: /usr/bin/python3                                
    -- Performing Test C_SUPPORTS_NO_MACRO_REDEFINED                       
    -- Performing Test C_SUPPORTS_NO_MACRO_REDEFINED - Success             
    -- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED                     
    -- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED - Success           
    -- Performing Test C_SUPPORTS_NO_DEPRECATED_DECLARATIONS               
    -- Performing Test C_SUPPORTS_NO_DEPRECATED_DECLARATIONS - Success     
    -- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS             
    -- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS - Success   
    -- Performing Test HAS_ANSI                                            
    -- Performing Test HAS_ANSI - Success                                  
    CMake Error at CMakeLists.txt:541 (add_subdirectory):                  
      add_subdirectory given source "/tmp/pip-install-5uxiif1c/lief/package"                                                                          
      which is not an existing directory.                                  

    -- Configuring incomplete, errors occurred!                            
    See also "/tmp/pip-install-5uxiif1c/lief/build/temp.linux-i686-3.8/CMakeFiles/CMakeOutput.log".                                                   
    See also "/tmp/pip-install-5uxiif1c/lief/build/temp.linux-i686-3.8/CMakeFiles/CMakeError.log".                                                    
    Traceback (most recent call last):                                     
      File "<string>", line 1, in <module>                                 
      File "/tmp/pip-install-5uxiif1c/lief/setup.py", line 363, in <module>
        setup(                                                             
      File "/usr/local/lib/python3.8/dist-packages/setuptools/__init__.py", line 153, in setup                                                        
        return distutils.core.setup(**attrs)                               
      File "/usr/lib/python3.8/distutils/core.py", line 148, in setup      
        dist.run_commands()                                                
      File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands                                                                          
        self.run_command(cmd)                                              
      File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()                                                      
      File "/usr/local/lib/python3.8/dist-packages/setuptools/command/install.py", line 61, in run                                                    
        return orig.install.run(self)                                      
      File "/usr/lib/python3.8/distutils/command/install.py", line 589, in run                                                                        
        self.run_command('build')                                          
      File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command 
        self.distribution.run_command(command)                             
      File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()                                                      
      File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run                                                                          
        self.run_command(cmd_name)                                         
      File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command 
        self.distribution.run_command(command)                             
      File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()                                                      
      File "/tmp/pip-install-5uxiif1c/lief/setup.py", line 78, in run      
        self.build_extension(ext)                                          
      File "/tmp/pip-install-5uxiif1c/lief/setup.py", line 202, in build_extension                                                                    
        subprocess.check_call(configure_cmd, cwd=self.build_temp, env=env) 
      File "/usr/lib/python3.8/subprocess.py", line 364, in check_call     
        raise CalledProcessError(retcode, cmd)                             
    subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-5uxiif1c/lief', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-5uxiif1c/lief/build', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DLIEF_PYTHON_API=on', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.            
    ----------------------------------------                               
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5uxiif1c/lief/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5uxiif1c/lief/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-sopu7omf/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /root/.local/include/python3.8/lief Check the logs for full command output.              
terminatordoink commented 4 years ago

I'm having this error too, can the author share any workarounds?

ttimasdf commented 3 years ago

https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1586#issuecomment-761566206

Debugging cmake script is a pain. Just install a prebuilt version should be fine.