libcurl - HebaruSan/CKAN GitHub Wiki
libcurl
is a third party package that CKAN uses. It was required as of CKAN 1.6.6 and made optional in CKAN 1.22.2. Currently it is only used as a fallback if the main downloader fails. In normal use you should be able to get by without libcurl
.
Errors when downloading
You may see this error while using CKAN:
Unhandled Exception:
System.DllNotFoundException: libcurl
at (wrapper managed-to-native) CurlSharp.NativeMethods:curl_global_init (int)
at CurlSharp.Curl.GlobalInit (CurlInitFlag flags) [0x00000] in <filename unknown>:0
at CKAN.Curl.Init () [0x00000] in <filename unknown>:0
at CKAN.NetAsyncDownloader.DownloadCurl () [0x00000] in <filename unknown>:0
at CKAN.NetAsyncDownloader.Download (ICollection`1 urls) [0x00000] in <filename unknown>:0
at CKAN.NetAsyncDownloader.DownloadModules (CKAN.NetFileCache cache, IEnumerable`1 modules) [0x00000] in <filename unknown>:0
at CKAN.ModuleInstaller.InstallList (ICollection`1 modules, CKAN.RelationshipResolverOptions options, IDownloader downloader) [0x00000] in <filename unknown>:0
at CKAN.ModuleInstaller.InstallList (System.Collections.Generic.List`1 modules, CKAN.RelationshipResolverOptions options, IDownloader downloader) [0x00000] in <filename unknown>:0
at CKAN.CmdLine.Install.RunCommand (CKAN.KSP ksp, System.Object raw_options) [0x00000] in <filename unknown>:0
at CKAN.CmdLine.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
Or you might see a message that says this:
libcurl installation not found. Open wiki page for help?
If this happens consistently (and therefore you need libcurl
because the main downloader won't work for you), find your OS below and follow the instructions to install libcurl
.
Installing
Ubuntu
sudo apt install libcurl4-openssl-dev
Debian
sudo apt-get install libcurl4-openssl-dev
Fedora
yum install libcurl-devel