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

types.h Not Found When Pydoop Is Installed

Symptom

The types.h file is not found when installing Pydoop.

Key Process and Cause Analysis

The tirpc directory is not specified during pip installation.

Conclusion and Solution

  1. Download libtirpc dependencies.
    1
    yum install -y libtirpc*+
    
  2. Find the absolute path of the types.h header file.
    1
    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.