Linux prerequisites for Tauri don't work on Debian 13.
The following packages are missing: libsoup-2.4, javascriptcoregtk-4.0.
I replaced libwebkit2gtk-4.0-dev with libwebkit2gtk-4.1-dev.
Reproduction
Install the recommended prerequisites for Linux on a Debian 13 system, as described here.
Cargo output:
The following warnings were emitted during compilation:
warning: soup2-sys@0.2.0: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" "pkg-config" "--libs" "--cflags" "libsoup-2.4" "libsoup-2.4 >= 2.62"` did not exit successfully: exit status: 1
error: failed to run custom build command for `soup2-sys v0.2.0`
Caused by:
process didn't exit successfully: `/.../target/debug/build/soup2-sys-c8740ea34a7a56bb/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=LIBSOUP_2.4_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_ALLOW_SYSTEM_CFLAGS="1" "pkg-config" "--libs" "--cflags" "libsoup-2.4" "libsoup-2.4 >= 2.62"` did not exit successfully: exit status: 1
error: could not find system library 'libsoup-2.4' required by the 'soup2-sys' crate
--- stderr
Package libsoup-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsoup-2.4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libsoup-2.4', required by 'virtual:world', not found
Package 'libsoup-2.4', required by 'virtual:world', not found
warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:
warning: javascriptcore-rs-sys@0.4.0: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" "pkg-config" "--libs" "--cflags" "javascriptcoregtk-4.0" "javascriptcoregtk-4.0 >= 2.24"` did not exit successfully: exit status: 1
error: failed to run custom build command for `javascriptcore-rs-sys v0.4.0`
Caused by:
process didn't exit successfully: `/.../target/debug/build/javascriptcore-rs-sys-4ff78bc4f69c4680/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=JAVASCRIPTCOREGTK_4.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_ALLOW_SYSTEM_CFLAGS="1" "pkg-config" "--libs" "--cflags" "javascriptcoregtk-4.0" "javascriptcoregtk-4.0 >= 2.24"` did not exit successfully: exit status: 1
error: could not find system library 'javascriptcoregtk-4.0' required by the 'javascriptcore-rs-sys' crate
--- stderr
Package javascriptcoregtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `javascriptcoregtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'javascriptcoregtk-4.0', required by 'virtual:world', not found
Package 'javascriptcoregtk-4.0', required by 'virtual:world', not found
Describe the bug
Linux prerequisites for Tauri don't work on Debian 13.
The following packages are missing:
libsoup-2.4
,javascriptcoregtk-4.0
.I replaced
libwebkit2gtk-4.0-dev
withlibwebkit2gtk-4.1-dev
.Reproduction
Install the recommended prerequisites for Linux on a Debian 13 system, as described here.
Cargo output:
Expected behavior
Cargo builds Tauri correctly.
Full
tauri info
outputStack trace
No response
Additional context
Similar bugs: #9662 #3701