Closed Melon-on closed 6 months ago
I solved this issue by editing the file unixccompiler.py, located in lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py
Simply replace
return "-R" + dir
with
return "-Wl,-rpath," + dir
at line 264 of this file.
btw, the version of setuptools I used was 57.5.0.
When i import mujoco_py, the gcc error "unrecognized command line option ‘-R’" occured.