Gazebo | Ignition | Community
Ask Your Question

gazebo can not find libgz-sim7.7.dylib on macos

asked 2022-10-05 04:11:27 -0500

vlad gravatar image

I've just installed gazebo 7 (garden) on macos 12.6. When trying to launch the server

gs sim -s

I get three error messages. All about not finding libgz-sim7.7.dylib. See the screenshot.

image description

This file is present in my system at this location


it's an alias of libgz-sim7.7.0.0.dylib. I've tried to copy the alias to this location


but it did not help. I've also tried to create my own alias and copy it, but it did not help either. Please help me to fix that

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-10-05 12:27:10 -0500

azeey gravatar image

It looks like a System Integrity Protection (SIP) issue, which is resolved by using a non-system version of ruby:

edit flag offensive delete link more


Thank you azeey, but it did not help, unfortunately. I've added the "export PATH.." as they recommend, but nothing changed. I still have the error

vlad gravatar imagevlad ( 2022-10-07 01:51:22 -0500 )edit

After setting the PATH, what do you get when you run which ruby? It needs to be the one installed through homebrew.

azeey gravatar imageazeey ( 2022-10-11 18:44:59 -0500 )edit

Any luck here? I am having the same problem despite following the trouble shooting guide linked:

The trouble shooting guide suggests they are using ruby 2.6.5. I tried a few different ruby version installed via brew (2.6, 2.7, 3.2).

gouth7 gravatar imagegouth7 ( 2023-03-08 11:56:23 -0500 )edit

@gouth7 Any luck on this? I've been stuck in the same spot. The recommended solution does not work and I'd prefer not to remove Integrity Protection

Craig17 gravatar imageCraig17 ( 2023-04-03 19:52:45 -0500 )edit

Can you check that you have your PATH set correctly so that it's using the homebrew ruby instead of the system installed one?

azeey gravatar imageazeey ( 2023-04-05 09:31:26 -0500 )edit

Question Tools

1 follower


Asked: 2022-10-05 04:05:56 -0500

Seen: 174 times

Last updated: Oct 05 '22