Aanok / jftui

Jellyfin Terminal User Interface
The Unlicense
142 stars 7 forks source link

Runtime error on NixOS #8

Closed nyanloutre closed 4 years ago

nyanloutre commented 4 years ago

Hello,

After building it successfully on NixOS I got the following error during runtime :

Settings file not found. Would you like to configure jftui? [y/n]
> y
src/net.c:314: curl_share_setopt(s_curl_sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_PSL) failed.
FATAL: libcurl error: Feature not enabled in this library.

Do you know where it could come from ?

Aanok commented 4 years ago

It means the version of curl you have installed on your system wasn't built with a feature used by jftui (sharing the Public Suffix List between handles to save a bit of memory and cycles).

Thankfully it's not a vital feature and I've been meaning to tidy up curl usage in the codebase for a while. I'll try and figure out a way to test for features at compile time and enable them selectively. Thanks for the report.

In the meantime, I don't use Nix so I'm not too sure, but it looks like the repository has two versions of curl. If you have the basic one installed, you may want to try switching to the full one as a temporary workaround.

nyanloutre commented 4 years ago

I tried with both provided versions of curl but this didn't help solve the error

nyanloutre commented 4 years ago

Thanks ! It's working now