How to run latest Anki download

I downloaded and un-tarred Anki and tried to run it on 22.11:

~/anki-2.1.54-linux-qt6/anki

which works on Gentoo but on NixOS yields no such file or directory. So

 ldd ~/anki-2.1.54-linux-qt6/anki

shows that apparently linux-vdso.so.1 is missing but when I search for that (e.g., here), it says that’s not the problem. So how do I run Anki? The Nix packaged version, 2.1.15, is much too old.

The shebang fix doesn’t apply because ~/anki-2.1.54-linux-qt6/anki is an ELF binary, not a script.

There is quite a lively debate on getting the latest anki here.

There is the anki-bin package, which seems newer.

https://search.nixos.org/packages?channel=22.11&show=anki-bin&from=0&size=50&sort=relevance&type=packages&query=anki

Well if NixOS people themselves have not just done this, it must be non-trivial. I think in my case, just to get something working, I’m going to build a chroot environment with something like Debian. I just need something for a two-week trip, where NixOS is my main system and I want everything on one laptop.

so anki-bin not working for you?

I haven’t tried it as the version is not specified.

The version is specified in the Nixpkgs source:

My understanding is that most people using Anki from Nixpkgs are using anki-bin, since anki is super old.

2 Likes

Thank you. I’ve installed anki-bin and it is working. I don’t really understand the -bin designation, since Anki is distributed as binaries anyway, but whatever.

In general, the various product forums have distinctive characters, and I’ve found the NixOS forums to be remarkably welcoming and cooperative. As Nix is such a radical and superior packaging system, I’d expect the forums to be rather judgemental of those like me who haven’t taken the time to learn it properly, but that isn’t the case.

2 Likes

Most of the software from Nixpkgs is compiled from source. In Nixpkgs, it is relatively rare to just distribute binaries from upstream. In fact, because of the filesystem organization of Nix/NixOS, upstream binaries will often not run correctly with Nix/NixOS, and need to be patched in various ways.

Some packages in Nixpkgs are named foobar-bin to signify they are not built from source, but are (modified) binaries from upstream.

There are a fraction of Nix/Nixpkgs users who are strongly against non-source-built packages.