Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux protobuf-c     - Example of use WebSocket (Programming)

- Shell scripts get a snapshot of the page and generates thumbnails (Linux)

- Hadoop 2.6.0 stand-alone / pseudo-distributed installation (Server)

- Solve ORA-01012: not logged on (Database)

- Java data structures - the single linked list LinkedList linear table (Programming)

- Vim Common Command Summary (Linux)

- How to build Mono 3.4.0 / 3.4.1 on Windows (Linux)

- 20 Top Linux commands (Linux)

- in no backup ex: error: Xin Tourou ah backup child process has Singles DAT / US person / bin / in no backup ex (Database)

- APR for Tomcat installation under Linux (Server)

- To compile and install Redis Linux and master-slave replication configuration (Database)

- Three easy open source firewall on the Linux platform (Linux)

- Android gets the global process information and the memory used by the process (Programming)

- RPM package creation Getting Started (Linux)

- Use the dd command to the hard disk I / O performance test (Linux)

- Linux, Oracle listen address modification (Database)

- How to understand the difference between synchronous and asynchronous non-blocking blocking (Programming)

- How to make a U disk to install Ubuntu (Linux)

- Network Security: SYN attacks against under linux (Linux)

- C ++ Replication Control: Assignment operators and destructors (Programming)

 
         
  Linux protobuf-c
     
  Add Date : 2018-11-21      
         
         
         
  Foreword
Recently the need to use Google Protocol Buffer out to do some of the services communicate with each other, since the Protocol Buffer no native support for C, use only protobuf-c of this third-party libraries, with the Internet nor the complete installation, it recorded.

What Protocol Buffer that?
Protocol Buffer is a language-independent, platform-independent, scalable, and for serializing structured data communication protocol method, the stored data. Like XML, but it is smaller, faster and easier. You can define your own data structure, and then use the code generator generates code to read and write this data structure.

Installation protobuf
Since protobuf-c is not yet supported by the latest version of protobuf 2.4.1, so we need to install a supported version 2.3.0. Installation steps are as follows:

wget http://protobuf.googlecode.com/files/protobuf-2.3.0.tar.gz
tar zxvf protobuf-2.3.0.tar.gz
cd protobuf-2.4.1
./configure --prefix = / usr /
make
sudo make install
/ Sbin / ldconfig -v

The last command is particularly important, do not forget, time or install protobuf-c will be reported to the shared library path error

 

Installation protobuf-c
Follow the steps below to install protobuf-c's.

wget http://protobuf-c.googlecode.com/files/protobuf-c-0.15.tar.gz
tar zxvf protobuf-c-0.15.tar.gz
cd protobuf-c-0.15
./configure --prefix = / usr /
make
sudo make install
Test protobuf-c
Run the following command, no error is generated to view the next file.

cd ..
protoc-c --c_out =. / protobuf-c-0.15 / src / test / test.proto
     
         
         
         
  More:      
 
- Implement firewall function on a closed Linux machine (Linux)
- Linux C programming and Shell Programming in the development of practical tools similarities summary (Programming)
- Sort search algorithm Java - application examples with recursive dichotomy (Programming)
- Ubuntu 14.04 compile and install Apache (Server)
- Use cmake to compile and install MySQL 5.5 (Database)
- Use Redis as time-series database: why and how (Database)
- 3 tips Linux command (Linux)
- How to monitor Linux system performance Nmon (Linux)
- To install Xen in Ubuntu 12.04 (Linux)
- To change CentOS7 runlevel (Linux)
- Linux operating tips: Can not open file for writing or operation not permitted solution (Linux)
- JavaScript original values and complex values (Programming)
- Linux system server network security management tips (Linux)
- Basic data types JavaScript type system and the type of packaging (Programming)
- Compile and install GCC 4.8.1 + GDB 7.6.1 + Eclipse in CentOS 6.4 in (Linux)
- Ubuntu 14.04 can be used to create a WIFI hotspot for Android (Linux)
- Linux Command - ps: a snapshot of the current process (Linux)
- Linux System Getting Started Learning: Change the name of the network interface on CentOS7 (Linux)
- Create your own YUM repository (Linux)
- Shell commonly commands (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.