Cannot find lgult

This is my command line.
gcc file.c -L/home/Mesa-6.0/lib -lgulg -lGL -lGLU -lm

but it shows this error.
/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status

I’m using RedHat 8.

Does there anyone know how to solve this problem?

on my system it’s

/usr/lib/libglut*, which should be the standard.

go to

and search for


I already have that the file under

But it still shows that error.

Is there anything else I can do?


yes there is something you can do: copy this file to where it should be :wink: which is /usr/lib.


This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.