mmeyer724 / sshmenu

MIT License
56 stars 12 forks source link

Getting sshmenu command not found #8

Closed chris1984 closed 6 years ago

chris1984 commented 6 years ago

Getting the following on Ubuntu 17.04

chrobert@vault111:~$ pip3 install sshmenu
Collecting sshmenu
Collecting readchar==0.7 (from sshmenu)
Collecting args==0.1.0 (from sshmenu)
Collecting clint==0.5.1 (from sshmenu)
Installing collected packages: readchar, args, clint, sshmenu
Successfully installed args-0.1.0 clint-0.5.1 readchar-0.7 sshmenu-0.0.3
chrobert@vault111:~$ sshmenu
sshmenu: command not found
mmeyer724 commented 6 years ago

Hmm, can you try running these two commands and report back the result?

find /usr -type f -name "sshmenu"
echo $PATH

For me (on macOS) the binary is installed to /usr/local/bin/sshmenu. My assumption is that you don't have /usr/local/bin in your PATH.

chris1984 commented 6 years ago

Hey thanks for the quick reply, here is the output you requested:

chrobert@vault111:~/ find /usr -type f -name "sshmenu"

chrobert@vault111:~/ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/chrobert/.rvm/bin

chrobert@vault111:~/ sudo locate sshmenu
/home/chrobert/.cache/pip/wheels/5d/92/79/a683217efcba50ef1e8eb6ec84197417a4261260036e7ccf70/sshmenu-0.0.3-cp35-none-any.whl
/home/chrobert/.local/bin/sshmenu
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu-0.0.3.dist-info
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu/__init__.py
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu/__main__.py
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu/__pycache__
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu/sshmenu.py
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu/__pycache__/__init__.cpython-35.pyc
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu/__pycache__/__main__.cpython-35.pyc
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu/__pycache__/sshmenu.cpython-35.pyc
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu-0.0.3.dist-info/DESCRIPTION.rst
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu-0.0.3.dist-info/INSTALLER
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu-0.0.3.dist-info/METADATA
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu-0.0.3.dist-info/RECORD
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu-0.0.3.dist-info/WHEEL
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu-0.0.3.dist-info/entry_points.txt
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu-0.0.3.dist-info/metadata.json
/home/chrobert/.local/lib/python3.5/site-packages/sshmenu-0.0.3.dist-info/top_level.txt
chris1984 commented 6 years ago

Fixed it, I added the /home/chrobert/.local/bin to my $PATH and its working now, closing out the issue, thanks for the pointer :)