choosenim icon indicating copy to clipboard operation
choosenim copied to clipboard

possible issue with `update self` breaking choosenim (libcurl)

Open telatin opened this issue 1 year ago • 1 comments

Working on an old Linux (Ubuntu 16.04) server I realized I had nim 1.2.x installed, so I checked if choosenim was available.

It was (couldn't check the version) so I tried

choosenim update self
...
   Updating choosenim
[##################################################] 100.0% 0kb/s
      Info: Updated choosenim to version 0.8.4

but then invoking choosenim:

$ choosenim
could not load: libcurl.so(|.4)
(compile with -d:nimDebugDlOpen for more information)

(sudo apt-get install libcurl4-gnutls-dev fixed the problem, but I was intrigued by the fact that choosenim was working before the update, so it might be worth a check ...)

telatin avatar Jul 13 '22 13:07 telatin

Yeah, choosenim was updated to use libcurl because of an upstream bug: https://github.com/dom96/choosenim/commit/214b62971eb7053ef70e51de0e2908a0668404b7. Surprised you need that package for libcurl.so to exist though. Maybe there is another .so that the curl wrapper doesn't know about?

dom96 avatar Jul 13 '22 21:07 dom96