Kwaadpepper / msi-keyboard-CLI

Just a nodejs cli to control https://github.com/stevelacy/msi-keyboard
http://freethepepper.com
GNU General Public License v2.0
64 stars 13 forks source link

ERROR: realpath: command not found #16

Open Johndt6 opened 7 years ago

Johndt6 commented 7 years ago

When attempting to run sudo msikeyboard from the command line, I received the following response:

john@PC:~$ sudo msikeyboard
/usr/bin/msikeyboard: line 2: realpath: command not found
dirname: missing operand
Try 'dirname --help' for more information.
john@PC:~$ bash: /msi-keyboard-CLI.js: No such file or directory

This was done using Ubuntu Trusty Tahr (14.04).

I've solved the problem, but thought I would submit an issue for people who run across this problem in the future.

You simply need to install the realpath command, which can be done as follows on Ubuntu:

sudo apt-get install realpath
Kwaadpepper commented 7 years ago

Thanks for your contribution. I could make a verification if realpath is present, this will surely be updated.