A quick and easy way would be to type the following in one line with single spaces in the Terminal.
This way of installing OpenGL and SDL libraries only applies to Ubuntu.
sudo apt-get install
nvidia-glx-new-dev
libglew1.4-dev
libsdl1.2-dev
libsdl-ttf2.0-dev
libsdl-image1.2-dev
libsdl-mixer1.2-dev
r2stik, I believe your apt is already running, try these links to resolve the problem before running it agian.
http://www.linuxquestions.org/questions/linux-newbie-8/e-could-not-get-lock-varlibdpkglock-open-11-resource-temporarily-unavailable-360554/
and
http://www.ubuntugeek.com/how-to-fix-lock-varlibdpkglock-open-11-resource-temporarily-unavailable-error.html
[email protected]:/home/r2stik# sudo apt-get install
E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
[email protected]:/home/r2stik# nvidia-glx-new-dev
nvidia-glx-new-dev: command not found
[email protected]:/home/r2stik# libglew1.4-dev
libglew1.4-dev: command not found
[email protected]:/home/r2stik# libsdl1.2-dev
libsdl1.2-dev: command not found
[email protected]:/home/r2stik# libsdl-ttf2.0-dev
libsdl-ttf2.0-dev: command not found
[email protected]:/home/r2stik# libsdl-image1.2-dev
libsdl-image1.2-dev: command not found
[email protected]:/home/r2stik# libsdl-mixer1.2-dev
libsdl-mixer1.2-dev: command not found
[email protected]:/home/r2stik#