macOS "./configure: No such file or directory" 问题
macOS "./configure: No such file or directory" problem
当我尝试使用本指南安装 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
您是 运行 Sphinx 源代码文件夹中的 ./configure
命令吗?这些说明用于编译 Sphinx。
值得注意的是,最新的 (v3.x) Sphinx 版本不提供源代码,仅提供 pre-compiled 二进制文件。因此,如果这就是您下载的内容,您需要将 ./bin
中的文件(包括 indexer
和 searchd
)复制到您的 PATH 中的某个位置(我建议 /usr/local/bin
).
不是很好的解决方案(因为没有 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
当我尝试使用本指南安装 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
您是 运行 Sphinx 源代码文件夹中的 ./configure
命令吗?这些说明用于编译 Sphinx。
值得注意的是,最新的 (v3.x) Sphinx 版本不提供源代码,仅提供 pre-compiled 二进制文件。因此,如果这就是您下载的内容,您需要将 ./bin
中的文件(包括 indexer
和 searchd
)复制到您的 PATH 中的某个位置(我建议 /usr/local/bin
).
不是很好的解决方案(因为没有 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