Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails #24

Open
luilver opened this issue Feb 22, 2024 · 3 comments
Open

Installation fails #24

luilver opened this issue Feb 22, 2024 · 3 comments

Comments

@luilver
Copy link

luilver commented Feb 22, 2024

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
Copy link
Author

luilver commented Feb 22, 2024

Solution:

sudo apt install build-essential

@luilver luilver closed this as completed Feb 22, 2024
@luilver luilver reopened this Feb 22, 2024
@luilver
Copy link
Author

luilver commented Feb 22, 2024

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
Copy link
Contributor

jnth commented Mar 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants