Open txtsd opened 1 month ago
You probably have libspelling
0.4.0 installed, which introduced breaking changes to SpellingLanguage
and SpellingLanguageInfo
(the one that's making errors here). More info here: libspelling/NEWS
Unfortunately, upstream Nixpkgs libspelling is stuck on 0.2: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/libspelling/default.nix.
If this is a big issue, it might be worth it to build with nogtksource
.
Here is a temporary fix:
I noticed that dissent-bin (pre-built binary from AUR) gives me an error:
dissent: error while loading shared libraries: libspelling-1.so.1: cannot open shared object file: No such file or directory
So I searched for libspelling:
sudo find /usr/lib -name "libspelling*"
and found it in /usr/lib/libspelling-1.so.2.0.0
Since this dynamic library name has changed (at least on my system), i built old version (0.2.1) and placed it back to /usr/lib/libspelling-1.so.1
This way both versions are installed.
I haven't tested building, but it should work.
IMPORTANT: Check that in /usr/lib/
is not already libspelling-1.so.1
before copying old one, so it is not replaced.
This builds and installs libspelling 0.2.1, might be missing some build dependencies.
git clone --branch 0.2.1 https://gitlab.gnome.org/GNOME/libspelling.git
cd libspelling
sudo pacman -S vala gi-docgen # use your system package manager
mkdir build
meson setup build
meson compile -C build
sudo cp build/lib/libspelling-1.so.1.0.0 /usr/lib/libspelling-1.so.1
# sudo pacman -Rcns valal gi-docgen
cd ..
rm -rf libspelling
Dont forget to delete this copied file /usr/lib/libspelling-1.so.1
after dissent gets updated.
Whoops, seems like this feature is affecting almost everyone now @.@
Same problem here after using makepkg on an actual Arch Linux:
dissent: error while loading shared libraries: libspelling-1.so.1: cannot open shared object file: No such file or directory
Installed on the system is: lrwxrwxrwx - root 4 Okt 23:45 libspelling-1.so -> libspelling-1.so.2 lrwxrwxrwx - root 4 Okt 23:45 libspelling-1.so.2 -> libspelling-1.so.2.0.0 .rwxr-xr-x 158k root 4 Okt 23:45 libspelling-1.so.2.0.0
The way of @mzivic7 still works well.
Unfortunately, upstream Nixpkgs libspelling is stuck on 0.2: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/libspelling/default.nix.
If this is a big issue, it might be worth it to build with
nogtksource
.
Upstream Nixpkg libspelling
has updated now :)
Here's a log: