KunalBagaria / rustyvibes

A Rust CLI that makes mechanical keyboard sound effects on every key press
https://github.com/kunalbagaria/rustyvibes
MIT License
208 stars 26 forks source link

Installation failed on Ubuntu 21.10 #19

Closed ameya-deshmukh closed 2 years ago

ameya-deshmukh commented 2 years ago

I tried to install rustyvibes on my Ubuntu 21.10 system with cargo install rustyvibes but the installation failed with the warning and error messages: warning: build failed, waiting for other jobs to finish... error: failed to compile `rustyvibes v1.0.8`, intermediate artifacts can be found at `/tmp/cargo-installgSvcr6`

Any fixes to this? (Entire installation error screenshot attached)

Screenshot from 2022-04-22 17-31-11

cryskram commented 2 years ago

Hello,

error: could not find system library 'alsa' required by the 'alsa-sys' crate

Looks like your missing a few dependencies, which is/are required by the alsa-sys library

Either/both of the commands should work out:

  1. sudo apt-get install alsa alsa-tools
  2. sudo apt-get install librust-alsa-sys-dev

keep in mind that, once you run these commands, it is recommended to reboot your system. Hope this solves the issue

ameya-deshmukh commented 2 years ago

Did this, didn't work. Throwing up new errors. Please have a look. Screenshot from 2022-04-22 19-55-10

KunalBagaria commented 2 years ago

Try this:

sudo apt install libx11-dev
ameya-deshmukh commented 2 years ago

Tried it, the same error occurs during installation. Will probably redo my cargo installation and try again. Anyway, great work on this. I'm planning to do something similar but for instantaneous Hindi/Devnagari typing from the keyboard. Would love to get some pointers on how to start out, etc. Where can I contact you?

Try this:

sudo apt install libx11-dev
KunalBagaria commented 2 years ago

That's awesome. Contact me on Discord: Kunal Bagaria#0001