如何将 libcurl4-openssl-dev 与 libssl1.0-dev 一起安装? [英] How do I install libcurl4-openssl-dev together with libssl1.0-dev?

查看:64
本文介绍了如何将 libcurl4-openssl-dev 与 libssl1.0-dev 一起安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将 npm 与使用 curl++ 构建 C++ 应用程序一起使用.在 Ubuntu 上无法使用 libcurl4-openssl-dev 安装 npm.如果我使用 libcurl4-nss-dev 而不是 libcurl4-openssl-dev,我的代码编译成功,但会出现错误未设置 URL!"在同样的情况下,当它在 libcurl4-openssl-dev 上正常工作时.我该如何解决这个问题?

I need to use npm together with building C++ application using curl++. npm cannot be installed with libcurl4-openssl-dev on Ubuntu. If I use libcurl4-nss-dev instead of libcurl4-openssl-dev, my code compiles sucessfully, but gives error "No URL set!" in the same situation, when it worked correctly on libcurl4-openssl-dev. How can I solve this?

推荐答案

我找到了一种解决方法:使用 libcurl4-gnutls-dev 而不是 libcurl4-nss-dev 或 libcurl4-openssl-dev.

I have found a workaround: using libcurl4-gnutls-dev instead of libcurl4-nss-dev or libcurl4-openssl-dev.

这篇关于如何将 libcurl4-openssl-dev 与 libssl1.0-dev 一起安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆