0

Here is the command I have typed in order. I expect it to run my "simple hello work" program.

vagrant@vagrant-ubuntu-trusty-64:~$ ls
    filename.zip  tester
    vagrant@vagrant-ubuntu-trusty-64:~$ file -b tester
    ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), statically linked, not stripped
    vagrant@vagrant-ubuntu-trusty-64:~$ tester
    No command 'tester' found, did you mean:
     Command 'gtester' from package 'libglib2.0-dev' (main)
     Command 'jester' from package 'jester' (universe)
     Command 'testr' from package 'testrepository' (main)
    tester: command not found
2
  • 2
    Have you tried "./tester"?
    – Yeti
    Jun 21, 2019 at 11:02
  • thats it :-| create answer and i will accept, i thought you could just type command Jun 21, 2019 at 11:08

1 Answer 1

2

Your binary is not in the $PATH variable/environment and therefor not known to the shell.

You need either to call it by using

./tester

or add it to the path

set PATH=$PATH:/path/to/tester

To make the the change to the path permanent put this line into your ~/.bashrc

export PATH=$PATH:/path/to/tester

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .