The Linux distribution typically splits the header file and associated Pkg-config of the class library into a separate Xxx-dev (EL) package.
In Python, for example, you need to python-dev in the following situations
- You need to install an out-of-the-source Python class library that contains C + + files that need to be compiled to call the Python API
- You write your own program to compile a link libpythonxx. (A|SO)
(Note: The above does not include the use of Ctypes/ffi or bare Dlsym method directly call libpython.so)
Other normal use of Python or by installing the Python class library within the source does not require python-dev.
Do
1. You can check the package with Python-devel first
Yum Search Python | grep python-devel
2.64-bit installation python-devel.x86_64,32-bit install python-devel.i686, I install here:
sudo yum install python-devel.x86_64
about why you have installed Python to install Python-dev