Robotics StackExchange | Archived questions

Does Gazebo work on Mac M1 Monterey (12.6)?

Hi, I just did a standard binary installation of Gazebo with brew. However, I ran into the following error. Any suggestions? Can I install Gazebo on Ubuntu Jammy? ROS2 is moving away from Focal distribution.

Error while running gz sim -s

Error while loading the library [/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/libgz-sim-physics-system.dylib]: dlopen(/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/libgz-sim-physics-system.dylib, 0x0085): Library not loaded: '@rpath/libgz-sim7.7.dylib' Referenced from: '/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/libgz-sim7-physics-system.7.0.0.dylib' Reason: tried: '/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/../lib/libgz-sim7.7.dylib' (no such file), '/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/../lib/libgz-sim7.7.dylib' (no such file), '/opt/homebrew/Cellar/gz-plugin2/2.0.0/lib/../lib/libgz-sim7.7.dylib' (no such file), '/usr/lib/libgz-sim7.7.dylib' (no such file), (security policy does not allow @ path expansion) [Err] [SystemLoader.cc:104] Failed to load system plugin [gz-sim-physics-system] : couldn't load library on path [/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/libgz-sim-physics-system.dylib]. Error while loading the library [/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/libgz-sim-user-commands-system.dylib]: dlopen(/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/libgz-sim-user-commands-system.dylib, 0x0085): Library not loaded: '@rpath/libgz-sim7.7.dylib' Referenced from: '/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/libgz-sim7-user-commands-system.7.0.0.dylib' Reason: tried: '/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/../lib/libgz-sim7.7.dylib' (no such file), '/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/../lib/libgz-sim7.7.dylib' (no such file), '/opt/homebrew/Cellar/gz-plugin2/2.0.0/lib/../lib/libgz-sim7.7.dylib' (no such file), '/usr/lib/libgz-sim7.7.dylib' (no such file), (security policy does not allow @ path expansion) [Err] [SystemLoader.cc:104] Failed to load system plugin [gz-sim-user-commands-system] : couldn't load library on path [/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/libgz-sim-user-commands-system.dylib]. Error while loading the library [/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/libgz-sim-scene-broadcaster-system.dylib]: dlopen(/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/libgz-sim-scene-broadcaster-system.dylib, 0x0085): Library not loaded: '@rpath/libgz-sim7.7.dylib' Referenced from: '/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/libgz-sim7-scene-broadcaster-system.7.0.0.dylib' Reason: tried: '/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/../lib/libgz-sim7.7.dylib' (no such file), '/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/../lib/libgz-sim7.7.dylib' (no such file), '/opt/homebrew/Cellar/gz-plugin2/2.0.0/lib/../lib/libgz-sim7.7.dylib' (no such file), '/usr/lib/libgz-sim7.7.dylib' (no such file), (security policy does not allow @ path expansion) [Err] [SystemLoader.cc:104] Failed to load system plugin [gz-sim-scene-broadcaster-system] : couldn't load library on path [/opt/homebrew/Cellar/gz-sim7/7.0.01/lib/gz-sim-7/plugins/libgz-sim-scene-broadcaster-system.dylib].

Asked by linyz0100 on 2022-11-06 00:48:18 UTC

Comments

Answers

There have been recent changes that have fixed issues with running Gazebo on M1 Macs, so it might be worth updating and trying again. Also, the issue with the OSX System Integrity Protection (SIP) is addressed in https://gazebosim.org/docs/garden/troubleshooting#unable-to-load-dylib-file.

Asked by azeey on 2023-02-08 14:07:36 UTC

Comments