‚ÄčI'm surprised that it segfaults, but it is well known that you need a graphics context before you try any OpenGL--perhaps that is the issue. You set a context up with your windowing system of choice.