【问题标题】:pecl install cassandra throws: “error: Unable to load libgmp”pecl install cassandra 抛出:“错误:无法加载 libgmp”
【发布时间】:2016-11-03 11:26:20
【问题描述】:

我正在尝试使用 Laravel 5.1 和 Cassandra 3.7

版本:PHP7、Apache2.2、Cassandra3.7

但是,我得到了以下错误

configure: error: Unable to load libgmp
ERROR: `/var/tmp/cassandra/configure --with-php-config=/usr/bin/php-config' 
failed

有人可以帮我吗?

【问题讨论】:

标签: cassandra pecl php-7


【解决方案1】:

您似乎缺少可以成功构建和安装 PHP 驱动程序的依赖项之一。确保您已安装 GNUMP(带有开发头文件):

  • RHEL:sudo yum install gmp-devel
  • Ubuntu:sudo apt-get install libgmp-dev

如果您遇到任何其他缺少的依赖项或构建问题,我建议您查看驱动程序的 build instructions on GitHub

【讨论】:

    猜你喜欢
    • 2016-01-05
    • 2016-10-27
    • 1970-01-01
    • 2018-10-29
    • 2021-10-13
    • 2021-12-18
    • 1970-01-01
    相关资源
    最近更新 更多