Mfix-21.4 & RHEL 7.5 with X11 starts and fails to open GLEW could not be initialized: Missing GL version

I can run preview but only with --mesa Use the provided Mesa build and its default rendering backend

I enabled OpenGL forwarding in XQuartz from the link you sent.

I tried the -g option but now I get these errors:

libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
2022-03-01 10:14:23.600 (  14.758s) [        AAAF1EC0]vtkOpenGLRenderWindow.c:499    ERR| vtkXOpenGLRenderWindow (0x55555cfaef60): Unable to find a valid OpenGL 3.2 or later implementation. Please update your video card driver to the latest version. If you are using Mesa please make sure you have version 11.2 or later and make sure your driver in Mesa supports OpenGL 3.2 such as llvmpipe or openswr. If you are on windows and using Microsoft remote desktop note that it only supports OpenGL 3.2 with nvidia quadro cards. You can use other remoting software such as nomachine to avoid this issue.
Segmentation fault (core dumped)