1 PHP protocolbuffers Installation

Source: Internet
Author: User
Tags install php

Installation Tools
Yum install autoconf yum install Libtool

Installing the PROTOC Compiler
# cd/root/soft/protobuf-2.7. 0

Autogen.sh:

If test! -e gmock;    then"Google mocks not present.  Fetching gmock-1.7.0 from the web ... " -O https:///googlemock.googlecode.com/files/gmock-1.7.0.zipunzip-q gmock-         1.7. 0 . zip    rm Gmock-1.7. 0 . zip    mv Gmock-1.7. 0 GMOCKFI

Place the Gmock in the installation directory:

# CP.. /gmock-1.7. 0 . zip. # mv Gmock-1.7. 0. zip gmock

To start the installation:

#./autogen.sh # Generate Configure script #. /configure# make# make check# make install/usr/local/bin/protoc

Install PHP php-protocolbuffers extension and use
# CD php-protocolbuffers-master# phpize#. /configure# make# make install

Problem:

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

 

Then add extension = "protocolbuffers.so" in your php.ini config file

# Php-m | grep protocolbuffersprotocolbuffers

 

1 PHP protocolbuffers Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.