thanks mate i managed to install samtools successfully
Seqanswers Leaderboard Ad
Collapse
Announcement
Collapse
No announcement yet.
X
-
I'm having many of the same problems as you all in installing samtools with Cygwin. I have added the changes to makefile as suggested by jmarshall and huyvuong, am using samtools 0.1.9, and running make clean before make.
Still, several lines indicating : undefined reference to '_expl' (or '_logl') are appearing.
Is there something else I'm missing here?
Comment
-
Originally posted by jmarshall View PostThe Cygwin folks changed the way they install ncurses a while back; see http://www.cygwin.com/ml/cygwin-anno.../msg00002.html.
Hence you should add -I/usr/include/ncurses to CFLAGS in the samtools Makefile. This will solve the <curses.h> problem you are running into.
After that, you'll probably find that it fails to link, complaining that expl() and logl() are not defined. You can work around the absence of these C99 functions by adding -Dexpl=exp -Dlogl=log to DFLAGS in the samtools Makefile, though this may have an adverse effect on SNP calling: http://sourceforge.net/mailarchive/m...l.sanger.ac.uk.
With these additions, samtools 0.1.8 can be compiled on Cygwin.
First: Install CEPHES library or only install the ldouble library (here install cephes)
1. Using this package to install cephes.
It's just a bzip2 compressed tar archive.
which still lacks of two code-files: whitebxf.c and whitebx.c under "c9x-complex".
They can be downloaded from github of cephes' master branch.
(You even can complie without these two files, they are just for test.)
2. Before installation, environment var "SAGE_LOCAL" should be specified like the "prefix" var in auto-configure process.
3. run 'spkg-install' to install cephes.
After installation of cephes, you will find libml.a in your-installed-lib dir.
Then, change the makefile of samtools to cover the installed-lib dirs,
replace " -lm" with " -lml" option in make file.(besides the makefile in bcftools dir)
Then make
I haven't made any test of the prog, maybe the correct way should be that include cephes header file (cephes_ldouble.h) to the C code files which include math.h already.
Though I think it can get through the precision problem, and I just installed samtools 0.1.16 using this method.
May it help!
Comment
-
Hi everbody,
In http://download.fedora.redhat.com/pub/epel/6/x86_64/ there are several files .rpm for installation in CentOS including Samtools, Bedtools, bwa, bowtie and others.
Comment
-
Originally posted by jmarshall View PostThe Cygwin folks changed the way they install ncurses a while back; see http://www.cygwin.com/ml/cygwin-anno.../msg00002.html.
Hence you should add -I/usr/include/ncurses to CFLAGS in the samtools Makefile. This will solve the <curses.h> problem you are running into.
After that, you'll probably find that it fails to link, complaining that expl() and logl() are not defined. You can work around the absence of these C99 functions by adding -Dexpl=exp -Dlogl=log to DFLAGS in the samtools Makefile, though this may have an adverse effect on SNP calling: http://sourceforge.net/mailarchive/m...l.sanger.ac.uk.
With these additions, samtools 0.1.8 can be compiled on Cygwin.
I added '-I/usr/include/ncurses' to CFLAGS and '-Dexpl=exp -Dlogl=log to DFLAGS' to DFLAGS in both Makefile and Makefile.mingw. However, I still get the message:
bam_tview.c:5:20: fatal error: curses.h: No such file or directory
compilation terminated.
Makefile:21: recipe for target `bam_tview.o' failed
make: *** [bam_tview.o] Error 1
Any suggestions?
Comment
-
Originally posted by jmarshall View PostThe -Dexpl[etc] flags need to be in action when bam_maqcns.c is compiled. (And in the just-released samtools 0.1.9, also when errmod.c is compiled.) You probably have a faulty bam_maqcns.o lying around from the previous compilation attempts. Remove it.
In fact, whenever you change settings like this in a makefile, it's a good idea to use "make clean" before building again. So try again, typing "make clean" and then "make".
And both ncurse and nurses-dev are installed.
My error message is as follows:
/usr/include/bits/mathcalls.h:101: error: conflicting types for ‘exp’
/usr/include/bits/mathcalls.h:110: error: conflicting types for ‘log’
make[2]: *** [bam_md.o] Error 1
make[2]: Leaving directory `/usr/local/samtools-0.1.18'
make[1]: *** [lib-recur] Error 1
make[1]: Leaving directory `/usr/local/samtools-0.1.18'
make: *** [all-recur] Error 1
Could anyone help me? I have been confused with this problem for a while.
Comment
-
Hi All, I'm a newbie in bioinformatics, and am hoping to compile samtools in Cygwin. I could see that most of the posts are shared by senior members, which is way too difficult to understand. Most of the information is also spread out on the net. Can anyone please write a step by step walk through for newbies like me. It would really useful. Thank you.
Comment
-
In future start a new thread if you are asking a question that is not related to the parent.
A google search found this: http://ftp.riken.jp/sagemath/spkg/up...hes/index.html I am not sure if this is the package you are looking for or if the file is genuine. Use with caution.Last edited by GenoMax; 03-12-2016, 03:04 PM.
Comment
-
thanks
I though that since I was asking about a file given in the post to fix an issue and the link was dead it still my request still counted as being part of the thread. I will post a new thread then. The link that you gave does not have the spkg part of it and is the original code. Thanks for your help.
Comment
-
The spkg file is here: http://old.files.sagemath.org/spkg/a...es-2.8.p1.spkg
Edit: My apologies. I re-merged your question back into the original thread where you had originally asked it for benefit of future users. The new thread you had started has this answer as well.Last edited by GenoMax; 03-12-2016, 02:53 PM.
Comment
Latest Articles
Collapse
-
by seqadmin
The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...-
Channel: Articles
Yesterday, 07:01 AM -
-
by seqadmin
Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...-
Channel: Articles
04-04-2024, 04:25 PM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, 04-11-2024, 12:08 PM
|
0 responses
55 views
0 likes
|
Last Post
by seqadmin
04-11-2024, 12:08 PM
|
||
Started by seqadmin, 04-10-2024, 10:19 PM
|
0 responses
51 views
0 likes
|
Last Post
by seqadmin
04-10-2024, 10:19 PM
|
||
Started by seqadmin, 04-10-2024, 09:21 AM
|
0 responses
45 views
0 likes
|
Last Post
by seqadmin
04-10-2024, 09:21 AM
|
||
Started by seqadmin, 04-04-2024, 09:00 AM
|
0 responses
55 views
0 likes
|
Last Post
by seqadmin
04-04-2024, 09:00 AM
|
Comment