Solution:
Method 1:
Run the following command to install vnc
yum install tigervnc tigervnc-serverv
Method 2:
If you execute ./runInstaller, it still reports an error as
Could not execute auto check for display colors using command /usr/bin/xdpyinfo <<failed
Install xdpyinfo
yum install xdpyinfo