Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem installing/using seqtk #27

Closed
azela82 opened this issue Feb 16, 2014 · 8 comments
Closed

problem installing/using seqtk #27

azela82 opened this issue Feb 16, 2014 · 8 comments

Comments

@azela82
Copy link

azela82 commented Feb 16, 2014

I am new to seqtk, and installed it following the directions of a previous thread. I am using a MacOSX, and in my terminal typed the following:

$ git clone https://github.com/lh3/seqtk.git
$ cd seqtk
$ make

however, I get the following error message: "-bash: make: command not found"

I would appreciate some advice on what I may be doing wrong or what I can do to use seqtk. Thank you

@vsbuffalo
Copy link
Contributor

Hi azela82,

This is likely because you do not have Xcode installed on your Mac (and if you do, it's because you haven't installed the command line tools). These are some good directions here: http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools

@azela82
Copy link
Author

azela82 commented Feb 16, 2014

Hi Vsbuffalo,

Thank you for your quick reply! Actually, I did install the newest version of Xcode before I installed seqtk because I read somewhere I needed it to work properly. I read through the link you sent, but seems that if I have Xcode it should work?

@vsbuffalo
Copy link
Contributor

You also need to install the command line tools too — see the directions.

@azela82
Copy link
Author

azela82 commented Feb 17, 2014

Yes, I see now, thank you that worked!

However, now I have another problem. I tried to use the following command to create reverse compliments of a fasta file

seqtk seq -r Undetermined_S0_L001_R1_001.trim.contigs.fasta > out.fasta

however I got the following error: "-bash: seqtk: command not found"

I am also pretty new to using terminal commands, so there may be something very basic that I am doing wrong that I am unaware.

@boulund
Copy link

boulund commented Feb 17, 2014

Glad you got the compilation ("make") to work properly!

From the error message you got you can glean that the shell ("bash") cannot find the executable file "seqtk" in your environment. For it to find it (if it's in your current directory) you can type:
$ ./seqtk {commands}
Note the "./" that tell the shell that you want to runt the file called "seqtk" in your current directory (the dot "." represents the current directory).
Hope this helps.
If you want to run seqtk from another directory you might have to write the entire path to the executable to run it, e.g.:
$ /home/azela82/downloads/seqtk_compile_directory/seqtk {commands}

Another way of achieving this is to put the directory in which the seqtk executable exists into your PATH variable. Either put a link to it in your ~/bin directory (if there isn't one in your home directory you can create one) or edit your .bashrc file to include the directory in which your seqtk executable resides to the environment PATH variable. When seqtk is available on PATH you can type:
$ seqtk {commands}
from any directory, like all other installed applications.

@azela82
Copy link
Author

azela82 commented Feb 17, 2014

Thank you so much for the clear instructions, it worked! =)

@lh3
Copy link
Owner

lh3 commented Feb 26, 2014

Thank boulund and Vince for the help with this issue.

@jibbah
Copy link

jibbah commented Jul 9, 2016

Hi!

I will post my message here as I also encountered a problem in the compilation. I followed the instructions given on ReadMe file, and I get the following message when entering the command make:
"gcc -g -Wall -O2 -Wno-unused-function seqtk.c -o seqtk -lz -lm
seqtk.c:31:18: fatal error: zlib.h: No such file or directory
^
compilation terminated."
I am on Ubuntu 14.04.3 and I have zlib installed.

Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants