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

[BUG] - Compile error when running the provided install script #115

Closed
TobberH opened this issue Jul 7, 2022 · 2 comments
Closed

[BUG] - Compile error when running the provided install script #115

TobberH opened this issue Jul 7, 2022 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation installation Issue related to installation

Comments

@TobberH
Copy link

TobberH commented Jul 7, 2022

Description

Fails to compile with install script

Steps to reproduce

Run the provided install script:
curl --proto '=https' --tlsv1.2 -sSLf "https://git.io/JBhDb" | sh

Expected behaviour

Should install the termscp program

Environment

  • OS: GNU/Linux 5.15.32-1-MANJARO
  • Architecture x86_64
  • Rust version: rustup 1.24.3, rustc 1.62.0
  • termscp version 0.9

Log

error[E0432]: unresolved import `cache::UsersCache`
   --> /home/REDACTED/.cargo/registry/src/github.com-1ecc6299db9ec823/users-0.11.0/src/lib.rs:145:9
    |
145 | pub use cache::UsersCache;
    |         ^^^^^^^^^^^^^^^^^ no `UsersCache` in `cache`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `users` due to previous error
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: termscp

Additional information

First I got this error:

error[E0583]: file not found for module `cache`
   --> /home/REDACTED/.cargo/registry/src/github.com-1ecc6299db9ec823/users-0.11.0/src/lib.rs:142:1
    |
142 | pub mod cache;
    | ^^^^^^^^^^^^^^
    |
    = help: to create the module `cache`, create file "/home/REDACTED/.cargo/registry/src/github.com-1ecc6299db9ec823/users-0.11.0/src/cache.rs" or "/home/REDACTED/.cargo/registry/src/github.com-1ecc6299db9ec823/users-0.11.0/src/cache/mod.rs"

error[E0432]: unresolved import `cache::UsersCache`
   --> /home/REDACTED/.cargo/registry/src/github.com-1ecc6299db9ec823/users-0.11.0/src/lib.rs:145:9
    |
145 | pub use cache::UsersCache;
    |         ^^^^^^^^^^^^^^^^^ no `UsersCache` in `cache`

Some errors have detailed explanations: E0432, E0583.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `users` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: termscp

So I tried to create the cache.rs file with touch. Not sure that's what you need to do? So that error went away, but now I got the other error in the above Log section.

@TobberH TobberH added the bug Something isn't working label Jul 7, 2022
@veeso veeso added installation Issue related to installation and removed bug Something isn't working labels Jul 7, 2022
@veeso
Copy link
Owner

veeso commented Jul 7, 2022

Maybe you've previously installed an application which uses users but for some reason has the cache feature disabled and it's not trying to compile termscp with the cached source repository.

I'd try to clear the cache with rm -r ~/.cargo/registry then try to rebuild.

@TobberH
Copy link
Author

TobberH commented Jul 7, 2022

That worked! Was able to complete compile and installation. Maybe add something like that in an installation trouble-shooting section?

@veeso veeso added the documentation Improvements or additions to documentation label Jul 14, 2022
@veeso veeso pinned this issue Jul 15, 2022
@veeso veeso closed this as completed Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation installation Issue related to installation
Projects
None yet
Development

No branches or pull requests

2 participants