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

fail to start gazebo using "gz sim" #1

Open
butteria opened this issue Aug 4, 2024 · 5 comments
Open

fail to start gazebo using "gz sim" #1

butteria opened this issue Aug 4, 2024 · 5 comments

Comments

@butteria
Copy link

butteria commented Aug 4, 2024

(.ros2_venv) dingheng@192 ~ % gz sim shapes.sdf -s
Library error for [/Users/dingheng/gz_harmonic/install/lib/libgz-sim8-gz.8.6.0.dylib]: dlopen(/Users/dingheng/gz_harmonic/install/lib/libgz-sim8-gz.8.6.0.dylib, 0x0009): Library not loaded: libgz-sim8-gui.8.dylib
  Referenced from: <A3C68D61-8AA9-3964-BBC4-89B7D32F666C> /Users/dingheng/gz_harmonic/install/lib/libgz-sim8-gz.8.6.0.dylib
  Reason: tried: 'libgz-sim8-gui.8.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibgz-sim8-gui.8.dylib' (no such file), 'libgz-sim8-gui.8.dylib' (no such file), '/Users/dingheng/libgz-sim8-gui.8.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/dingheng/libgz-sim8-gui.8.dylib' (no such file), '/Users/dingheng/libgz-sim8-gui.8.dylib' (no such file)

If this script was executed with /usr/bin/ruby, this error may be caused by
macOS System Integrity Protection. One workaround is to use a different
version of ruby, for example:
    brew install ruby
and add the following line to your shell profile:
    export PATH=/usr/local/opt/ruby/bin:$PATH
If you are using a colcon workspace, please ensure that the setup script
has properly set the DYLD_LIBRARY_PATH environment variables.

l use m2 MacBook and Sonoma 14.6. l follow the instruction above using another ruby, and add ruby path to .zshrc. but it can't be fixed. how can I solve it?

@woensug-choi
Copy link
Contributor

I suggest reinstalling everything. I have not seen such error.

@butteria
Copy link
Author

butteria commented Aug 5, 2024

thanks for your reply. l searched it may caused by Apple SIP mechanism. need i disable it?

@woensug-choi
Copy link
Contributor

You may bump into SIP. But the installation method here doesn't require it.

@butteria
Copy link
Author

butteria commented Aug 5, 2024

(.ros2_venv) dingheng@192 ~ % gz sim shapes.sdf -s
Library error for [/Users/dingheng/gz_harmonic/install/lib/libgz-sim8-gz.8.6.0.dylib]: can't load /Users/dingheng/gz_harmonic/install/lib/libgz-sim8-gz.8.6.0.dylib

If this script was executed with /usr/bin/ruby, this error may be caused by
macOS System Integrity Protection. One workaround is to use a different
version of ruby, for example:
    brew install ruby
and add the following line to your shell profile:
    export PATH=/usr/local/opt/ruby/bin:$PATH
If you are using a colcon workspace, please ensure that the setup script
has properly set the DYLD_LIBRARY_PATH environment variables.

l use your script with clean install option. l get this error again. if there is no performance loss, I can install the binary packages first.

@woensug-choi
Copy link
Contributor

@butteria did you try brew install ruby? I am not sure why it doesn't work for you. But the error msg says to install ruby

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

2 participants