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

Issue on Ubuntu 22.04 #1649

Closed
xahmad7 opened this issue Oct 28, 2022 · 10 comments
Closed

Issue on Ubuntu 22.04 #1649

xahmad7 opened this issue Oct 28, 2022 · 10 comments

Comments

@xahmad7
Copy link

xahmad7 commented Oct 28, 2022

Hllo
When i try to install it on Ubuntu 22.04
after $ cargo install --path . --locked
I got this:

` Compiling i3status-rs v0.30.0 (/home/zero/Downloads/i3status-rust)
error[E0658]: use of unstable library feature 'bool_to_option'
--> src/blocks/nvidia_gpu.rs:145:77
|
145 | ... set_fan_speed(config.gpu_id, fan_controlled.then_some(info.fan_speed)).await?;
| ^^^^^^^^^
|
= note: see issue #80967 rust-lang/rust#80967 for more information

For more information about this error, try rustc --explain E0658.
error: could not compile i3status-rs due to previous error

`
Any idea ?

@ammgws
Copy link
Collaborator

ammgws commented Oct 28, 2022

@ammgws
Copy link
Collaborator

ammgws commented Oct 28, 2022

Huh I swear your post said ssl at first

@ammgws
Copy link
Collaborator

ammgws commented Oct 28, 2022

What's your rustc version?

@xahmad7
Copy link
Author

xahmad7 commented Oct 28, 2022

❯ rustc --version
rustc 1.61.0

@xahmad7
Copy link
Author

xahmad7 commented Oct 29, 2022

Now i got this error:
= note: /usr/bin/ld: cannot find -lsensors: No such file or directory
collect2: error: ld returned 1 exit status

@MaxVerevkin
Copy link
Collaborator

Now i got this error:
= note: /usr/bin/ld: cannot find -lsensors: No such file or directory
collect2: error: ld returned 1 exit status

I think you need libsensors-dev.

@MaxVerevkin
Copy link
Collaborator

We should mention this in dev.md

@xahmad7
Copy link
Author

xahmad7 commented Oct 29, 2022

Installed succsefully
but the problem it looks like this:
image

@MaxVerevkin
Copy link
Collaborator

See #1014

@twosaturdayscode
Copy link

Probably newbie note, but if someone else stumble upon this while trying to manually install this package on ubuntu, using simply rust from sudo apt install rust won't work, you'll need to install rust using the following:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

then follow the guide as is.

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

4 participants