MTE. But OP's first link has instructions on export PATH. Should work, but doesn't. Curious.
I installed prokka following the instruction provided by the author that you can fin here.
I installed all the dependencies as nicely explained here
However when I type
prokka
for testing it, i get
manager@bl8vbox[Documents]prokka
zsh: command not found: prokka
These are my session information
manager@bl8vbox[Documents]ls
barrnap-0.5 barrnap-0.5.tar.gz hmmer-3.1b1 hmmer-3.1b1.tar.gz minced-master minced-master.zip prodigal.v2_50.tar.gz prodigal.v2_60.tar.gz prokka-1.10 prokka-1.10.tar.gz
manager@bl8vbox[Documents] uname -a
Linux bl8vbox 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Do you have any idea what I do wrong?
3 answers
Linux / UNIX: Command Not Found Error and Solution
http://www.cyberciti.biz/faq/linux-unix-command-not-found-error-and-how-to-get-rid-of-it/
I think the issue is with the first set of instructions where you tried to set the PATH variable and likely overwrote the variable. Getting "zsh: command not found" when trying to execute a command seems to indicate that the shell can't find any command (note that prokka is written in Perl and has nothing to do with the error message).
I've never used biolinux, but you probably want to extend the PATH, not overwrite it, and this usually looks like:
export PATH=$PATH:/some/bio/dep
and not
export PATH=/some/bio/dep
I'm guessing something like the latter command was done, and it's no big deal, you can fix it by opening another shell (unless you edited your shell configuration).
I think I managed to fix it.
On Ubuntu the file that has to be changed is /etc/environemt. In this file are listed the PATHS that are used.
I still did not manage to get the change in my path permanent, so everytime I have to
$ source /etc/environment
Update
I managed to keep the modified PATH permanent.
I simply did what I reported before and then I restarted the my system.
Thanks for your help.
The command to add a destination to your PATH and also to the current shell instance is:
echo 'export PATH=$PATH:/usr/local/bin' >> ~/.bash_profile && source ~/.bash_profile
Log in to answer this question.
Hi,
Could you maybe give the output of
echo $PATH | tr ":" "\n" | grep -i "prokka"please? Thank you!set the path variable for prokka bin directory using
export@RamsRS, thanks very much for your comment.
This is the result:
Basically, nothing...
Thanks all for the reply and sorry for the late answer.
As you all got right the program is not in my PATH. But I guess I am to inexpert to fix this problem.
I added the followign directory to the file .bashrc:
I added the location above. Then I followed the isntruction here and I did the following:
Moreover if I quit the session and look for my avaialble path in a new session this is the result:
So prokka is not in.
Any suggestion how I can add permanently more PATH?
It looks like the shell prompt display line in your
~/.zshrchas some problem. If you know how to find that line, comment it out. Else, paste your~/.zshrchere and I'll help you out.It would seem that the new terminal session
PATHholds a pointer toprokka, though I wonder why you're running commands assudo, especially the~/.zshrcedit. You might wanna edit~/.zshrcas a normal non super user.EDIT: Updated to reflect the fact that @dago seems to be on zsh and not bash.