Error during PHP installation and configuration error: off_t undefined; check your library configuration

vim /etc/ld.so.conf 
#add these lines below
/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64 
#save and quit
:wq
ldconfig -v # Make it work


Read More: