These seem like Virtual GL setup / remote display config issues
please check if DISPLAY environment variable is set correctly. if tests like "glxgears" or "glxspheres" work. check path which can affect the order in which the libries get loaded. you can try using "ldd " to see which libraries are getting used.
Hope this helps