Rekall Forensic 框架:失败的 readline 构建轮

听筒

在安装最新版本的 google Rekall Forensic 框架期间,在安装“rekall-agent”的步骤中,它说:“readline 的构建轮失败”

我在 Kali Linux(2016-02) 上安装它默认 python 版本是 2.7.12
在安装 rekall-agent 的步骤我遇到异常和错误。这是带有详细开关的错误部分:

    ============ Building the readline extension module ============

  running bdist_wheel
  running build
  running build_ext
  building 'readline' extension
  creating build
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/Modules
  creating build/temp.linux-x86_64-2.7/Modules/2.x
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-oH9M6v/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -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/include/python2.7 -c Modules/2.x/readline.c -o build/temp.linux-x86_64-2.7/Modules/2.x/readline.o -Wno-strict-prototypes
  creating build/lib.linux-x86_64-2.7
  x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-oH9M6v/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-oH9M6v/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/Modules/2.x/readline.o readline/libreadline.a readline/libhistory.a -lncurses -o build/lib.linux-x86_64-2.7/readline.so
  /usr/bin/ld: cannot find -lncurses
  collect2: error: ld returned 1 exit status
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
error
  Failed building wheel for readline
  Running setup.py clean for readline
  Running command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-t5Y300/readline/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all
  running clean
  removing 'build/temp.linux-x86_64-2.7' (and everything under it)
  removing 'build/lib.linux-x86_64-2.7' (and everything under it)
  'build/bdist.linux-x86_64' does not exist -- can't clean it
  'build/scripts-2.7' does not exist -- can't clean it
  removing 'build'
Failed to build readline
Installing collected packages: readline, rekall
  Running setup.py install for readline ...     Running command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-t5Y300/readline/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-Gvwo7F-record/install-record.txt --single-version-externally-managed --compile
    running install
    running build
    running build_ext
    building 'readline' extension
    creating build
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/Modules
    creating build/temp.linux-x86_64-2.7/Modules/2.x
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-oH9M6v/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -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/include/python2.7 -c Modules/2.x/readline.c -o build/temp.linux-x86_64-2.7/Modules/2.x/readline.o -Wno-strict-prototypes
    creating build/lib.linux-x86_64-2.7
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-oH9M6v/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-oH9M6v/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/Modules/2.x/readline.o readline/libreadline.a readline/libhistory.a -lncurses -o build/lib.linux-x86_64-2.7/readline.so
    /usr/bin/ld: cannot find -lncurses
    collect2: error: ld returned 1 exit status
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
error
Cleaning up...
  Removing source in /tmp/pip-build-t5Y300/readline
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-t5Y300/readline/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-Gvwo7F-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-t5Y300/readline/
Exception information:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 878, in install
    spinner=spinner,
  File "/usr/local/lib/python2.7/dist-packages/pip/utils/__init__.py", line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-t5Y300/readline/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-Gvwo7F-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-t5Y300/readline/

我还尝试从错误日志中重新安装“ gcc ”和“ python2.7-dev ”并搜索其他主题我认为问题与它们有关但没有解决

真正的问题是这一行:

/usr/bin/ld: cannot find -lncurses

通常,这意味着链接器无法找到构建包所需的特定库存档。检查您是否已ncurses安装,或通过以下方式安装

$ apt install ncurses

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Python Flask App - 失败的熊猫构建轮

macOS上psutil的构建轮失败

安装datadotworld时cchardet的构建轮失败

Python,PIP,line-profiler的失败构建轮

Cygwin:(python)错误:密码学构建轮失败

错误:安装wx时wxpython-phoenix的构建轮失败

为cffi运行setup.py bdist_wheel加密失败的构建轮

Ubuntu 16.04上box2d.py的构建轮失败

Ubuntu Python:无法 pip install dlib - dlib 的构建轮失败,机器几乎卡住

无法在Google Colab上安装pyaudio,并显示“错误:pyaudio的构建轮失败”

安装psycopg2 osx 10.12 python 3.5.2-psycopg2的构建轮失败

错误:psycopg2的构建轮失败-MacOS Mojave 10.14.16 python 3

斯威夫特框架构建失败的设备而不是模拟器

从框架内使用类时,IB_DESIGNABLE构建失败

离子框架ios构建失败 社会共享| 偏爱

Readline在Go测试案例中失败

Xcode 8:存档构建因链接错误而失败(对于嵌套框架)。常规构建成功编译

使用不同的轮名称构建 tensorflow

安装 JupyterLab 时构建轮错误

Xamarin iOS构建错误-本机链接失败(仅链接框架SDK)

在Swift中使用解析框架时,为什么我的构建失败?

使用我自己的xcode自定义框架,项目构建失败

几轮后,文件列表操作失败

失败的金字塔建筑轮

Apache mod_log_forensic用于什么?

构建成功,但发布失败-此版本的Microsoft.AspNetCore.All仅与netcoreapp2.2目标框架兼容

在带有.NET核心和框架混合解决方案的Azure Devops中,蛋糕构建脚本失败

scipy的构建轮(setup.py):状态为“错误”

无法使用私有轮构建本地AMLS环境