Open greenozon opened 2 weeks ago
Ubuntu 22.04 LTS
even after installing cargo apt package the steps are still not final:
cargo tauri build
error: no such command: tauri
View all installed commands with `cargo --list`
Hi, @greenozon First, you should fulfill the Tauri Prerequisites: https://v1.tauri.app/v1/guides/getting-started/prerequisites. Then, you should be able to build the app.
Also, I added this link to the installation guide (#40).
Please let me know if you have any other questions.
Thanks for the reply
I tied to follow the steps for Ubuntu (Debian based) but it still not coming to an end...
sudo apt update
Hit:1 http://ua.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://ua.archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Get:3 http://ua.archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
Hit:4 https://linux.teamviewer.com/deb stable InRelease
Hit:5 https://download.docker.com/linux/ubuntu focal InRelease
Get:6 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Hit:7 http://download.virtualbox.org/virtualbox/debian jammy InRelease
Hit:8 https://packages.cloud.google.com/apt cloud-sdk InRelease
Get:9 http://ua.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2,108 kB]
Get:10 http://ua.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [103 kB]
Get:11 http://ua.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 DEP-11 Metadata [212 B]
Get:12 http://ua.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [356 kB]
Get:13 http://ua.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:14 http://ua.archive.ubuntu.com/ubuntu jammy-backports/main amd64 DEP-11 Metadata [5,308 B]
Get:15 http://ua.archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 DEP-11 Metadata [212 B]
Get:16 http://ua.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [23.1 kB]
Get:17 http://ua.archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 DEP-11 Metadata [212 B]
Get:18 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1,891 kB]
Get:19 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [43.1 kB]
Get:20 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 DEP-11 Metadata [208 B]
Get:21 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [126 kB]
Get:22 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 DEP-11 Metadata [208 B]
Fetched 5,043 kB in 2s (2,417 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
28 packages can be upgraded. Run 'apt list --upgradable' to see them.
then this
sudo apt install libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
file \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.9ubuntu3).
curl is already the newest version (7.81.0-1ubuntu1.18).
file is already the newest version (1:5.41-3ubuntu0.1).
libssl-dev is already the newest version (3.0.2-0ubuntu1.18).
wget is already the newest version (1.21.2-2ubuntu1.1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libharfbuzz-dev : Depends: libharfbuzz0b (= 2.7.4-1ubuntu3.1) but 6.0.0-1~18.04.sav0 is to be installed
Depends: libharfbuzz-icu0 (= 2.7.4-1ubuntu3.1) but 6.0.0-1~18.04.sav0 is to be installed
E: Unable to correct problems, you have held broken packages.
@greenozon, sorry to hijack your thread, but maybe it's going to be useful for someone:
To build any Rust app that uses cargo
you would want rustup
installed - it's Rust's toolchain manager, a command line tool for managing Rust versions and associated tools, including cargo
- https://rustup.rs/. You generally have to curl it instead of using your system's package manager. (it's listed in Tauri prerequisites mentioned above)
However, for me the following steps were missing (Win 11), and not listed as Tauri prerequisites nor in the README here (or maybe I'm dumb) :):
cargo install tauri-cli --version ^1.0
openssl
env vars are set - (I installed a fresh openssl with chocolatey)
$env:OPENSSL_DIR = "C:\Program Files\OpenSSL-Win64"
$env:OPENSSL_INCLUDE_DIR = "C:\Program Files\OpenSSL-Win64\include"
$env:OPENSSL_LIB_DIR = "C:\Program Files\OpenSSL-Win64\lib\VC\x64\MD"cargo install trunk
(requires those openssl env vars)rustup target add wasm32-unknown-unknown
@greenozon addressing your issue, what does it say when you try to do cargo tauri build
?
sorry, while fixing the libharfbuzz0b and libharfbuzz-icu0 libs something really weird happened (I lost GUI login) so I had to do the
sudo apt install --reinstall ubuntu-desktop
now I think I"ll do it inside VM...
now I think I"ll do it inside VM...
right decision 👍
@greenozon Did you manage to build the app? Can I close the issue?
not yet.... thanks for ping back
Feel free to ask any questions. It will also help me to make the documentation better
cargo tauri build
Command 'cargo' not found, but can be installed with: sudo snap install rustup # version 1.27.1, or sudo apt install cargo # version 1.75.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04 See 'snap info rustup' for additional versions.
Please add some hints as well as this is non-standard package!