【问题标题】:macOS "./configure: No such file or directory" problemmacOS“./configure:没有这样的文件或目录”问题
【发布时间】:2019-06-28 00:16:42
【问题描述】:

当我尝试使用本指南安装 Sphinx 时

./configure --with-pgsql --with-mysql #from guide
make #from guide
sudo make install #from guide

./configure

 -bash: ./configure: No such file or directory

$ autoreconf --install

autoreconf: 'configure.ac' or 'configure.in' is required

【问题讨论】:

    标签: bash sphinx configure macos-mojave


    【解决方案1】:

    您是否在 Sphinx 源代码文件夹中运行 ./configure 命令?这些说明用于编译 Sphinx。

    值得注意的是,最新的 (v3.x) Sphinx 版本不提供源代码,只能提供预编译的二进制文件。因此,如果这是您下载的内容,您需要将./bin 中的文件(包括indexer 和searchd)复制到PATH 中的某个位置(我建议/usr/local/bin)。

    【讨论】:

    • 我有源 sphinx-2.2.10-release-osx10.10-x86_64 我尝试在其中启动 ./configure:$ cd sphinx-2.2.10-release-osx10.10-x86_64 然后 $ ./configure 并得到错误 -bash: ./configure: No such file or directory
    • 我推荐 2.2.11 作为 2.2.x 版本中的最新版本 - 这是源代码的直接链接:sphinxsearch.com/files/sphinx-2.2.11-release.tar.gz - ./configure --with-pgsql --with-mysql 命令在其中起作用吗?跨度>
    • 是的。现在它运行 ./configure,但引发错误 checking MySQL include files... configure: error: missing include files. ****************************************************************************** ERROR: cannot find MySQL include files. 我尝试了 --with-mysql=.. 和 --with-mysql-includes=...
    【解决方案2】:

    不是很好的解决方案(因为没有 mysql),但可以正常工作(就像在编程世界中一样)。

    1)brew remove mysql

    2) brew install mysql@5.7(我不知道为什么,但它只适用于这个版本)

    3) 下载sphinxsearch.com/files/sphinx-2.2.11-release.tar.gz并解压到cd

    4) ./configure --with-pgsql --without-mysql 和 make 和 sudo make install

    它对我有用,因为我首先需要 postgresql

    【讨论】:

    • 如果您需要 MySQL v8 支持,您应该使用 Sphinx v3.1.1 - 它是第一个(也是目前唯一)与 MySQL v8 一起使用的版本。
    • 你拯救了我的一周!我已经为此苦苦挣扎了几天。在没有 MySQL 的情况下安装 2.2.11(但安装了 5.7)就成功了。
    • 很高兴能帮到你。我和这个问题斗争的时间太长了
    猜你喜欢
    • 2014-12-21
    • 2016-02-11
    • 2020-02-08
    • 1970-01-01
    • 1970-01-01
    • 2020-07-08
    • 2023-03-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多