Wilfred / difftastic

a structural diff that understands syntax 🟥🟩
https://difftastic.wilfred.me.uk/
MIT License
20.61k stars 335 forks source link

Conda installation? #564

Open Wainberg opened 1 year ago

Wainberg commented 1 year ago

I run a computational biology lab, and I'd love to recommend difftastic to my lab members, but the installation process isn't as straightforward as I'd like.

For instance, running https://github.com/Wilfred/difftastic/releases/download/0.51.1/difft-x86_64-unknown-linux-gnu.tar.gz gives the error:

$ ./difft
./difft: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./difft)
./difft: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./difft)
./difft: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ./difft)
./difft: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./difft)
./difft: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by ./difft)
./difft: /lib64/libc.so.6: version `GLIBC_2.29' not found (required by ./difft)

Would it be straightforward to package up difftastic as a conda-installable package? I'd easily recommend it then, it seems marvellous!

Wilfred commented 1 year ago

I'm not a Conda user I'm afraid, so it's not something I'm interested in doing myself.

That specific error typically means that you're on an older Linux version with a version of glibc that's too old. The musl build should work once #563 is fixed though.

Wainberg commented 1 year ago

I'm on a compute cluster with glibc 2.17 from 2012 and no musl, so I guess I'd have to use the cargo install --locked difftastic route.

flaviomartins commented 5 months ago

Please reconsider providing a package for difftastic on conda-forge.