堆栈安装卷曲失败

stack install curl fails

我正在尝试使用 stack install curl-1.3.8 -v 通过 安装 curl,但遇到以下错误:

2019-10-06 19:01:22.673216: [info] curl> Configuring curl-1.3.8...
2019-10-06 19:01:22.910469: [warn] curl> setup: Missing dependency on a foreign library:
2019-10-06 19:01:22.910594: [warn] curl> * Missing (or bad) C library: curl
2019-10-06 19:01:22.910679: [warn] curl> This problem can usually be solved by installing the system package that
2019-10-06 19:01:22.910776: [warn] curl> provides this library (you may need the "-dev" version). If the library is
2019-10-06 19:01:22.910892: [warn] curl> already installed but in a non-standard location then you can use the flags
2019-10-06 19:01:22.910970: [warn] curl> --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
2019-10-06 19:01:22.911056: [warn] curl> library file does exist, it may contain errors that are caught by the C
2019-10-06 19:01:22.911192: [warn] curl> compiler at the preprocessing stage. In this case you can re-run configure
2019-10-06 19:01:22.911261: [warn] curl> with the verbosity flag -v3 to see the error messages.
2019-10-06 19:01:22.911335: [warn] curl> 
2019-10-06 19:01:22.918187: [error] 
--  While building package curl-1.3.8 using:
      /tmp/stack13678/curl-1.3.8/.stack-work/dist/x86_64-linux/Cabal-
2.2.0.1/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-2.2.0.1 
configure --user --package-db=clear --package-db=global --package-db=/home
/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b  /8.4.3
/pkgdb --libdir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b
/8.4.3/lib --bindir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b
/8.4.3/bin --datadir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b   /8.4.3
/share --libexecdir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b/8.4.3
/libexec --sysconfdir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b
/8.4.3/etc --docdir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b  /8.4.3
/doc/curl-1.3.8 --htmldir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b/8.4.3
/doc/curl-1.3.8 --haddockdir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b/8.4.3
/doc/curl-1.3.8 --dependency=base=base-4.11.1.0 
--dependency=bytestring=bytestring-0.10.8.2 
--dependency=containers=containers-0.5.11.0 -fnew-base --exact-configuration
--ghc-option=-fhide-source-paths

    Process exited with code: ExitFailure 1

知道我该如何解决吗?

Stack version: 2.1.3
Description:    Ubuntu 19.04

正如您收到的错误消息所说,"This problem can usually be solved by installing the system package that provides this library (you may need the "-dev"version)"。在您的情况下,您需要一个 libcurl-dev 包。根据您首选的 TLS 库,运行 sudo apt-get install libcurl4-openssl-devsudo apt-get install libcurl4-nss-devsudo apt-get install libcurl4-gnutls-dev.

之一