mosh-client: error while loading shared libraries: libprotobuf.so.23: cannot open shared object file: No such file or directory
Died at /usr/bin/mosh line 320.
I also tried linking the libprotobuf.so.23 to the existing libprotobuf.so, but this did not solve the issue. For me I solved the issue by rebuilding using the mosh git repo.
$ mosh --version
osh 1.4.0 [build mosh-1.4.0-dirty]
Copyright 2012 Keith Winstein <mosh-devel@mit.edu>
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ pamac info mosh
ame : mosh
Version : 1.4.0-3
Description : Mobile shell, surviving disconnects with local echo and line editing
URL : https://mosh.org/
Licenses : GPL3
Repository : extra
Installed Size : 674.1 kB
Groups : --
Depends On : libutempter openssh openssl perl-io-tty protobuf
Optional Dependencies : --
Required By : --
Optional For : --
Provides : --
Replaces : --
Conflicts With : --
Packager : Antonio Rojas <arojas@archlinux.org>
Build Date : Thu Jun 29 18:36:38 2023
Install Date : Tue Jul 4 17:29:52 2023
Install Reason : Explicitly installed
Validated By : Signature
Backup files : --
The exactly same (see title of the thread). After reinstalling also protobuf (23.4-1) now both the version from git and the version installed from extra are not working anymore, now giving
mosh-client: error while loading shared libraries: libprotobuf.so.32: cannot open shared object file: No such file or directory
Died at /usr/bin/mosh line 320.
(with 32 instead of 23) and soft linking to libprotobuf.so.32 to libprotobuf.so also did not help.
Now the manual installation failed at the ./configure step with
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
79 | #error "C++ versions less than C++14 are not supported."
| ^~~~~
In file included from conftest.pb.h:11:
/usr/include/google/protobuf/port_def.inc:205:15: error: static assertion failed: Protobuf only supports C++14 and newer.
205 | static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
...
configure: error: Could not build output generated by protoc (/usr/bin/protoc).
Check that protoc matches the installed protobuf headers and libraries.