当前位置:网站首页>Using Google protobuf protocol environment configuration in PHP
Using Google protobuf protocol environment configuration in PHP
2022-06-25 23:47:00 【ndrandy】
Two things need to be installed
- protoc compiler
- php-protobuf Expand
Be careful :protoc and php The extended version must be consistent , This way to V3.9.1 For example
There are many articles on the Internet , Installed PHP After expansion , It also needs to be composer To load the , Misleading , Extension mode and composer One out of two
Installation method :
- install protoc
~# cd /data
~# wget -c https://github.com/protocolbuffers/protobuf/releases/download/v3.9.1/protoc-3.9.1-linux-x86_64.zip
~# unzip protoc-3.9.1-linux-x86_64.zip
~# cd bin/
~# mv protoc /usr/bin/
~# protoc --version
libprotoc 3.9.1
- install php-protobuf Expand ( Extended installation and self php The installation path is related to , Fine tune yourself according to the situation )
~# wget -c https://github.com/protocolbuffers/protobuf/releases/download/v3.9.1/protobuf-php-3.9.1.zip
~# unzip protobuf-php-3.9.1.zip
~# cd protobuf-3.9.1/php/ext/google/protobuf
~# /opt/php/bin/phpize
~# ./configure --with-php-config=/opt/php/bin/php-config
~# make
~# make install
phpinfo View can see :
protobuf
Version => 3.9.1
This way , The entire environment has been successfully configured
边栏推荐
- InputStream流已经关闭了,但是依旧无法delete文件或者文件夹,提示被JVM占用等
- Hibernate architecture introduction and environment construction (very detailed)
- ACM. Hj16 shopping list ●●
- Uni app -- listen for the exit of the return key
- DPVS-FullNAT模式管理篇
- C1. k-LCM (easy version)-Codeforces Round #708 (Div. 2)
- Uniapp -- framework arrangement and analysis summary
- OpenJudge NOI 2.1 15:Counterfeit Dollar
- UE4 learning records create a role and control its movement
- phoenix索引
猜你喜欢
Kotlin空指针Bug
The software test interview has been suspended. The interviewer always says that the logical thinking is chaotic. What should I do?
How does excel translate Chinese words into English automatically? This formula teaches you
Uniapp -- list page of multi header tabs
Gradle的环境安装与配置
Reprint: detailed explanation of qtablewidget (style, right-click menu, header collapse, multiple selection, etc.)
Qtcreator formatting code
Database - mongodb
ACM. Hj16 shopping list ●●
Use Baidu map API to set an overlay (infowindow) in the map to customize the window content
随机推荐
Px4 multi computer simulation (gazebo)
格式化编号,不够位数的补0,例如1:0001,25:0025
Uniapp - call payment function: Alipay
Use Baidu map API to set an overlay (infowindow) in the map to customize the window content
流数据
C# IO Stream 流(二)扩展类_封装器
Analysis on the control condition and mode of go cooperation overtime exit
18亿像素火星全景超高清NASA放出,非常震撼
Database - mongodb
音频基础知识以及PCM转WAV
mysql版本升级+数据迁移
发送邮件工具类
php socket通信中stream_select方法的理解
Download the latest V80 version of Google Chrome
Graduation trip | recommended 5-day trip to London
Customize the qcombobox drop-down box, right align the display, and slide the drop-down list
录屏转gif的好用小工具ScreenToGif,免费又好用!
Uniapp -- framework arrangement and analysis summary
解析產品開發失敗的5個根本原因
先序线索二叉树