Rate This Document
Findability
Accuracy
Completeness
Readability

"Could not find rpcgen" Displayed After CMake Is Executed During MySQL Compilation on openEuler

Symptom

During MySQL compilation on openEuler, the following information is displayed when the CMake command is executed:

CMake Error at plugin/group_replication/libmysqlgcs/rpcgen.cmake:100 (MESSAGE): Could not find rpcgen

Key Process and Cause Analysis

rpcsvc is missing. It is one of the software packages required by rpcgen, a tool for generating RPC protocol code.

Conclusion and Solution

  1. Download the rpcsvc installation package.
    wget https://github.com/thkukuk/rpcsvc-proto/releases/download/v1.4/rpcsvc-proto-1.4.tar.gz
  2. Decompress the installation package.
    tar -zxvf rpcsvc-proto-1.4.tar.gz
  3. Compile and install rpcsvc.
    ./configure && make && make install
  4. Run the CMake command again.