Not able to install Gazebo harmonic properly using the latest steps in documentaion

I am facing error that is
Unable to create the rendering window while opening the gazebo
Can anyone help me solve this.

@hemanth_reddy looks like you have problems not installing but running Gazebo. Please check the troubleshooting documentation and use the https://robotics.stackexchange.com/ tool for getting more help. Thanks.