runtipi / cli

The command line interface to configure and interact with Runtipi
https://runtipi.io/
GNU General Public License v3.0
4 stars 3 forks source link

Installation fails #24

Open luilver opened 7 months ago

luilver commented 7 months ago

Following installation steps fail:

error: linker `cc` not found
|
= note: No such file or directory (os error 2)

error: could not compile `proc-macro2` (build script) due to 1 previous error warning: build failed, waiting for other jobs to finish... error: could not compile `libc` (build script) due to 1 previous error

System, libraries and dependency versions being used

OS

Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy

Rust

rustc 1.76.0 (07dca489a 2024-02-04)

Dependencies

cc?

luilver commented 7 months ago

Solution:

sudo apt install build-essential
luilver commented 7 months ago

Now it's failing for another reason:

error: couldn't read src/utils/../assets/VERSION: No such file or directory (os error 2)
--> src/utils/constants.rs:7:27
|
7 | pub const VERSION: &str = include_str!("../assets/VERSION");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `runtipi-cli` (bin "runtipi-cli") due to 1 previous error
jnth commented 7 months ago

The building process create a file named VERSION in src/assets. If you build runtipi-cli from source, create a VERSION like this:

echo "dev" > src/assets/VERSION