I'm trying to use velvet optimiser, but for some reason I get the message: "Unable to find velveth, please ensure that velvet executables are in your PATH"", despite the fact that I copied velveth to the same directory.
I searched answers on the web for hours, and so far this is the only answer to the problem I found: http://www.dolphing.com/author/dolphing/page/139, yet I failed to fully understand/implement the suggested solution there (where should I write the line PATH=$PATH, and what exactly should I write if velveth is under ~\velvet and velvetOptimiser is under ~\velvetOptimiser?)
Sorry for the stuped question but I'm pretty newbie to both velvet and Linux.
There is already an accepted answer but this is a very common issue and I want to show that there are numerous possible solutions. Also, I think it's better to edit your PATH rather than creating links in some root directory.
Here's a couple of reasons why:
1) You have to be root to create these links, so it's not a general solution.
2) Those links will hang around even if you move or delete the executables those links point to.
I find it easier to update a path in my .bashrc when I install/update a program or just append something to my PATH from the command line if I need to edit the PATH for just one session. All you have to do is close the shell and the changes go away! Of course, it's easy to make them permanent too.
I know that sometimes it seems impossible to avoid creating links this way when configuring/compiling software when a build script doesn’t find what it wants but you can almost always solve that problem as well by editing your PATH or the Makefile/configure script. To that end, you could also just edit the one line in hwrap.pm to the full path to your velveth. Both of these approaches obviate the need to mess with your root directories.
Hi SES, +1 for your additions :-). I opted for making links to /usr/local/bin (root priviledges required) because then it works for all users (/usr/local/bin is in a users PATH by default). If that is not important I would extend PATH in bashrc indeed.
What is your output of
/home/ohad/per15/bin:/usr/lib/lightdm/lightdm:usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Please make this post a "Question" and not "Tool"