I want to use pdflib in linux,but I do not know how to build libpdf_php.so from a source code.
thands for your help.
They put README files in these packages for a reason. You should read them. Failing that...
./configure --enable-shared-pdflib --enable-cxx make make install ldconfig
should probably do it.