Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.
This repository was archived by the owner on May 29, 2026. It is now read-only.

Mujoco lglewegl missing, command '/usr/bin/gcc' failed with exit code 1 #801

Description

@Xinxin-m

Describe the bug
I want to run the file download_d4rl_datasets.py from decision-transformer-gym. I downloaded mujoco, and mujoco-py, set it up, and I have the following files in bin:

basic libglfw3.a simulate
compile libmujoco210.dylib testspeed
derivative libmujoco210nogl.dylib testxml
libglfw.3.dylib record

The error message says the following files are missing:
-lmujoco210
-lglewegl

I'm using a mac laptop and I have mujoco 2.1. Here's the full error message:

Error Message

Compiling /home/xinmeng/anaconda3/envs/decision-transformer-gym/lib/python3.10/site-packages/mujoco_py/cymj.pyx because it depends on /home/xinmeng/anaconda3/envs/decision-transformer-gym/lib/python3.10/site-packages/mujoco_py/pxd/mujoco.pxd.
[1/1] Cythonizing /home/xinmeng/anaconda3/envs/decision-transformer-gym/lib/python3.10/site-packages/mujoco_py/cymj.pyx
/home/xinmeng/anaconda3/envs/decision-transformer-gym/compiler_compat/ld: cannot find -lmujoco210: No such file or directory
/home/xinmeng/anaconda3/envs/decision-transformer-gym/compiler_compat/ld: cannot find -lglewegl: No such file or directory
collect2: error: ld returned 1 exit status
Traceback (most recent call last):
  File "/home/xinmeng/anaconda3/envs/decision-transformer-gym/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py", line 269, in link
    self.spawn(linker + ld_args)
  File "/home/xinmeng/anaconda3/envs/decision-transformer-gym/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py", line 1041, in spawn
    spawn(cmd, dry_run=self.dry_run, **kwargs)
  File "/home/xinmeng/anaconda3/envs/decision-transformer-gym/lib/python3.10/site-packages/setuptools/_distutils/spawn.py", line 68, in spawn
    raise DistutilsExecError(f"command {cmd!r} failed with exit code {exitcode}")
distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions