openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.83k stars 810 forks source link

symbol lookup error: ~/.mujoco/mujoco200/bin/libglew.so: undefined symbol: glXGetProcAddressARB #695

Open Jude-zzc opened 2 years ago

Jude-zzc commented 2 years ago

Describe the bug I'm using mujoco to build training env but I met this error. But I'm even not clear how to locate this error, I've searched tons of information but nothing works. Most people suggest to install libglew2.1or something like this but it doesn't work for me.

Error Messages /home/jude/relSuite_venv/bin/python3: symbol lookup error: /home/jude/.mujoco/mujoco200/bin/libglew.so: undefined symbol: glXGetProcAddressARB

Desktop (please complete the following information):

Charles-YUAN-MA commented 2 years ago

same problem and same setup

dlxo2568 commented 2 years ago

Same problem here

BurgerAndreas commented 7 months ago

What fixed it for me: https://github.com/google-deepmind/dm_control/issues/3#issuecomment-355153027

  1. run ldd $(which glxinfo) | grep libGL.so
  2. Use that path in LD_PRELOAD nano ~/.bashrc LD_PRELOAD=<whatever came out in step 1>/libGL.so source ~/.bashrc