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

docs: install_osx #1703

Closed
azeey-test opened this issue Aug 29, 2024 · 9 comments
Closed

docs: install_osx #1703

azeey-test opened this issue Aug 29, 2024 · 9 comments

Comments

@azeey-test
Copy link
Collaborator

Configuration

  • os: MacOS
  • buildType: Binary

Links

Process

Step 1 - Instructions work

Step 2 - Images (if there are any) match the result

@JeremyDWilliams
Copy link

I'd like to take this one

@heramb-modugula
Copy link

heramb-modugula commented Sep 6, 2024

Apologies for commenting on an assigned test but I thought this might be useful for others testing on macOS as well.

I normally use Ubuntu for ROS projects but decided to give Gazebo a try on my Macbook running Sonoma. When running the second command in Live, I ran into the error "Error: The maximum number of open files on this system has been reached. Use ulimit -n to increase this limit."
Screenshot 2024-09-06 at 00 53 23

The default value for the command "ulimit -n" is set to 256 which is too low. Running "ulimit -n 10240" and then proceeding with the homebrew install of gazebo worked! It might be useful to add this information to troubleshooting under macOS.
Screenshot 2024-09-06 at 01 02 49

@j-rivero
Copy link
Contributor

j-rivero commented Sep 6, 2024

Thanks so much for testing and welcome to the Gazebo community.

The default value for the command "ulimit -n" is set to 256 which is too low. Running "ulimit -n 10240" and then proceeding with the homebrew install of gazebo worked! It might be useful to add this information to troubleshooting under macOS.

Could you please create a PR with this?

@j-rivero j-rivero self-assigned this Sep 6, 2024
@JeremyDWilliams
Copy link

JeremyDWilliams commented Sep 6, 2024

According to the documentation Sonoma is not supported. I will do installs on Maverick and Ventura, but thought I'd try with Sonoma first.

After installing Homebrew from their page, the following install commands were entered in terminal:

brew tap osrf/simulation
brew install gz-ionic

This was the result:

==> Tapping osrf/simulation
Cloning into '/opt/homebrew/Library/Taps/osrf/homebrew-simulation'...
fatal: unable to access 'https://github.com/osrf/homebrew-simulation/': Could not resolve host: github.com
Error: Failure while executing; git clone https://github.com/osrf/homebrew-simulation /opt/homebrew/Library/Taps/osrf/homebrew-simulation --origin=origin --template= --config core.fsmonitor=false exited with 128.
==> Downloading https://formulae.brew.sh/api/formula.jws.json
curl: (6) Could not resolve host: formulae.brew.sh

Warning: formula.jws.json: update failed, falling back to cached version.
==> Downloading https://formulae.brew.sh/api/cask.jws.json
curl: (6) Could not resolve host: formulae.brew.sh

Warning: cask.jws.json: update failed, falling back to cached version.
Warning: No available formula with the name "gz-ionic".
==> Searching for similarly named formulae and casks...
Error: No formulae or casks found for gz-ionic.

This was solved by setting PATH: as suggested by Homebrew, however it may not be immediately clear to the user.

I recommend adding verbiage to remind the user that PATH needs to be set for Homebrew to find what it needs.

Not sure if you want me to do a PR and make the edit myself? Or... happy to do whatever helps you.

@JeremyDWilliams
Copy link

JeremyDWilliams commented Sep 6, 2024

I suggest something like this:

Binary Installation on MacOS

All the Ionic binaries are available in Monterey and Ventura using the Homebrew package manager.

After installing Homebrew and adding it to your PATH: (directions in Homebrew's "Next steps:" install dialogue) Gazebo Ionic can be installed running:

@azeey
Copy link
Contributor

azeey commented Sep 6, 2024

fatal: unable to access 'https://github.com/osrf/homebrew-simulation/': Could not resolve host: github.com

The error message looks like there was a network issue and not an issue related to PATH. Can you confirm?

Also, we had more detailed instructions before, but it seemed redundant to have the homebrew install instructions here (see gazebosim/docs#414)

P.S Thanks for testing!!

@JeremyDWilliams
Copy link

I'll do some uninstalls and fresh install to see if I can duplicate it.

I did try twice before and had the same results until setting PATH. But it could have been a coincidence. Will test some more 😊

Some problems with GUI after install btw, but will deal with that elsewhere another time as I know GUI issues are not a new thing for Mac's.

@scpeters
Copy link
Member

scpeters commented Sep 9, 2024

Thanks so much for testing and welcome to the Gazebo community.

The default value for the command "ulimit -n" is set to 256 which is too low. Running "ulimit -n 10240" and then proceeding with the homebrew install of gazebo worked! It might be useful to add this information to troubleshooting under macOS.

Could you please create a PR with this?

added in gazebosim/docs#505

@azeey azeey assigned heramb-modugula and unassigned j-rivero Sep 10, 2024
@azeey azeey closed this as completed Sep 10, 2024
@JeremyDWilliams
Copy link

JeremyDWilliams commented Sep 16, 2024

Tested using Ventura and Maverick. No problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants
@azeey @j-rivero @scpeters @JeremyDWilliams @azeey-test @heramb-modugula and others