ethz-asl / reinmav-gym

Reinforcement Learning framework for MAVs using the OpenAI Gym environment
BSD 3-Clause "New" or "Revised" License
93 stars 24 forks source link

mujoco py install error - fatal error: GL/osmesa.h: No such file or directory #35

Closed eastskykang closed 5 years ago

eastskykang commented 5 years ago

during mujoco-py installation,

 /tmp/pip-install-rsxccpmh/mujoco-py/mujoco_py/gl/osmesashim.c:1:23: fatal error: GL/osmesa.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1

might appear.

It can be resolved with

$ sudo apt-get install libosmesa6-dev
eastskykang commented 5 years ago

Need to update README or wiki.

tammerb commented 3 years ago

The fix can be found here: https://github.com/openai/mujoco-py#ubuntu-installtion-troubleshooting sudo apt install libosmesa6-dev libgl1-mesa-glx libglfw3

SHITIANYU-hue commented 3 years ago

The following packages have unmet dependencies: libosmesa6-dev : Depends: libosmesa6 (= 20.0.8-0ubuntu1~18.04.1~ppa1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.

SHITIANYU-hue commented 3 years ago

Do you know how to solve this problem? thanks!

Jaeyoung-Lim commented 3 years ago

@SHITIANYU-hue You probably have dependency conflicts on your system. Have you tried installing libmesa6 directly?

SHITIANYU-hue commented 3 years ago

Yes, I downloaded it here: https://launchpad.net/~ubuntu-x-swat/+archive/ubuntu/updates/+build/19465714. However, I still have this problem😭

wangcongrobot commented 3 years ago

Search and install a specific version pkg. Ref: https://linoxide.com/install-specific-version-package-apt-get/

https://github.com/openai/mujoco-py/issues/96#issuecomment-417897640

shivanimall commented 2 years ago

no root access, how to resolve this issue?

GoingMyWay commented 2 years ago

How can I install without sudo?

mrvgao commented 2 years ago

thanks a lot!!!!!!!!! @eastskykang

DouPiChen commented 2 years ago

no root access, how to resolve this issue?

qureshinomaan commented 2 years ago

no root access, how to resolve this issue?

This worked for me : https://github.com/openai/mujoco-py/issues/627#issuecomment-1007658905

ZikangXiong commented 2 years ago

no root access, how to resolve this issue?

This works in my conda environment

conda install -c conda-forge mesalib glew glfw