【问题标题】:Ubuntu - Right protobuf paths for ./configure commandUbuntu - ./configure 命令的正确 protobuf 路径
【发布时间】:2016-02-14 10:56:20
【问题描述】:

我正在关注 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 路径。

附言
安装 Protobuf 时,我遵循了以下文档:
https://github.com/google/protobuf/blob/master/src/README.md

我的/home/Experiments 文件夹包含 3 个文件夹:
php-srcappengine-php-extensionprotobuf
protobuf 文件夹是我安装“git cloned”protobuf 的地方。

【问题讨论】:

    标签: google-app-engine google-app-engine-php


    【解决方案1】:

    如果您按照App Engine PHP Runtime 链接存储库中构建 下的说明进行操作,您会发现在第2 步中,您在为remote_api 生成C++ 源文件和头文件时选择了一个输出目录.proto 和 urlfetch_service.proto。该文件夹将是通过 cmd args 提供的正确文件夹。

    【讨论】:

    • 但那将是“。” (点)这意味着 appengine-php-extension 本身的同一目录(我已经克隆了 git)。我已经尝试过了,但没有奏效(例如“/home/mark/Experiments/appengine-php-extension”)。我会再试一些变化,但我怀疑结果会改变
    • 我刚刚注意到您从未提供过您遇到的确切错误。您可以编辑问题以包含它吗?
    猜你喜欢
    • 2018-07-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-02
    • 2011-11-15
    • 1970-01-01
    相关资源
    最近更新 更多