无法使用CMD使用Composer安装google / cloud-spanner

问题描述 投票:0回答:1

我将在我的Web项目中使用Google Cloud Spaner数据库。所以我要安装作曲家。当我在cmd中运行composer install命令时,它将显示此消息。

  Problem 1
    - Installation request for google/cloud-spanner ^1.27.1 -> satisfiable by google/cloud-spanner[v1.27.1].
    - google/cloud-spanner v1.27.1 requires ext-grpc * -> the requested PHP extension grpc is missing from your system.

我认为这是我的PHP版本缺少某些文件的问题。我对吗?该如何解决?

php google-cloud-platform composer-php google-cloud-spanner grpc-php
1个回答
-1
投票

首先需要安装gRPC for PHP

在Windows上,您必须手动安装DLLgrpc-1.28.0.tgz可能需要例如。 WinRAR解压。

并通过extension=php_grpc.dll中的php.ini启用它。

有关更多信息,请参见grpc.io

© www.soinside.com 2019 - 2024. All rights reserved.