Ubuntu - ./configure命令的右边路径 [英] Ubuntu - Right protobuf paths for ./configure command

查看:505
本文介绍了Ubuntu - ./configure命令的右边路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注GAE(Google应用引擎)安装的Google官方文档。
看这部分(相对于gae php扩展): https://github.com / GoogleCloudPlatform / appengine-php-extension

  ./ configure --enable-gae --with-protobuf_inc = < include_path中> --with-protobuf_lib = LT; LIB_PATH> 

文件显示:

 设置< include_path>和< lib_path>到上一步中安装protobuf标题和库的位置。 

当我运行./configure命令时,终端会出现错误,知道哪些是正确的protobuf路径。



Ps

安装Protobuf时,我遵循以下文档:

https://github.com/google/protobuf/blob/master/src/README.md


$ b

我的 / home / Experiments 文件夹包含3个文件夹:

php-src , appengine-php-extension protobuf

protobuf 文件夹是我的git克隆protobuf来安装它的地方。

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


I am following Google official documentation for GAE (Google app engine) installation. Look at this part (relative to gae php extension): https://github.com/GoogleCloudPlatform/appengine-php-extension

./configure --enable-gae --with-protobuf_inc=<include_path> --with-protobuf_lib=<lib_path>

The documentation says:

Set <include_path> and <lib_path> to where you have installed the protobuf headers and libraries in the previous step.

I always get an error in the terminal when I run the ./configure command, because I don't know which are the right protobuf paths.

P.s.
When installing Protobuf I followed this documentation:
https://github.com/google/protobuf/blob/master/src/README.md

My /home/Experiments folder contains 3 folders:
php-src, appengine-php-extension, protobuf.
The protobuf folder is where I have "git cloned" protobuf to install it.

解决方案

If you follow the instructions under Building in the linked repository for the App Engine PHP Runtime, you'll find that in step 2, you choose an output directory when generating C++ source and header files for remote_api.proto and urlfetch_service.proto. That folder would be the correct one to supply via cmd args.

这篇关于Ubuntu - ./configure命令的右边路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆