Download Opengl 3.1 Guide
If you are a developer trying to write OpenGL 3.1 code, you need header files and libraries. Do not use the old "OpenGL SDK" from 2000s websites.
To be clear:
glxinfo | grep "OpenGL version" (e.g., "Could not create OpenGL 3.1 context") Tell me the exact error, and I can give you a targeted fix. download opengl 3.1