【问题标题】:Error when installing RediSearch on centos 7在 centos 7 上安装 RediSearch 时出错
【发布时间】:2021-10-09 05:00:06
【问题描述】:

我正在运行“make setup”以在 linux centos 7 上安装 RediSearch。问题是:

make setup

Setting up system...
yum install -q -y ca-certificates
yum install -q -y curl wget
/usr/bin/python2  -m pip install --disable-pip-version-check wheel
/usr/bin/python2  -m pip install --disable-pip-version-check setuptools --upgrade
/home/andrewc/marcus/RediSearch/deps/readies/bin/enable-utf8
 sed: -e expression #1, char 30: unterminated `s' command

In /home/bbbb/xxx/RediSearch/deps/readies/bin/enable-utf8:

command failed: { /home/bbbb/xxx/RediSearch/deps/readies/bin/enable-utf8; } >/tmp/tmpoqKXYK 2>&1
make: *** [Makefile:219: setup] Error 1

我尝试重新安装 Cmake 但仍然未能解决错误

【问题讨论】:

  • /home/andrewc/marcus/RediSearch/deps/readies/bin/enable-utf8 中显然存在一个错误,它会阻止它在您的系统上运行(当您在 Mac 上时可能是 Linux sed 命令,反之亦然)但如果您只是想要其他人为您解决问题,Stack Overflow 可能不是您的问题的正确站点。
  • github.com/RedisLabsModules/readies/blob/… 没有任何 明显 错误,但如果您想提供调试详细信息,可能会单独试验该代码。

标签: python cmake redis redisearch


【解决方案1】:

在隔离环境中运行(例如,带有存储库卷装载的 Docker 容器),您可以使用以下方法设置和构建 RediSearch:

./deps/readies/bin/getpy2
./sbin/system-setup.py
bash -l # enable toolchain
make

要诊断原始问题,以下方法可能会有所帮助:

./deps/readies/bin/getbashdb
bashdb ./deps/readies/bin/enable-utf8

system-setup.py 中完全禁用 enable-utf8 也会有所帮助,因为缺乏 utf8 支持通常只会在 CI 系统中导致问题。

【讨论】:

    猜你喜欢
    • 2017-08-30
    • 2015-04-18
    • 1970-01-01
    • 2014-12-02
    • 2014-09-10
    • 2014-06-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多