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?

【Ubuntu】pkg-configのpathを通す

Last updated at Posted at 2025-09-24

エラー文は読もうねって話

経緯

UbuntuでTauriアプリケーションをビルドしようとしたら

The system library `libsoup-3.0` required by crate `soup3-sys` was not found.
  The file `libsoup-3.0.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  The PKG_CONFIG_PATH environment variable is not set.

  HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `libsoup-3.0.pc`.

requiredなものをインストールしても複数のrequiredが順繰りに表示されるばかり

対処

sudo apt install pkg-config

して、.bashrc

export PKG_CONFIG=/usr/bin/pkg-config

と追記して、

source ~/.bashrc

するか、新しいターミナルを開いてビルドする

出典

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?