curl.h no such file or directory

后端 未结 5 2158
抹茶落季
抹茶落季 2021-01-30 06:38

I installed curl this command (i use Ubuntu):

sudo apt-get install curl

When I test simple program using g++ test.cpp



        
5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-30 07:04

    sudo apt-get install curl-devel

    sudo apt-get install libcurl-dev
    

    (will install the default alternative)

    OR

    sudo apt-get install libcurl4-openssl-dev
    

    (the OpenSSL variant)

    OR

    sudo apt-get install libcurl4-gnutls-dev
    

    (the gnutls variant)

提交回复
热议问题