0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

メモ:libcurlの開発環境構築(WSL2 Ubuntu22.04)

Posted at

インストール手順

# makeの準備
sudo apt install gcc make unzip

# curlのソースコードを取得
wget https://curl.se/download/curl-8.6.0.zip
cd curl-8.6.0

# configure実行
./configure --with-openssl

# エラーが出たのでパッケージを追加
sudo apt libssl-dev libpsl-dev

make
sudo make install

動作確認

最低限のソースコードがビルドできればOK

test.c
#include <curl/curl.h>

int main(void)
{
    CURL *curl;
    curl = curl_easy_init();
    return 0;
}

ビルドコマンド

gdb test.c -lcurl

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?