This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar xvjf samtools-0.1.19.tar.bz2 | |
cd samtools-0.1.19 | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=$PATH:/directory/samtools-0.1.19 |
Hi.
ReplyDeleteI've successfully downloaded the current Samtools version. I tried to extract it using the command you gave above but it didn't work. This is what appeared.
$ tar xvjf samtools-0.1.19.tar.bz2
tar (child): samtools-0.1.19.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
I'm a beginner in this field so I would appreciate if you could give me a more detailed instruction for installing SAMTOOLS.
Thanks
Hi Mark,
DeleteIt looks like you are not in the same directory as the samtools-0.1.19.tar.bz2 file that you downloaded. Make sure you cd to the same directory and can see the samtools-0.1.19.tar.bz2 file in your current directory (the ls command is useful for that). Then run the tar xvjf samtools-0.1.19.tar.bz2 command. Hope this helps!
Hi.
DeleteActually I'm using cygwin to install samtools on my pc (windows7). I encountered some problem following your steps and i figured out that maybe it's because I'm using cygwin. Nonetheless, I was able to extract it and change directory by getting some ideas from your answers. Now, my problem is this: When I proceed to make these appear
$ make
make[1]: Entering directory `/home/ahnslab/samtools-0.1.19'
make[2]: Entering directory `/home/ahnslab/samtools-0.1.19'
make[2]: Nothing to be done for `lib'.
make[2]: Leaving directory `/home/ahnslab/samtools-0.1.19'
make[2]: Entering directory `/home/ahnslab/samtools-0.1.19/bcftools'
make[2]: Nothing to be done for `lib'.
make[2]: Leaving directory `/home/ahnslab/samtools-0.1.19/bcftools'
make[2]: Entering directory `/home/ahnslab/samtools-0.1.19/misc'
make[2]: Nothing to be done for `lib'.
make[2]: Leaving directory `/home/ahnslab/samtools-0.1.19/misc'
gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_tview_curses.c -o bam_tview_curses.o
bam_tview_curses.c:5:20: fatal error: curses.h: No such file or directory
compilation terminated.
Makefile:24: recipe for target `bam_tview_curses.o' failed
make[1]: *** [bam_tview_curses.o] Error 1
make[1]: Leaving directory `/home/ahnslab/samtools-0.1.19'
Makefile:27: recipe for target `all-recur' failed
make: *** [all-recur] Error 1
I don't know now how to proceed. Hope you could still help me.
Thank you.
Mike,
DeleteYou have reached the limits of my knowledge on installing samtools. I am not familiar with installing on Windows via cygwin. My guess is that Winodws does not have the correct compiler to make the samtools package, but I could be wrong. Best wishes getting this up and running. When you get it figured out, please leave a comment detailing how you got it working.
I had the some problem today trying to install samtools 0.1.19 on a ubuntu machine. It turns out that the ncurses library is not installed by default.
DeleteOn Debian/Ubuntu, install the packages libncurses5-dev and libncursesw5-dev:
sudo apt-get install libncurses5-dev libncursesw5-dev
On Fedora/RedHat/CentOS, install the packages ncurses-devel and ncurses:
sudo yum install ncurses-devel ncurses
then
make clean
make
Worked for me. Hope that helps.
Thanks for the input, sunnyjoy!
Deletesome internet tidying... on ubuntu you can just install from the repositories now (currently v0.1.19):
Deletesudo apt-get install samtools
Hi Admin! I hope you are still manning this old post? Ive just installed Samtools on my Mac OsX and I'm struggling to see what I'm doing wrong. So I cd to samtools, then "ls" to make sure I'm good and when I put in make it a whole load of stuff comes up and ends in nothing can be done for "lib". make[1]: *** [bam_color.o] Error 1
ReplyDeletemake: *** [all-recur] Error 1
It allows me to enter export PATH=$PATH:/directory/samtools-0.1.19
but when I source.bashrc it says command not found.
Whats happening? Im very new to bioinformatics. Any suggestions greatly appreciated :)
Hi Meri, not exactly sure what is going wrong. I know this works with UNIX, just not sure why its not going smoothly for your Mac. I would maybe try installing an older version. Let me know if you figure things out. Best wishes and thanks for stopping by.
DeleteHi Admin,
ReplyDeleteI've successfully installed the SamTools and compiled it per the "make" command, but I can't seem to find my .bashrc file. Is this something that should already be in my home directory, or do I have to make one if its not there. Also, should i make it in the same sub-directory that SamTools is present in, or is it okay if I make it in a more general parent directory.
Thanks for your help!
Dan