gpt4 book ai didi

php - 无法为 OS X 10.9.5 安装 Sphinx : '"/lib/cpp"fails sanity check'

转载 作者:行者123 更新时间:2023-11-27 23:01:34 32 4
gpt4 key购买 nike

我已经安装了开发人员工具,重新启动了我的机器,安装了一个单独的 g++ 编译器等,但是运行 ./configure 仍然失败并出现此错误:error: C++ preprocessor "/lib/cpp"未通过完整性检查 是否有关于安装/lib/cpp 目录的正确方向的提示?谢谢!

此外,这是可能有用的日志部分:

configure:4459: checking how to run the C++ preprocessor
configure:4490: -E conftest.cc
./configure: line 4491: -E: command not found
configure:4496: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libsphinxclient"
| #define PACKAGE_TARNAME "libsphinxclient"
| #define PACKAGE_VERSION "0.0.1"
| #define PACKAGE_STRING "libsphinxclient 0.0.1"
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:4490: -E conftest.cc
./configure: line 4491: -E: command not found
configure:4496: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libsphinxclient"
| #define PACKAGE_TARNAME "libsphinxclient"
| #define PACKAGE_VERSION "0.0.1"
| #define PACKAGE_STRING "libsphinxclient 0.0.1"
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:4490: /lib/cpp conftest.cc
./configure: line 4491: /lib/cpp: No such file or directory
configure:4496: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libsphinxclient"
| #define PACKAGE_TARNAME "libsphinxclient"
| #define PACKAGE_VERSION "0.0.1"
| #define PACKAGE_STRING "libsphinxclient 0.0.1"
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:4490: /lib/cpp conftest.cc
./configure: line 4491: /lib/cpp: No such file or directory
configure:4496: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libsphinxclient"
| #define PACKAGE_TARNAME "libsphinxclient"
| #define PACKAGE_VERSION "0.0.1"
| #define PACKAGE_STRING "libsphinxclient 0.0.1"
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:4573: result: /lib/cpp
configure:4597: /lib/cpp conftest.cc
./configure: line 4598: /lib/cpp: No such file or directory
configure:4603: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libsphinxclient"
| #define PACKAGE_TARNAME "libsphinxclient"
| #define PACKAGE_VERSION "0.0.1"
| #define PACKAGE_STRING "libsphinxclient 0.0.1"
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:4597: /lib/cpp conftest.cc
./configure: line 4598: /lib/cpp: No such file or directory
configure:4603: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libsphinxclient"
| #define PACKAGE_TARNAME "libsphinxclient"
| #define PACKAGE_VERSION "0.0.1"
| #define PACKAGE_STRING "libsphinxclient 0.0.1"
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:4672: error: C++ preprocessor "/lib/cpp" fails sanity check
See 'config.log' for more details.

最佳答案

CXXCPP="gcc -E" ./configure
make
sudo make install

通过http://www.labelmedia.co.uk/blog/installing-sphinx-and-pecl-sphinx-on-mac-os-x.html

关于php - 无法为 OS X 10.9.5 安装 Sphinx : '"/lib/cpp"fails sanity check',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27083361/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com