运行mujoco-py例程出现错误:distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code - 知乎
distutils.errors.LinkError: command 'gcc' failed with exit status 1
方法:
sudo apt install libosmesa6-dev libgl1-mesa-glx libglfw3
```
If you installed above libraries and you still see an error that -lGL cannot be found, most likely you need to create the symbolic link directly:
```
sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so
----------------------
FileNotFoundError: [Errno 2] No such file or directory: 'patchelf': 'patchelf'
方法:
sudo apt-get -y install patchelf