curl.h no such file or directory

后端 未结 5 2062
抹茶落季
抹茶落季 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 06:54

    If after the installation curl-dev luarocks does not see the headers:

    find /usr -name 'curl.h'
    Example: /usr/include/x86_64-linux-gnu/curl/curl.h
    
    luarocks install lua-cURL CURL_INCDIR=/usr/include/x86_64-linux-gnu/
    

提交回复
热议问题