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

SUMO installs, but does not run on M2 Mac running Sonoma #16068

Open
robstallman opened this issue Jan 22, 2025 · 2 comments
Open

SUMO installs, but does not run on M2 Mac running Sonoma #16068

robstallman opened this issue Jan 22, 2025 · 2 comments
Assignees

Comments

@robstallman
Copy link

robstallman commented Jan 22, 2025

Summary

SUMO install on MacOS Sonoma appears to be successful, but

robstallman@Robs-Laptop ~ % sumo
zsh: command not found: sumo
robstallman@Robs-Laptop ~ % sumo-gui
zsh: command not found: sumo-gui

System Information

  • SUMO-version: 1.20.0
  • OS: Sonoma 14.2
  • Chip: Apple M2

Installation Method

  • Installed for macOS using Homebrew as described in SUMO Documentation
  • Homebrew version: Homebrew 4.4.17
  • Prepare for install by installing XQuartz
    XQuartz version: 2.8.5

Issue Description

  1. SUMO was installed by running brew tap dlr-ts/sumo / brew install sumo, which appears to install without issue:
==> Summary
🍺  /usr/local/Cellar/sumo/1.20.0: 1,812 files, 156MB
==> Running `brew cleanup sumo`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> No outdated dependents to upgrade!
==> Checking for dependents of upgraded formulae...
Disable this behaviour by setting HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Reinstalling 1 dependent with broken linkage from source:
dlr-ts/sumo/sumo
==> Caveats
==> sumo
In order to let X11 start automatically whenever a GUI-based SUMO application
(e.g., "sumo-gui") is called, you need to log out and in again.
Alternatively, start X11 manually by pressing cmd-space and entering "XQuartz".

Don't forget to set your SUMO_HOME environment variable:
  export SUMO_HOME="/usr/local/Cellar/sumo/1.20.0/share/sumo"

Please report any problems with this formula directly to the eclipse-sumo/sumo issue tracker:
https://github.com/eclipse-sumo/sumo/issues
  1. 🚩The SUMO_HOME path specified during the installation process does not exist:
robstallman@Robs-Laptop ~ % ls -alt /usr/local/Cellar/sumo/1.20.0/share/sumo
ls: /usr/local/Cellar/sumo/1.20.0/share/sumo: No such file or directory

Instead, the correct path seems to be /usr/local/Cellar/sumo/1.20.0.reinstall/share/sumo

  1. The corrected $SUMO_HOME path is added to .zshrc, and the user is logged out/logged back in
    Note: This process was also attempted without modifying the $SUMO_HOME path as specified in the installation, but the issue is the same either way.

  2. macOS application bundles for sumo-gui are installed, apparently successfully

  3. Neither sumo, sumo-gui, or netedit opens on the command line:

robstallman@Robs-Laptop ~ % sumo
zsh: command not found: sumo
robstallman@Robs-Laptop ~ % sumo-gui
zsh: command not found: sumo-gui
robstallman@Robs-Laptop ~ % netedit
zsh: command not found: netedit
  1. Neither sumo-gui or netedit opens from the Applications folder (even after permitting them)
    Note: A small gear icon appears in the menu bar when attempting to open the application, but this disappears within a second or two.
@RobertHilbrich
Copy link
Contributor

Yes, we know that the current version of installing sumo on macOS is flawed and working on a better solution.

Adapting the SUMO_HOME variable to the correct directory is a great first step. Now you need to SUMO_HOME/bin to the PATH.

To set this up in zsh, you can add the following lines to your ~/.zshrc file:

export SUMO_HOME="/usr/local/Cellar/sumo/1.20.0.reinstall/share/sumo"
export PATH=$SUMO_HOME/bin:$PATH

After editing the file, run source ~/.zshrc to apply the changes immediately."

@robstallman
Copy link
Author

Hi @RobertHilbrich, thanks for your reply.

After adding SUMO_HOME/bin to the PATH, the sumo command is recognized.

However, the program still does not run because the following error is thrown:

robstallman@Robs-Laptop ~ % sumo
dyld[50554]: Library not loaded: /usr/local/opt/xerces-c/lib/libxerces-c-3.2.dylib
  Referenced from: <8B0B83D5-66CB-3B23-A6F6-43FE86DB473B> /usr/local/Cellar/sumo/1.20.0.reinstall/bin/sumo
  Reason: tried: '/usr/local/opt/xerces-c/lib/libxerces-c-3.2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/xerces-c/lib/libxerces-c-3.2.dylib' (no such file), '/usr/local/opt/xerces-c/lib/libxerces-c-3.2.dylib' (no such file), '/usr/local/lib/libxerces-c-3.2.dylib' (no such file), '/usr/lib/libxerces-c-3.2.dylib' (no such file, not in dyld cache), '/usr/local/Cellar/xerces-c/3.3.0/lib/libxerces-c-3.2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/Cellar/xerces-c/3.3.0/lib/libxerces-c-3.2.dylib' (no such file), '/usr/local/Cellar/xerces-c/3.3.0/lib/libxerces-c-3.2.dylib' (no such file), '/usr/local/lib/libxerces-c-3.2.dylib' (no such file), '/usr/lib/libxerces-c-3.2.dylib' (no such file, not in dyld cache)
zsh: abort      sumo

Inspecting the xerces-c installation, it appears that the SUMO installation has installed version 3.3, when it appears to require version 3.2 based on the error message above. Below are the contents of /usr/local/opt/xerces-c/lib:

robstallman@Robs-Laptop ~ % ls /usr/local/opt/xerces-c/lib/
cmake			libxerces-c-3.3.dylib	libxerces-c.a		libxerces-c.dylib	pkgconfig

Do you have any recommendations on resolving the error at this point?

Thanks again

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

3 participants