我要评分
获取效率
正确性
完整性
易理解

types.h Cannot Be Found During Pydoop Installation

Symptom

The types.h file cannot be found during Pydoop installation.

Key Process and Cause Analysis

None

Conclusion and Solution

  1. Download libtirpc dependencies.
    yum install -y libtirpc*
  2. Find the absolute path of the types.h header file.
    find /usr -name "types.h" | grep rpc
  3. Specify the tirpc directory during pip installation to ensure that types.h can be accessed.
    pip install --global-option=build_ext --global-option="-I/usr/include/tirpc" pydoop

    If the absolute path found in 2 is not /usr/include/tirpc, change /usr/include/tirpc in the preceding command to the absolute path found in 2.