This question already has an answer here:

I'm trying to compile Alephone on Ubuntu 14.04, but I'm getting the issue that -lGL isn't found. Running whereis libGL.so returns nothing, even though I've installed libgl1-mesa-dev, mesa-common-dev, freeglut3-dev, and freeglut3. This started after installing the proprietary drivers for the AMD Radeon 2400 HD pro. Due to an error with the installation, though, I removed it, and I think that's the culprit. How do I get the library back?

marked as duplicate by Eric Carvalho, pomsky, N0rbert, Thomas, Zanna Oct 3 '18 at 10:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Running sudo apt-get install fglrx-dev fglrx-updates fglrx-updates-dev Fixed the issue. For some reason, I couldn't install all three at once, so I had to install fglrx-dev first, and then the other two were fine.

EDIT: I was mistaken, following the instructions in this post worked perfectly.

Not the answer you're looking for? Browse other questions tagged or ask your own question.