Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
eastskykang opened this issue Mar 25, 2019 · 13 comments
Assignees

Comments

@eastskykang
Copy link
Contributor

eastskykang commented Mar 25, 2019

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 eastskykang self-assigned this Mar 25, 2019
@eastskykang
Copy link
Contributor Author

Need to update README or wiki.

@tammerb
Copy link

tammerb commented Oct 10, 2020

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
Copy link

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

@SHITIANYU-hue
Copy link

Do you know how to solve this problem? thanks!

@Jaeyoung-Lim
Copy link
Member

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

@SHITIANYU-hue
Copy link

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

@robotlearning123
Copy link

robotlearning123 commented Mar 22, 2021

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

openai/mujoco-py#96 (comment)

@shivanimall
Copy link

no root access, how to resolve this issue?

@GoingMyWay
Copy link

How can I install without sudo?

@mrvgao
Copy link

mrvgao commented Mar 22, 2022

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

@DouPiChen
Copy link

no root access, how to resolve this issue?

@qureshinomaan
Copy link

no root access, how to resolve this issue?

This worked for me : openai/mujoco-py#627 (comment)

@ZikangXiong
Copy link

no root access, how to resolve this issue?

This works in my conda environment

conda install -c conda-forge mesalib glew glfw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests