Robotics StackExchange | Archived questions

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

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

/usr/local/Cellar/gz-sim7/7.0.0_1/lib/

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

/usr/local/Cellar/gz-sim7/7.0.0_1/lib/gz-sim-7/plugins/../lib/

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

Asked by vlad on 2022-10-05 04:05:56 UTC

Comments

Answers

It looks like a System Integrity Protection (SIP) issue, which is resolved by using a non-system version of ruby: https://gazebosim.org/docs/garden/troubleshooting#unable-to-load-dylib-file

Asked by azeey on 2022-10-05 12:27:10 UTC

Comments

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

Asked by vlad on 2022-10-07 01:51:22 UTC

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

Asked by azeey on 2022-10-11 18:44:59 UTC

Any luck here? I am having the same problem despite following the trouble shooting guide linked: https://gazebosim.org/docs/garden/troubleshooting#unable-to-load-dylib-file

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).

Asked by gouth7 on 2023-03-08 12:56:23 UTC

@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

Asked by Craig17 on 2023-04-03 19:52:45 UTC

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

Asked by azeey on 2023-04-05 09:31:26 UTC