Skip to content

error while loading shared libraries: libgtksourceview-3.0.so.1: cannot open shared object file: No such file or directory #1986

@guillemcordoba

Description

@guillemcordoba

Describe the bug

After I package my tauri app in an AppImage and try to run it in another Ubuntu, I get this error:

app: error while loading shared libraries: libgtksourceview-3.0.so.1: cannot open shared object file: No such file or directory

To Reproduce
Steps to reproduce the behavior:

  1. Build your tauri app into an AppImage.
  2. Download that AppImage to another PC that doesn't have libgtksourceview installed.
  3. Try to run the AppImage in a terminal.

I've tried with both my app (it uses the Vue CLI plugin) and the vue example, same result in both cases.

I have also tried with Rust 1.52.1, with the same result.

Expected behavior
Tauri packages all the necessary libraries inside the AppImage so that the end users don't need to install them.

Platform and Versions (please complete the following information):

launcher@0.1.0 tauri
tauri "info"

Operating System - Ubuntu, version 20.04 X64

Node.js environment
Node.js - 16.3.0
@tauri-apps/cli - 1.0.0-beta.1 (outdated, latest: 1.0.0-beta.2)
@tauri-apps/api - 1.0.0-beta-rc.3

Global packages
npm - 7.15.1
yarn - 1.22.5

Rust environment
rustc - 1.55.0-nightly
cargo - 1.54.0-nightly

App directory structure
/node_modules
/target
/.cargo
/.git
/public
/src
/tests
/src-tauri

App
tauri.rs - 1.0.0-beta.1
build-type - bundle
CSP - default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
distDir - Set automatically by Vue CLI plugin
devPath - Set automatically by Vue CLI plugin
framework - Vue.js (Vue CLI)
bundler - Webpack

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: cliThe tauri-cli rust crate and @tauri-apps/cli npm packagetype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions