Installation problems on Darwin ARM system
Executing the setup script from a Mac M1 (Darwin arm64) I basically run into 4 problems listed below. Miniforge and gcc-12 was installed beforehand via brew.
Problem 1
./setup.sh: line 37: [: =~: binary operator expected
./setup.sh: line 39: [: =~: binary operator expected
EnvironmentNameNotFound: Could not find conda environment: scilabrl
You can list all discoverable environments with `conda info --envs`.
./setup.sh: line 77: [: =~: binary operator expected
EnvironmentNameNotFound: Could not find conda environment: scilabrl
You can list all discoverable environments with `conda info --envs`.
Problem 2
[ .. ] Adding source /Users/jd/Repos/Scilab-RL/set_paths.sh to rc file of the current shell
grep: /Users/jd/.bashrc: No such file or directory
Problem 3
[ .. ] Getting MuJoCo
"disk4" ejected.
ln: /usr/local/lib/: No such file or directory
Problem 4
[ .. ] Installing mujoco-py and testing import
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages/mujoco_py/__init__.py", line 2, in <module>
from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages/mujoco_py/builder.py", line 504, in <module>
cymj = load_cython_ext(mujoco_path)
File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages/mujoco_py/builder.py", line 110, in load_cython_ext
cext_so_path = builder.build()
File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages/mujoco_py/builder.py", line 226, in build
built_so_file_path = self._build_impl()
File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages/mujoco_py/builder.py", line 333, in _build_impl
raise RuntimeError(
RuntimeError: Could not find supported GCC executable.
HINT: On OS X, install GCC 9.x with `brew install gcc@9`. or `port install gcc9`.
Problem 3 and 4 are probably related.