我正在关注GAE(Google应用引擎)安装的Google官方文档。 看看这部分(相对于gae php扩展):https://github.com/GoogleCloudPlatform/appengine-php-extension
./configure --enable-gae --with-protobuf_inc=<include_path> --with-protobuf_lib=<lib_path>
文档说:
Set <include_path> and <lib_path> to where you have installed the protobuf headers and libraries in the previous step.
当我运行./configure命令时,终于在终端中出现错误,因为我不知道哪些是正确的protobuf路径。
P.S。
安装Protobuf时我遵循了这个文档:
https://github.com/google/protobuf/blob/master/src/README.md
我的/home/Experiments
文件夹包含3个文件夹:
php-src
,appengine-php-extension
,protobuf
protobuf
文件夹是我有“git cloned”protobuf安装它的地方。
答案 0 :(得分:0)
如果您按照App Engine PHP Runtime的链接存储库中的构建下的说明进行操作,您会发现在步骤2中,您在生成C ++源文件和头文件时选择了一个输出目录对于remote_api.proto和urlfetch_service.proto。该文件夹是通过cmd args提供的正确文件夹。