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?