1 php protocolbuffers安裝

來源:互聯網
上載者:User

標籤:

安裝工具
yum install autoconf yum install libtool

 

安裝protoc編譯器
# cd /root/soft/protobuf-2.7.0

 

autogen.sh :

if test ! -e gmock; then    echo "Google Mock not present.  Fetching gmock-1.7.0 from the web..."    curl $curlopts -O https://googlemock.googlecode.com/files/gmock-1.7.0.zip    unzip -q gmock-1.7.0.zip    rm gmock-1.7.0.zip    mv gmock-1.7.0 gmockfi

 

將gmock放置在安裝目錄:

# cp ../gmock-1.7.0.zip .# mv gmock-1.7.0.zip gmock

 

開始安裝:

# ./autogen.sh # 產生configure指令碼# ./configure# make# make check# make install/usr/local/bin/protoc

 

安裝php的 php-protocolbuffers擴充 及 使用
# cd php-protocolbuffers-master# phpize# ./configure# make# make install

 

問題:

Can‘t find PHP headers in /usr/include/phpThe php-devel package is required for use of this command.
# yum install php-devel

 

 

然後在你的php.ini設定檔中添加 extension = "protocolbuffers.so"

# php -m | grep protocolbuffersprotocolbuffers

 

 

1 php protocolbuffers安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.