【问题标题】:MSYS2 bash readline command not found找不到 MSYS2 bash readline 命令
【发布时间】:2016-06-30 19:47:05
【问题描述】:

我在 Windows 7 下安装了 MSYS2。我想构建一个需要 readline 的开源项目。我用

安装了 readline
pacman -S libreadline

但是当我想配置时,它会停止并显示找不到 readline 的错误。

configure: error: --with-readline was given, but test for readline failed

当我从 bash 运行时

readline -v

上面写着 'bash: readline: command not found'

我在 mingw64 shell 下也是这样做的,首先安装了带有 mingw-w64-x86_64 前缀的包,包括包 mingw-w64-x86_64-readline。

这里的输出是一样的。

我能够配置与 Cygwin readline 包相同的源(虽然我后来未能制作)。

为什么 MSYS2 shell 找不到 readline 命令?你能帮我解决这个问题吗?

【问题讨论】:

  • readline 不是命令。所以你不能readline -v 看到任何有用的东西。您可能安装了库但没有安装头文件。看看是否还有 -dev-devel 版本的包。
  • @EtanReisner 谢谢,这解决了问题。当我安装 libreadline-devel 包时,它能够配置

标签: windows bash shell mingw-w64 msys2


【解决方案1】:

readline 不是命令,因此您无法通过readline -v 看到任何有用的信息。

您可能安装了库,但没有安装头文件。

查看是否还有-dev-devel 版本的软件包。

【讨论】:

    猜你喜欢
    • 2016-09-02
    • 1970-01-01
    • 2020-03-11
    • 2013-03-01
    • 2016-03-24
    • 2018-05-28
    • 2018-12-16
    • 2013-10-12
    • 1970-01-01
    相关资源
    最近更新 更多