openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.87k stars 814 forks source link

cannot find -lGL #618

Closed Carmine50 closed 3 years ago

Carmine50 commented 3 years ago

Describe the bug During the installation process using pip or after executing "import mujoco_py", it could appear this error.

Error Messages /usr/bin/ld: cannot find -lGL

Desktop (please complete the following information):

Additional context It will show also "command '/usr/bin/gcc' failed with exit code 1"

Carmine50 commented 3 years ago

Although the solutions proposed in the README of the github repo and other solutions proposed, the main issue is the location of the library "libGL.so.1". To solve this problem you should execute the command "sudo ln -s /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so" at place of "sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so".