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

Mac OS: Library not loaded libprotobuf.23.4.0.dylib #1306

Open
jozefvaclavik opened this issue Jan 31, 2024 · 4 comments
Open

Mac OS: Library not loaded libprotobuf.23.4.0.dylib #1306

jozefvaclavik opened this issue Jan 31, 2024 · 4 comments

Comments

@jozefvaclavik
Copy link

jozefvaclavik commented Jan 31, 2024

I'm on a latest (as of now) Mac OS Sonoma 14.2.1 and recently ran brew update and brew upgrade.

Since then I cant start mosh-server with missing libprotobuf

  Referenced from: <A4ADD9D7-6104-317D-9439-1B7B22B6E105> /usr/local/bin/mosh-server
  Reason: tried: '/opt/homebrew/opt/protobuf/lib/libprotobuf.23.4.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/protobuf/lib/libprotobuf.23.4.0.dylib' (no such file), '/opt/homebrew/opt/protobuf/lib/libprotobuf.23.4.0.dylib' (no such file), '/usr/local/lib/libprotobuf.23.4.0.dylib' (no such file), '/usr/lib/libprotobuf.23.4.0.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/protobuf/25.2/lib/libprotobuf.23.4.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/protobuf/25.2/lib/libprotobuf.23.4.0.dylib' (no such file), '/opt/homebrew/Cellar/protobuf/25.2/lib/libprotobuf.23.4.0.dylib' (no such file), '/usr/local/lib/libprotobuf.23.4.0.dylib' (no such file), '/usr/lib/libprotobuf.23.4.0.dylib' (no such file, not in dyld cache)
Could not start mosh-server.

mosh and mosh-server has been installed through brew. I tried reinstalling protobuf and then mosh-server, but that didnt do much.

I can't find protobuf@23 on homebrew anymore and latest protobuf points to 25.2.

Any ideas how to get mosh-server working again?

@keithw
Copy link
Member

keithw commented Jan 31, 2024

I think you probably want to file this with homebrew; I think it's likely to be an issue in homebrew's dependency management unrelated to Mosh.

@jozefvaclavik
Copy link
Author

Isn't it mosh who requires libprotobuf.23.4.0? I'm not sure how system dependencies works here. I'll drop an issue there as well.

@keithw
Copy link
Member

keithw commented Feb 5, 2024

Mosh requires whatever version of protobuf it was linked against. Homebrew is the one doing the linking. If Homebrew upgraded and renamed protobuf (or any other library), it needs to relink the executables that depend on it. This is maybe not "package management 101," but definitely "package management 102" or so. :-)

@chenrui333
Copy link

@jozefvaclavik would brew reinstall mosh works for you? feel free to drop an issue on the homebrew side.

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