1

我在 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 命令?你能帮我克服这个问题吗?

4

1 回答 1

0

readline不是命令,所以你readline -v看不到任何有用的东西。

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

看看是否还有包的一个-dev-devel版本。

于 2016-03-15T22:24:16.037 回答