Closed XuJinNet closed 8 months ago
Please re-run it with the verbose flag; pnpm tauri build --verbose
Hopefully we get more helpful output then.
Please re-run it with the verbose flag;
pnpm tauri build --verbose
Hopefully we get more helpful output then.
Hello, thanks for your help, i might know what's causing the problem: Incomplete file download for linuxdeploy-x86_64.AppImage
.
Debug [handlebars::render] Rendering value: Path(Relative(([Named("appimage_filename")], "appimage_filename")))
Debug [handlebars::render] Rendering value: Path(Relative(([Named("tauri_tools_path")], "tauri_tools_path")))
Debug [handlebars::render] Rendering value: Path(Relative(([Named("app_name")], "app_name")))
Bundling [tauri_bundler::bundle::linux::appimage] tauri-app-js_0.0.0_amd64.AppImage (/home/xujin/My_Projects/learning/learning-tauri/tauri-app-js/src-tauri/target/release/bundle/appimage/tauri-app-js_0.0.0_amd64.AppImage)
Running [tauri_bundler::bundle::common] Command `/home/xujin/My_Projects/learning/learning-tauri/tauri-app-js/src-tauri/target/release/bundle/appimage/build_appimage.sh `
+ export ARCH=x86_64
+ ARCH=x86_64
+ APPIMAGE_BUNDLE_XDG_OPEN=0
+ APPIMAGE_BUNDLE_GSTREAMER=0
+ TRAY_LIBRARY_PATH=0
+ '[' x86_64 == i686 ']'
+ linuxdeploy_arch=x86_64
+ mkdir -p tauri-app-js.AppDir
+ cp -r ../appimage_deb/data/usr tauri-app-js.AppDir
+ cd tauri-app-js.AppDir
+ mkdir -p usr/bin
+ mkdir -p usr/lib
+ [[ 0 != \0 ]]
+ [[ 0 != \0 ]]
++ dirname '{}'
+ find /usr/lib /usr/lib32 /usr/lib64 -name WebKitNetworkProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
find: ‘/usr/lib/firmware/b43’: 权限不够find: ‘/usr/lib/firmware/b43legacy’: 权限不够+ true
++ dirname '{}'
+ find /usr/lib /usr/lib32 /usr/lib64 -name WebKitWebProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
find: ‘/usr/lib/firmware/b43’: 权限不够find: ‘/usr/lib/firmware/b43legacy’: 权限不够+ true
++ dirname '{}'
+ find /usr/lib /usr/lib32 /usr/lib64 -name libwebkit2gtkinjectedbundle.so -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
find: ‘/usr/lib/firmware/b43’: 权限不够find: ‘/usr/lib/firmware/b43legacy’: 权限不够+ true
+ cd /home/xujin/.cache/tauri
+ wget -q -4 -N https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64
+ chmod +x /home/xujin/.cache/tauri/AppRun-x86_64
+ cp /home/xujin/.cache/tauri/AppRun-x86_64 AppRun
+ cp usr/share/icons/hicolor/256x256@2/apps/tauri-app-js.png .DirIcon
+ ln -s usr/share/icons/hicolor/256x256@2/apps/tauri-app-js.png tauri-app-js.png
+ ln -s usr/share/applications/tauri-app-js.desktop tauri-app-js.desktop
+ cd ..
+ [[ 0 != \0 ]]
+ gst_plugin=
+ cd /home/xujin/.cache/tauri
+ wget -q -4 -N https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
+ cd /home/xujin/.cache/tauri
+ wget -q -4 -N https://github.com/tauri-apps/binary-releases/releases/download/linuxdeploy/linuxdeploy-x86_64.AppImage
+ chmod +x /home/xujin/.cache/tauri/linuxdeploy-plugin-gtk.sh
+ chmod +x /home/xujin/.cache/tauri/linuxdeploy-x86_64.AppImage
+ dd if=/dev/zero bs=1 count=3 seek=8 conv=notrunc of=/home/xujin/.cache/tauri/linuxdeploy-x86_64.AppImage
输入了 3+0 块记录输出了 3+0 块记录3 字节已复制,0.00151879 s,2.0 kB/s
+ OUTPUT=tauri-app-js_0.0.0_amd64.AppImage
+ /home/xujin/.cache/tauri/linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir tauri-app-js.AppDir --plugin gtk --output appimage
Something went wrong trying to read the squashfs image.
Failed to open squashfs image
Failed to extract AppImage
Error [tauri_cli_node] failed to bundle project: error running appimage.sh: error running appimage.sh: `failed to run /home/xujin/My_Projects/learning/learning-tauri/tauri-app-js/src-tauri/target/release/bundle/appimage/build_appimage.sh`
ELIFECYCLE Command failed with exit code 1.
Try deleting the target/
directory and rebuilding. It fixed the issue for me
Same error, may related to this: failed to create symbolic link 'tauri-app.png': File exists
When I commented out the ln commands in target/release/bundle/appimage/build_appimage.sh, it succeeded, but fails the next time I run the build.
The -f might help?
ln -s -f "usr/share/icons/hicolor/256x256@2/apps/tauri-app.png" "tauri-app.png" ln -s -f "usr/share/applications/tauri-app.desktop" "tauri-app.desktop"
In my case librsvg library was missing:
-- Running input plugin: gtk --
[gtk/stdout] Installing AppRun hook
[gtk/stderr] chmod: cannot access 'viewer.AppDir/usr/lib64': No such file or directory
[gtk/stdout] Installing GLib schemas
[gtk/stderr] Package librsvg-2.0 was not found in the pkg-config search path.
[gtk/stderr] Perhaps you should add the directory containing `librsvg-2.0.pc'
[gtk/stderr] to the PKG_CONFIG_PATH environment variable
[gtk/stderr] No package 'librsvg-2.0' found
[gtk/stdout] Installing GTK 3.0 modules
[gtk/stdout] Updating immodules cache in viewer.AppDir//usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache
[gtk/stdout] Installing GDK PixBufs
[gtk/stdout] Updating pixbuf cache in viewer.AppDir//usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
[gtk/stdout] Copying more libraries
[gtk/stderr] /home/****/.cache/tauri/linuxdeploy-plugin-gtk.sh: there is no 'libdir' variable for 'librsvg-2.0' library.
[gtk/stderr] Please check the 'librsvg-2.0.pc' file is present in $PKG_CONFIG_PATH (you may need to install the appropriate -dev/-devel package).
ERROR: Failed to run plugin: gtk (exit code: 1)
Error [tauri_cli_node] failed to bundle project: error running appimage.sh: error running appimage.sh: `failed to run /home/dostolski/projects/viewer/src-tauri/target/release/bundle/appimage/build_appimage.sh`
I had to install it using Ubuntu package manager:
sudo apt-get install librsvg2-dev
BR, Darek
Has anyone solved this error on Arch Linux?
ERROR: Could not find dependency: libicui18n.so.72
pacman -Qi icu
Name : icu
Version : 73.2-2
Version : 73.2-2
The thing tries to find libicui18n.so.72
, where 72
means version 72
. The upstream version is 73
so a "dirty" fix like that would do the trick:
# ln -s /usr/lib/libicui18n.so.73 /usr/lib/libicui18n.so.72
# ln -s /usr/lib/libicuuc.so.73 /usr/lib/libicuuc.so.72
But of course its best to find the 72 version binaries somewhere so it wouldn't SIGSEGV or anything, but y'know, for now it works...
Please re-run it with the verbose flag;
pnpm tauri build --verbose
Hopefully we get more helpful output then.
No more error info after npm run tauri build --verbose
, just "failed to bundle project: error running appimage.sh".
@larryteal if you use npm there needs to be an extra --
like this npm run tauri build -- --verbose
@larryteal if you use npm there needs to be an extra
--
like thisnpm run tauri build -- --verbose
Thank You @FabianLars . npm run tauri build -- --verbose
working.
I build my APP on jetson nano, is ARMv8 system. There are two problems.
1, find: ‘/usr/lib/ssl/private’: Permission denied
2, This link is 404, https://github.com/tauri-apps/binary-releases/releases/download/linuxdeploy/linuxdeploy-aarch64.AppImage
I have add my user to ssl-cert group and root group, but still find: ‘/usr/lib/ssl/private’: Permission denied
+ export ARCH=aarch64
+ ARCH=aarch64
+ APPIMAGE_BUNDLE_XDG_OPEN=1
+ APPIMAGE_BUNDLE_GSTREAMER=0
+ TRAY_LIBRARY_PATH=0
+ '[' aarch64 == i686 ']'
+ linuxdeploy_arch=aarch64
+ mkdir -p tauri-a1.AppDir
+ cp -r ../appimage_deb/data/usr tauri-a1.AppDir
+ cd tauri-a1.AppDir
+ mkdir -p usr/bin
+ mkdir -p usr/lib
+ [[ 1 != \0 ]]
+ [[ -f /usr/bin/xdg-open ]]
+ echo 'Copying /usr/bin/xdg-open'
+ cp /usr/bin/xdg-open usr/bin
Copying /usr/bin/xdg-open
+ [[ 0 != \0 ]]
++ dirname '{}'
+ find -L /usr/lib -name WebKitNetworkProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
find: File system loop detected; ‘/usr/lib/chromium-browser/libs’ is part of the same file system loop as ‘/usr/lib/chromium-browser’.
find: ‘/usr/lib/ssl/private’: Permission denied
+ true
++ dirname '{}'
+ find -L /usr/lib -name WebKitWebProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
find: File system loop detected; ‘/usr/lib/chromium-browser/libs’ is part of the same file system loop as ‘/usr/lib/chromium-browser’.
find: ‘/usr/lib/ssl/private’: Permission denied
+ true
++ dirname '{}'
+ find -L /usr/lib -name libwebkit2gtkinjectedbundle.so -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
find: File system loop detected; ‘/usr/lib/chromium-browser/libs’ is part of the same file system loop as ‘/usr/lib/chromium-browser’.
find: ‘/usr/lib/ssl/private’: Permission denied
+ true
+ cd /home/user/.cache/tauri
+ wget -q -4 -N https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-aarch64
+ chmod +x /home/user/.cache/tauri/AppRun-aarch64
+ cp /home/user/.cache/tauri/AppRun-aarch64 AppRun
+ cp usr/share/icons/hicolor/256x256@2/apps/tauri-a1.png .DirIcon
+ ln -sf usr/share/icons/hicolor/256x256@2/apps/tauri-a1.png tauri-a1.png
+ ln -sf usr/share/applications/tauri-a1.desktop tauri-a1.desktop
+ cd ..
+ [[ 0 != \0 ]]
+ gst_plugin=
+ cd /home/user/.cache/tauri
+ wget -q -4 -N https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
+ cd /home/user/.cache/tauri
+ wget -q -4 -N https://github.com/tauri-apps/binary-releases/releases/download/linuxdeploy/linuxdeploy-aarch64.AppImage
Error [tauri_cli_node] failed to bundle project: error running appimage.sh
@larryteal Then you're hitting this one: https://github.com/tauri-apps/tauri/issues/4174 - no arm support for appimages yet.
I also got the same error message "Error failed to bundle project: error running appimage.sh". but the reason might be different. the content https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh is blocked by the GWT and failed to build the appImage. below is the log and testing I did.
✔ Browser application bundle generation complete.
+ TRAY_LIBRARY_PATH=0
+ '[' x86_64 == i686 ']'
+ linuxdeploy_arch=x86_64
+ wget -q -4 -N https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
Error [tauri_cli_node] failed to bundle project: error running appimage.sh
$ wget -v -4 -N https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
--2023-08-22 14:23:35-- https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 0.0.0.0
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|0.0.0.0|:443... failed: Connection refused.
Is it possible to move the dependant scripts be moved into a Rust crate instead of getting them from internet runtime and show explicit error message instead of a general error message?
another reason for me "Permission denied: "/usr/bin/sentinelctl" : (simple quick start project without updates)
+ OUTPUT=activites_0.0.1_amd64.AppImage
+ /home/xxx/.cache/tauri/linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir activites.AppDir --plugin gtk --output appimage
linuxdeploy version 1-alpha (git commit ID 287c436), GitHub actions build 110 built on 2022-08-17 20:56:20 UTC
terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
what(): boost::filesystem::status: Permission denied: "/usr/bin/sentinelctl"
Error [tauri_cli_node] failed to bundle project: error running appimage.sh
to avoid this kind of problem I now use Tauri Github actions https://tauri.app/v1/guides/building/cross-platform/#example-workflow
Has anyone solved this error on Arch Linux?
ERROR: Could not find dependency: libicui18n.so.72
pacman -Qi icu Name : icu Version : 73.2-2
I found a blessed soul was maintaining https://aur.archlinux.org/packages/icu72-bin. That resolves it.
But you end up with another one:
ERROR: Could not find dependency: libavif.so.15
ERROR: Failed to deploy dependencies for existing files
Error [tauri_cli_node] failed to bundle project: error running appimage.sh
error: script "tauri" exited with code 1 (SIGHUP)
This one is weird, as I already have the library:
$ pacman -F libavif.so.15
extra/libavif 0.11.1-1 [installed: 1.0.1-2]
usr/lib/libavif.so.15
This one is weird, as I already have the library
@yozachar You have installed the latest version, which only contains .so.16
. See package content here. I found that symlinking both old libraries to their respective newer versions works, but it's probably not and ideal solution.
I have this problem on Ubuntu WSL2
ERROR: Could not find dependency: libwebkit2gtk-4.0.so.37
Even though the package is installed
/usr/lib/x86_64-linux-gnu $ ls | grep libwebkit2gtk-4.0
libwebkit2gtk-4.0.so
libwebkit2gtk-4.0.so.37
libwebkit2gtk-4.0.so.37.57.9
~ $ pkg-config --cflags --libs webkit2gtk-4.0
-pthread -I/usr/include/webkitgtk-4.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/webkitgtk-4.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -L/usr/lib/x86_64-linux-gnu -lwebkit2gtk-4.0 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lsoup-2.4 -lgio-2.0 -ljavascriptcoregtk-4.0 -lgobject-2.0 -lglib-2.0
~ $ echo $PKG_CONFIG_PATH
/usr/lib/x86_64-linux-gnu/pkgconfig/:/usr/share/pkgconfig/
$ sudo ln -s /usr/lib/libavif.so.16 /usr/lib/libavif.so.15
@yozachar You have installed the latest version, which only contains
.so.16
. See package content here. I found that symlinking both old libraries to their respective newer versions works, but it's probably not and ideal solution.
Symlinking works, thanks! Yeah that's true.
For those looking to temporally disable AppImage build you can change "targets": "all"
in src-tauri/tauri.conf.json
file to:
"targets": ["deb", "nsis", "msi", "app", "dmg", "updater"],
Ref: https://tauri.app/v1/guides/building/linux#prerequisites
Oddly enough, for me I ran into the following issue which is pretty wsl exclusive I guess...
Running [tauri_bundler::bundle::common] Command `/home/jesse/personal-wsl/GraphiteDesktop/src-tauri/target/debug/bundle/appimage/build_appimage.sh `
+ export ARCH=x86_64
+ ARCH=x86_64
+ APPIMAGE_BUNDLE_XDG_OPEN=1
+ APPIMAGE_BUNDLE_GSTREAMER=0
+ TRAY_LIBRARY_PATH=0
+ '[' x86_64 == i686 ']'
+ linuxdeploy_arch=x86_64
+ mkdir -p graphite-desktop.AppDir
+ cp -r ../appimage_deb/data/usr graphite-desktop.AppDir
+ cd graphite-desktop.AppDir
+ mkdir -p usr/bin
+ mkdir -p usr/lib
+ [[ 1 != \0 ]]
+ [[ -f /usr/bin/xdg-open ]]
Copying /usr/bin/xdg-open
+ echo 'Copying /usr/bin/xdg-open'
+ cp /usr/bin/xdg-open usr/bin
+ [[ 0 != \0 ]]
++ dirname '{}'
+ find -L /usr/lib /usr/lib32 /usr/lib64 -name WebKitNetworkProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
++ dirname '{}'
+ find -L /usr/lib /usr/lib32 /usr/lib64 -name WebKitWebProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
++ dirname '{}'
+ find -L /usr/lib /usr/lib32 /usr/lib64 -name libwebkit2gtkinjectedbundle.so -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
+ cd /home/jesse/.cache/tauri
+ wget -q -4 -N https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64
+ chmod +x /home/jesse/.cache/tauri/AppRun-x86_64
+ cp /home/jesse/.cache/tauri/AppRun-x86_64 AppRun
+ cp usr/share/icons/hicolor/256x256@2/apps/graphite-desktop.png .DirIcon
+ ln -sf usr/share/icons/hicolor/256x256@2/apps/graphite-desktop.png graphite-desktop.png
+ ln -sf usr/share/applications/graphite-desktop.desktop graphite-desktop.desktop
+ cd ..
+ [[ 0 != \0 ]]
+ gst_plugin=
+ cd /home/jesse/.cache/tauri
+ wget -q -4 -N https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
+ cd /home/jesse/.cache/tauri
+ wget -q -4 -N https://github.com/tauri-apps/binary-releases/releases/download/linuxdeploy/linuxdeploy-x86_64.AppImage
+ chmod +x /home/jesse/.cache/tauri/linuxdeploy-plugin-gtk.sh
+ chmod +x /home/jesse/.cache/tauri/linuxdeploy-x86_64.AppImage
+ dd if=/dev/zero bs=1 count=3 seek=8 conv=notrunc of=/home/jesse/.cache/tauri/linuxdeploy-x86_64.AppImage
3+0 records in
3+0 records out
3 bytes copied, 9.4958e-05 s, 31.6 kB/s
+ OUTPUT=graphite-desktop_0.5.3_amd64.AppImage
+ /home/jesse/.cache/tauri/linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir graphite-desktop.AppDir --plugin gtk --output appimage
linuxdeploy version 1-alpha (git commit ID 287c436), GitHub actions build 110 built on 2022-08-17 20:56:20 UTC
terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
what(): boost::filesystem::status: Permission denied: "/mnt/c/Windows/system32/config/systemprofile/AppData/Local/Microsoft/WindowsApps"
I don't strictly know why, but right at the end it tries to go to the AppData folder of the systemprofile. Not sure how to get around this in wsl, doesn't happen in my build pipeline (github action) or on my personal system (runs linux natively)
I've got this error, on Manjaro Linux, Linux xxx-minipcpn51e1 6.6.1-1-MANJARO #1 SMP PREEMPT_DYNAMIC Thu Nov 9 04:27:49 UTC 2023 x86_64 GNU/Linux
$ npm run tauri build -- --verbose
...
+ find -L /usr/lib /usr/lib32 /usr/lib64 -name WebKitNetworkProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
++ dirname '{}'
+ find -L /usr/lib /usr/lib32 /usr/lib64 -name WebKitWebProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
++ dirname '{}'
+ find -L /usr/lib /usr/lib32 /usr/lib64 -name libwebkit2gtkinjectedbundle.so -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
+ cd /home/peng/.cache/tauri
+ wget -q -4 -N https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64
+ wget -q -4 -N https://github.com/AppImage/AppImageKit/releases/download/12/AppRun-x86_64
Error [tauri_cli_node] failed to bundle project: error running appimage.sh
It seems that the URL to wget
is wrong.
I've got this error, on Manjaro Linux, Linux xxx-minipcpn51e1 6.6.1-1-MANJARO #1 SMP PREEMPT_DYNAMIC Thu Nov 9 04:27:49 UTC 2023 x86_64 GNU/Linux
$ npm run tauri build -- --verbose ... + find -L /usr/lib /usr/lib32 /usr/lib64 -name WebKitNetworkProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';' ++ dirname '{}' + find -L /usr/lib /usr/lib32 /usr/lib64 -name WebKitWebProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';' ++ dirname '{}' + find -L /usr/lib /usr/lib32 /usr/lib64 -name libwebkit2gtkinjectedbundle.so -exec mkdir -p . ';' -exec cp --parents '{}' . ';' + cd /home/peng/.cache/tauri + wget -q -4 -N https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64 + wget -q -4 -N https://github.com/AppImage/AppImageKit/releases/download/12/AppRun-x86_64 Error [tauri_cli_node] failed to bundle project: error running appimage.sh
It seems that the URL to
wget
is wrong.
The url's seem correct (in the sense that they can be reached with wget, I'm guessing it errors on either an earlier or later step in that process.
In my case librsvg library was missing:
-- Running input plugin: gtk -- [gtk/stdout] Installing AppRun hook [gtk/stderr] chmod: cannot access 'viewer.AppDir/usr/lib64': No such file or directory [gtk/stdout] Installing GLib schemas [gtk/stderr] Package librsvg-2.0 was not found in the pkg-config search path. [gtk/stderr] Perhaps you should add the directory containing `librsvg-2.0.pc' [gtk/stderr] to the PKG_CONFIG_PATH environment variable [gtk/stderr] No package 'librsvg-2.0' found [gtk/stdout] Installing GTK 3.0 modules [gtk/stdout] Updating immodules cache in viewer.AppDir//usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache [gtk/stdout] Installing GDK PixBufs [gtk/stdout] Updating pixbuf cache in viewer.AppDir//usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache [gtk/stdout] Copying more libraries [gtk/stderr] /home/****/.cache/tauri/linuxdeploy-plugin-gtk.sh: there is no 'libdir' variable for 'librsvg-2.0' library. [gtk/stderr] Please check the 'librsvg-2.0.pc' file is present in $PKG_CONFIG_PATH (you may need to install the appropriate -dev/-devel package). ERROR: Failed to run plugin: gtk (exit code: 1) Error [tauri_cli_node] failed to bundle project: error running appimage.sh: error running appimage.sh: `failed to run /home/dostolski/projects/viewer/src-tauri/target/release/bundle/appimage/build_appimage.sh`
I had to install it using Ubuntu package manager:
sudo apt-get install librsvg2-dev
BR, Darek
This seems to have fixed it for me, thank you.
Closing this as OP's (and hopefully all the others') issues are resolved and a catch all issue is not really helpful considering that this error message can be caused by many different root causes.
In general in case anyone sees this error message and none of the messages here help them. Please re-run it with the --verbose flag and open a new issue with the logs. Thank you.
Describe the bug
Build a hello word project, run
pnpm tauri build
, get a error:Reproduction
run
pnpm tauri build
Expected behavior
Build success.
Platform and versions
Stack trace
No response
Additional context
No response