epinna/weevely3

Can't build

Barmadzilla opened this issue · 1 comments

Help please
After sudo -H pip2 install -r requirements.txt --upgrade see errors below:

Building wheels for collected packages: readline
  Building wheel for readline (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/python@2/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-BRDrnV/readline/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-BRDrnV/readline/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 /private/tmp/pip-wheel-rruSaP --python-tag cp27
       cwd: /private/tmp/pip-install-BRDrnV/readline/
  Complete output (191 lines):
  
  ============ Building the readline library ============
  
  x readline-6.2/
  x readline-6.2/doc/
  x readline-6.2/doc/Makefile.in
  x readline-6.2/doc/texinfo.tex
  x readline-6.2/doc/version.texi
  x readline-6.2/doc/fdl.texi
  x readline-6.2/doc/rlman.texi
  x readline-6.2/doc/rltech.texi
  x readline-6.2/doc/rluser.texi
  x readline-6.2/doc/rluserman.texi
  x readline-6.2/doc/history.texi
  x readline-6.2/doc/hstech.texi
  x readline-6.2/doc/hsuser.texi
  x readline-6.2/doc/readline.3
  x readline-6.2/doc/history.3
  x readline-6.2/doc/texi2dvi
  x readline-6.2/doc/texi2html
  x readline-6.2/doc/readline.ps
  x readline-6.2/doc/history.ps
  x readline-6.2/doc/rluserman.ps
  x readline-6.2/doc/readline.dvi
  x readline-6.2/doc/history.dvi
  x readline-6.2/doc/rluserman.dvi
  x readline-6.2/doc/readline.info
  x readline-6.2/doc/history.info
  x readline-6.2/doc/rluserman.info
  x readline-6.2/doc/readline.html
  x readline-6.2/doc/history.html
  x readline-6.2/doc/rluserman.html
  x readline-6.2/doc/readline.0
  x readline-6.2/doc/history.0
  x readline-6.2/doc/readline_3.ps
  x readline-6.2/doc/history_3.ps
  x readline-6.2/doc/history.pdf
  x readline-6.2/doc/readline.pdf
  x readline-6.2/doc/rluserman.pdf
  x readline-6.2/examples/
  x readline-6.2/examples/autoconf/
  x readline-6.2/examples/autoconf/BASH_CHECK_LIB_TERMCAP
  x readline-6.2/examples/autoconf/RL_LIB_READLINE_VERSION
  x readline-6.2/examples/autoconf/wi_LIB_READLINE
  x readline-6.2/examples/rlfe/
  x readline-6.2/examples/rlfe/ChangeLog
  x readline-6.2/examples/rlfe/Makefile.in
  x readline-6.2/examples/rlfe/README
  x readline-6.2/examples/rlfe/config.h.in
  x readline-6.2/examples/rlfe/configure
  x readline-6.2/examples/rlfe/configure.in
  x readline-6.2/examples/rlfe/extern.h
  x readline-6.2/examples/rlfe/os.h
  x readline-6.2/examples/rlfe/pty.c
  x readline-6.2/examples/rlfe/rlfe.c
  x readline-6.2/examples/rlfe/screen.h
  x readline-6.2/examples/Makefile.in
  x readline-6.2/examples/excallback.c
  x readline-6.2/examples/fileman.c
  x readline-6.2/examples/manexamp.c
  x readline-6.2/examples/readlinebuf.h
  x readline-6.2/examples/rl-fgets.c
  x readline-6.2/examples/rlcat.c
  x readline-6.2/examples/rlevent.c
  x readline-6.2/examples/rltest.c
  x readline-6.2/examples/rl.c
  x readline-6.2/examples/rlptytest.c
  x readline-6.2/examples/rlversion.c
  x readline-6.2/examples/histexamp.c
  x readline-6.2/examples/Inputrc
  x readline-6.2/examples/rlwrap-0.30.tar.gz
  x readline-6.2/support/
  x readline-6.2/support/config.guess
  x readline-6.2/support/config.rpath
  x readline-6.2/support/config.sub
  x readline-6.2/support/install.sh
  x readline-6.2/support/mkdirs
  x readline-6.2/support/mkdist
  x readline-6.2/support/mkinstalldirs
  x readline-6.2/support/shobj-conf
  x readline-6.2/support/shlib-install
  x readline-6.2/support/wcwidth.c
  x readline-6.2/shlib/
  x readline-6.2/shlib/Makefile.in
  x readline-6.2/COPYING
  x readline-6.2/README
  x readline-6.2/MANIFEST
  x readline-6.2/INSTALL
  x readline-6.2/CHANGELOG
  x readline-6.2/CHANGES
  x readline-6.2/NEWS
  x readline-6.2/USAGE
  x readline-6.2/aclocal.m4
  x readline-6.2/config.h.in
  x readline-6.2/configure
  x readline-6.2/configure.in
  x readline-6.2/Makefile.in
  x readline-6.2/ansi_stdlib.h
  x readline-6.2/chardefs.h
  x readline-6.2/history.h
  x readline-6.2/histlib.h
  x readline-6.2/keymaps.h
  x readline-6.2/posixdir.h
  x readline-6.2/posixjmp.h
  x readline-6.2/readline.h
  x readline-6.2/posixselect.h
  x readline-6.2/posixstat.h
  x readline-6.2/rlconf.h
  x readline-6.2/rldefs.h
  x readline-6.2/rlmbutil.h
  x readline-6.2/rlprivate.h
  x readline-6.2/rlshell.h
  x readline-6.2/rlstdc.h
  x readline-6.2/rltty.h
  x readline-6.2/rltypedefs.h
  x readline-6.2/rlwinsize.h
  x readline-6.2/tcap.h
  x readline-6.2/tilde.h
  x readline-6.2/xmalloc.h
  x readline-6.2/bind.c
  x readline-6.2/callback.c
  x readline-6.2/compat.c
  x readline-6.2/complete.c
  x readline-6.2/display.c
  x readline-6.2/emacs_keymap.c
  x readline-6.2/funmap.c
  x readline-6.2/input.c
  x readline-6.2/isearch.c
  x readline-6.2/keymaps.c
  x readline-6.2/kill.c
  x readline-6.2/macro.c
  x readline-6.2/mbutil.c
  x readline-6.2/misc.c
  x readline-6.2/nls.c
  x readline-6.2/parens.c
  x readline-6.2/readline.c
  x readline-6.2/rltty.c
  x readline-6.2/savestring.c
  x readline-6.2/search.c
  x readline-6.2/shell.c
  x readline-6.2/signals.c
  x readline-6.2/terminal.c
  x readline-6.2/text.c
  x readline-6.2/tilde.c
  x readline-6.2/undo.c
  x readline-6.2/util.c
  x readline-6.2/vi_keymap.c
  x readline-6.2/vi_mode.c
  x readline-6.2/xfree.c
  x readline-6.2/xmalloc.c
  x readline-6.2/history.c
  x readline-6.2/histexpand.c
  x readline-6.2/histfile.c
  x readline-6.2/histsearch.c
  x readline-6.2/patchlevel
  patching file vi_mode.c
  patching file callback.c
  patching file support/shobj-conf
  patching file patchlevel
  patching file input.c
  patching file patchlevel
  patching file vi_mode.c
  patching file patchlevel
  checking build system type... i386-apple-darwin18.7.0
  checking host system type... i386-apple-darwin18.7.0
  
  Beginning configuration for readline-6.2 for i386-apple-darwin18.7.0
  
  checking whether make sets $(MAKE)... yes
  checking for gcc... gcc
  checking for C compiler default output file name...
  configure: error: in `/private/tmp/pip-install-BRDrnV/readline/rl/readline-lib':
  configure: error: C compiler cannot create executables
  See `config.log' for more details.
  
  ============ Building the readline extension module ============
  
  running bdist_wheel
  running build
  running build_ext
  building 'readline' extension
  creating build
  creating build/temp.macosx-10.14-x86_64-2.7
  creating build/temp.macosx-10.14-x86_64-2.7/Modules
  creating build/temp.macosx-10.14-x86_64-2.7/Modules/2.x
  clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL -DHAVE_RL_COMPLETION_APPEND_CHARACTER -DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES -DHAVE_RL_COMPLETION_SUPPRESS_APPEND -DHAVE_RL_PRE_INPUT_HOOK -I. -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@2/2.7.16_1/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Modules/2.x/readline.c -o build/temp.macosx-10.14-x86_64-2.7/Modules/2.x/readline.o -Wno-strict-prototypes
  creating build/lib.macosx-10.14-x86_64-2.7
  clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk build/temp.macosx-10.14-x86_64-2.7/Modules/2.x/readline.o readline/libreadline.a readline/libhistory.a -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -lncurses -o build/lib.macosx-10.14-x86_64-2.7/readline.so
  clang: error: no such file or directory: 'readline/libreadline.a'
  clang: error: no such file or directory: 'readline/libhistory.a'
  error: command 'clang' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for readline

I was working on fixing this just today. Try this:

  • Pull weevely again with git pull
  • Follow the instructions on installing this on macos from here