在OSX上安装Rekal时,请执行以下步骤:
virtualenv MyEnv
source MyEnv/bin/activate
pip install --upgrade setuptools pip wheel
pip install rekall
安装失败,出现以下错误:
> Building wheel for readline (setup.py) ... error ERROR: Command
> errored out with exit status 1: command:
> /Users/mg/Documents/Rekall/MyEnv/bin/python -u -c 'import sys,
> setuptools, tokenize; sys.argv[0] =
> '"'"'/private/var/folders/xh/1xkfq26532j97q23qw5pdhs40000gn/T/pip-install-wojwzd/readline/setup.py'"'"';
> __file__='"'"'/private/var/folders/xh/1xkfq26532j97q23qw5pdhs40000gn/T/pip-install-wojwzd/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/var/folders/xh/1xkfq26532j97q23qw5pdhs40000gn/T/pip-wheel-l11bWR
> --python-tag cp27
> cwd: /private/var/folders/xh/1xkfq26532j97q23qw5pdhs40000gn/T/pip-install-wojwzd/readline/
> Complete output (195 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/var/folders/xh/1xkfq26532j97q23qw5pdhs40000gn/T/pip-install-wojwzd/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-intel-2.7 creating
> build/temp.macosx-10.14-intel-2.7/Modules creating
> build/temp.macosx-10.14-intel-2.7/Modules/2.x cc
> -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -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/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
> -c Modules/2.x/readline.c -o build/temp.macosx-10.14-intel-2.7/Modules/2.x/readline.o
> -Wno-strict-prototypes Modules/2.x/readline.c:720:22: warning: implicit conversion loses integer precision: 'long' to 'int'
> [-Wshorten-64-to-32]
> result = PyInt_AsLong(r);
> ~ ^~~~~~~~~~~~~~~ 1 warning generated. creating build/lib.macosx-10.14-intel-2.7 cc -bundle -undefined
> dynamic_lookup -Wl,-F.
> build/temp.macosx-10.14-intel-2.7/Modules/2.x/readline.o
> readline/libreadline.a readline/libhistory.a -lncurses -o
> build/lib.macosx-10.14-intel-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 'cc'
> failed with exit status 1 ----------------------------------------
> ERROR: Failed building wheel for readline
如何解决该错误?