dev-master
9999999-devBpulse Protobuf Conector
Apache
The Requires
by Angel Rodriguez
bpulse
Wallogit.com
2017 © Pedro Peláez
Bpulse Protobuf Conector
bpulse-protobuf-php is the model interface which bpulse relies on in order to send messages with pulses to the collector, it is a mandatory dependency of bpulse-sdk-php in order to compile it and send messages to the collector., (*1)
In order to build this project you need to install protoc on your machine, it is very important that you use specifically the 2.6.1 version otherwise the project might not compile., (*2)
The instructions for each OS are the following:, (*3)
Use the provided distribution in this repository under /protobuf/windows/protoc-2.6.1-win32.rar unpack it wherever you want. Edit your environment variables adding one that points to the unpackaged folder like PROTOC_HOME, (*4)
e.g. PROTOC_HOME=C:\software\protoc
Then edit your PATH variable appending the new variable, (*5)
e.g. PATH=[other_variables];%PROTOC_HOME%
You can check if the installation was ok by opening a terminal and executing the following command:, (*6)
protoc --version
You should see this output:, (*7)
libprotoc 2.6.1
Use the provided distribution in this repository under /protobuf/linux/protobuf-2.6.1.tar.gz unpackit wherever you want., (*8)
Note: At this point you should have installed the two linux packages mentioned above., (*9)
Open a terminal and go to where you unpacked the file, then execute the following commands (one by one):, (*10)
$ ./autogen.sh $ ./configure $ ./make $ ./make install
Note: The make install commad may require sudo, (*11)
After that, you can check if everything succeded by executin the command:, (*12)
$ protoc --version
If you don't receive a message like:, (*13)
libprotoc 2.6.1
Then execute the following:, (*14)
$ sudo ldconfig
Once you checked out the sources, in a terminal go to the bpulse-protobuf-php folder and type, (*15)
$ make build
It's done!, now you can use the bpulse-sdk-php, (*16)
The Bpulse Protobuf PHP is licensed under the Apache License 2.0. Details can be found in the LICENSE file., (*17)
Bpulse Protobuf Conector
Apache
bpulse