Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xrdnoya
    Junior Member
    • Apr 2014
    • 1

    #1

    Summary: Troubleshooting for installing samtools in cygwin on Windows 07042014

    Hi, All,

    I am new user to samtools and Linux and in my short experience I found some people are asking same questions as I do, but answers are bits and pieces everywhere. So i think i could sum up some information here and hopefully they are helpful. This is done in 07042014.

    Please ignore this if you are advanced users.

    I tried to install SAMtools in cygwin which is a linux enviornment in Windows 7 . There are a few things you need to consider when you are doing it. The code is as simple as "3" steps as follows, but it is not that simple in cygwins:

    1. "tar xjvf samtools-0.1.19.tar.bz2" (extract it from the package)

    2. "cd samtools-0.1.19" (change directory to the file where the package was unpacked)

    3. "make" (install it)

    There are a few pains in the A word you need to sort out before you can really "make" it.

    1. Pains in A word in extraction:
    a. The bz2 file is usually not in the directory that you are at, and thats why your 1 code is not working. solution: move your downloaded bz2 file into the directory (in windows) or change your own directory to the location where is bz file is (in cygwin).). If you dont know how to change directory in linux, please google that.....
    b. there are different versions of 'xjvf' according to what types of bz file you downloaded, they are not some random names or part of the file name! You might need to search the 'tar' command.

    2. You should be fine here when you made it through the pains in the first steps by knowing basic commands of 'cd'.

    3. Pains in A word in installation:
    a. This is the best part because you think you r almost done by typing in 'make', but we are just getting started. It usually does not work i you have no idea what is going on.
    Solution: try to calm down and look for these lines where said error. usually it is about the system could not find the command/directory and it is interesting that the 'make' package itself is not even installed in cygwin.
    what to do: when packages are told to be missing (system says it can not be found etc.), go the the cygwin install exe in windows, repeat the installation and when the process tells you to choose package (after choosing mirro webpages), choose whatever the cygwin system said not found.
    This includes, in my experiece, make, gcc, lib, zlib, etc, depending on your luck that day. You might have to come back to install more packages again and again because the system will not tell you what is missing until it finds that during process of installing. So whenever got problems just install the missing package.

    b. There was a step this is that you need to modify the make file (Makefile) in the windows where the cygwin was installed. this is needed when the system tells you that: "bam_tview.c:5:20: fatal error: curses.h: No such file or directory".
    Thanks to Richard Finney's post at http://seqanswers.com/forums/showthread.php?t=17173. so go find Makefile, double click and find CFLAGS and DFLAG and modify them like following:

    CFLAGS= -g -Wall -O2 -I/usr/include/ncurses

    DFLAGS= -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log

    ALSO !!!! run "make clean" or remove all the .o (object) files before re-making

    (Richard Finney saved my day that day, thanks a lot).

    After all this my samtools worked and I am sure I will have more problems while using it but I can get started. i hope those above are helpful and we can start sharing samtools in cygwin troubleshooting here so that more people know this.

    Cheers,

    Ray

Latest Articles

Collapse

  • SEQadmin2
    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
    by SEQadmin2



    Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

    Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
    ...
    Yesterday, 09:55 AM
  • SEQadmin2
    New Genomics Technologies Take Aim at Long-Standing Limits
    by SEQadmin2


    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
    ...
    09-28-2026, 10:25 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, Yesterday, 05:39 AM
0 responses
11 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-13-2026, 09:56 AM
0 responses
14 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-09-2026, 11:14 AM
0 responses
27 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 09-29-2026, 09:51 AM
0 responses
77 views
0 reactions
Last Post SEQadmin2  
Working...