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
command 'gcc' failed with exit status 1 #284
Comments
Well, for me, when I tried the exact instructions I wasn't able to make it work either. What solved for me was installing the |
@BrunoBSM Could you please tell me how to install that two txt files? I’m a newbie to the system? |
Sure thing, I had the name wrong before, you can simply run |
Update toward what I wrote hours ago. But unfortunately, when I use python console, try fatal error: GL/osmesa.h: No such file or directory @BrunoBSM Thanks for the reply, and apologize to this late reply, as my ubuntu crushed yesterday when I tried different things. I just reinstalled the whole system, and set up all the previous preparation. Now I tried the command, it reports this error: (gpu36) zhixun@zhixun-MS-7B48:~$ pip install -r requirements.txt Do you by any change know about his? Thank you in advance |
same error... |
same error. tried the installation of requirements first, didn't work |
try to install mujoco-py from source code? This worked well for me:
|
@LJ147 worked for me! I had the same problem and the installation with Master seems to work... |
please type in the shell as |
@LJ147 It seems to work when installing it with bash. However, when I import mujoco_py pkg in python, it starts compiling and fails with 'gcc' error |
In my case, missing the package, GL/glew.h, causes this problem. Thus, I installed the 'libglew-dev' package though |
I had a slightly different error which was as above but with "fatal error: limits.h: No such file or directory" which I got to after moving beyond the above error by following @YuYangguang, above. To fix this next error (which occurred when trying to import in python interpreter) I did: (1) Install mujoco-py from source. |
You can try the way bellow,it works for me: |
I tried everything above but still failed. Can anyone help me? |
Instructions provided by @YuYangguang and @levifussell worked for me. |
@levifussell You're a lifesaver man! |
I had installed mujoco200 instead of mjpro150 and had renamed the former to mjpro150 which was causing so many problems |
Had the same error when installing on ubuntu 20.04. I was able to get over this issue by: |
Installing patchelf fixed it for me (Ubuntu 20.04) thank you very much ! |
@atonkamanda It also works for me (Ubuntu 20.04) |
for the "GCC" error, it is because of the C compiler |
This works for me on Ubuntu 22.04. Thank you! |
Very useful guy!!!It works for me on Ubuntu 23 |
libglfw-dev Install them by sudo, then it works for me. |
I followed the instruction (https://github.com/openai/mujoco-py/), and everything is good until I
import mujoco_py
, could anyone help with that? Thank you in advance.The text was updated successfully, but these errors were encountered: