Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ign gazebo error: can't load library. #1172

Closed
tomcattiger1230 opened this issue Oct 1, 2020 · 5 comments
Closed

ign gazebo error: can't load library. #1172

tomcattiger1230 opened this issue Oct 1, 2020 · 5 comments

Comments

@tomcattiger1230
Copy link

tomcattiger1230 commented Oct 1, 2020

Hello,

I got an odd issue with libraries on my macOS,

ign gazebo -s
Library error for [/usr/local/Cellar/ignition-gazebo4/4.0.0/lib/libignition-gazebo4-ign.4.0.0.dylib]: can't load /usr/local/Cellar/ignition-gazebo4/4.0.0/lib/libignition-gazebo4-ign.4.0.0.dylib

Any suggestions? Thanks a lot

@ahcorde
Copy link
Contributor

ahcorde commented Oct 2, 2020

Hi,

Probably we need to fix the bottle. Anyhow the support for macOS is not complete. For now, you can only run ignition gazebo in server mode.

ign gazebo -s

The Scene3D plugin it's failing for some reason when you run ign gazebo with the gui.

@scpeters scpeters changed the title can't load library. ign gazebo error: can't load library. Dec 3, 2020
@scpeters
Copy link
Member

I have seen this Library error for [*.dylib]: can't load message before, and for me it was related to System Integrity Protection (SIP) restrictions on the /usr/bin/ruby binary that was executing the ign ruby script. I recently added tests to the ignition-gazebo* formulae in #1221 that explicitly invoke the brew version of ruby from /usr/local/opt/ruby/bin, and those tests have been passing for me, so I recommend trying brew install ruby and /usr/local/opt/ruby/bin/ruby $(which ign) gazebo -s -v 4

@tomcattiger1230
Copy link
Author

@scpeters Hi, thanks for your comment. However, I still have the same error, that these dylib cannot be found.

@scpeters
Copy link
Member

@tomcattigerkkk can you provide the output of brew config and brew doctor?

@scpeters
Copy link
Member

scpeters commented Nov 2, 2022

ign gazebo -s should now work if you use ruby from brew with the following command:

/usr/local/opt/ruby/bin/ruby $(which ign) gazebo -s

@scpeters scpeters closed this as completed Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants