Skip to content

[BUG] Requirements #34

@matiaslopezd

Description

@matiaslopezd

Describe the bug
The repo require have installed libsoup-3.0-dev and libwebkit2gtk-4.1-dev for development.

To Reproduce
Try to start the dev server in a clean Debian, Fedora or Arch linux distribution.

Expected behavior
Add as requirements in the docs.

Screenshots

error: failed to run custom build command for soup3-sys v0.5.0
Caused by:
  process didn't exit successfully: /home/user/xRay/src-tauri/target/debug/build/soup3-sys-3f104c8498d2c360/build-script-build (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=LIBSOUP_3.0_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:warning=
  pkg-config exited with status code 1
  > PKG_CONFIG_PATH=/home/user/.gvm/pkgsets/go1.20/global/overlay/lib/pkgconfig: PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags libsoup-3.0 libsoup-3.0 >= 3.0
  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.
  PKG_CONFIG_PATH contains the following:
      - /home/user/.gvm/pkgsets/go1.20/global/overlay/lib/pkgconfig
      - 
  HINT: you may need to install a package such as libsoup-3.0, libsoup-3.0-dev or libsoup-3.0-devel.
warning: webkit2gtk-sys@2.0.1: 
error: failed to run custom build command for webkit2gtk-sys v2.0.1
Caused by:
  process didn't exit successfully: /home/user/xRay/src-tauri/target/debug/build/webkit2gtk-sys-1205574d991a110b/build-script-build (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=WEBKIT2GTK_4.1_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:warning=
  pkg-config exited with status code 1
  > PKG_CONFIG_PATH=/home/user/.gvm/pkgsets/go1.20/global/overlay/lib/pkgconfig: PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags webkit2gtk-4.1 webkit2gtk-4.1 >= 2.40
  The system library webkit2gtk-4.1 required by crate webkit2gtk-sys was not found.
  The file webkit2gtk-4.1.pc needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  PKG_CONFIG_PATH contains the following:
      - /home/user/.gvm/pkgsets/go1.20/global/overlay/lib/pkgconfig
      - 
  HINT: you may need to install a package such as webkit2gtk-4.1, webkit2gtk-4.1-dev or webkit2gtk-4.1-devel.

Environment (please complete the following information):

  • OS: Ubuntu
  • Version: 24.04.1 LTS
  • Architecture: x64

Additional context

Debian-based

sudo apt install libsoup-3.0-dev libwebkit2gtk-4.1-dev

Fedora/RHEL

sudo dnf install libsoup3-devel webkit2gtk4.1-devel

Arch

sudo pacman -S libsoup3 webkit2gtk

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions