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

GL/osmesa.h: No such file or directory #650

Open
GoingMyWay opened this issue Nov 12, 2021 · 2 comments
Open

GL/osmesa.h: No such file or directory #650

GoingMyWay opened this issue Nov 12, 2021 · 2 comments

Comments

@GoingMyWay
Copy link

GoingMyWay commented Nov 12, 2021

On anaconda, how can I install GL/osmesa.h with conda? I cannot use sudo and the system is red-hat. This issue ethz-asl/reinmav-gym#35 suggested to use sudo to install but I have no right to use sudo.

@wookayin
Copy link
Contributor

wookayin commented Nov 18, 2021

Installing OSmesa on a conda will be very tricky. Getting sudo will be a less-painful solution for you. I think installing osmesa locally is outside the scope of mujoco-py, but if you really want to give a try, follow the instructions at https://docs.mesa3d.org/download.html and https://docs.mesa3d.org/install.html

What you'll need to add is to add --prefix=$CONDA_PREFIX (e.g. --prefix=/home/user/miniconda3/envs/your_virtual_env) (or --prefix=$HOME/.local/bin). This will also assume that your LDLIBRARY_PATH, C_INCLUDE_PATH, etc. are also configured accordingly.

Another reference: https://gist.github.com/SiyuanQi/600d1ce536791b7a3bd2e59fdbe69e66

@dmklee
Copy link

dmklee commented Dec 13, 2021

Try my suggestion from #635, you can install GL/osmesa.h using conda install -c menpo osmesa. Then, set the environment variable C_INCLUDE_PATH=:$HOME/.conda/envs/<env-name>/include when you import mujoco_py the first time.

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

3 participants