{"id":286,"date":"2006-09-25T14:03:49","date_gmt":"2006-09-25T18:03:49","guid":{"rendered":"http:\/\/vitamin-max.com\/word\/?p=286"},"modified":"2006-10-11T12:11:53","modified_gmt":"2006-10-11T16:11:53","slug":"compile-ldhat-02-on-intel-mac","status":"publish","type":"post","link":"https:\/\/vitamin-max.com\/word\/2006\/09\/compile-ldhat-02-on-intel-mac\/","title":{"rendered":"Compile LDhat 0.2 on Intel Mac"},"content":{"rendered":"<p><a href=\"http:\/\/www.stats.ox.ac.uk\/~mcvean\/LDhat\/instructions.html\">LDhat<\/a> is a package for recombination detection. It is written in C and no GUI is available.<\/p>\n<p>The official website provide DOS executables, which I suppose they meant Windows command line executables. But they also provided source package with makefile. But if you make, it will fail. It will tell you it can&#8217;t find malloc.h. But after a little bit <a href=\"http:\/\/forums.macosxhints.com\/showthread.php?t=2023\">google<\/a>, malloc.h turns out to be obsolete.\u00a0and\u00a0&#8220;including stdlib.h should take care of what malloc.h used to handle&#8221;. So you will need to comment out the\u00a0include line in two files you will see when you make, by using &#8220;\/* \u00a0*\/&#8221;. After that it would compile just fine.<\/p>\n<p>Enjoy life without Windows again.<\/p>\n<p>UPDATE: The LDhat I compiled did not function properly. Even if I have malloc.h linked to \/usr\/include, convert will quit because of segment fault while reading sequences. This is not because of the sequence file because it quit reading sample data included with the package.<\/p>\n<p>UPDATE2: LDhat compiled for Intel Mac this way seems working, except\u00a0 it seems sometimes it could not load all the sequence and segment fault. It seems this happens when there are 8 sequence types\/sequences. Other than that, it is working for me.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LDhat is a package for recombination detection. It is written in C and no GUI is available. The official website provide DOS executables, which I suppose they meant Windows command line executables. But they also provided source package with makefile. But if you make, it will fail. It will tell you it can&#8217;t find malloc.h.&hellip; <a class=\"more-link\" href=\"https:\/\/vitamin-max.com\/word\/2006\/09\/compile-ldhat-02-on-intel-mac\/\">Continue reading <span class=\"screen-reader-text\">Compile LDhat 0.2 on Intel Mac<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[10,9],"tags":[],"class_list":["post-286","post","type-post","status-publish","format-standard","hentry","category--biological-science","category--apple","entry"],"_links":{"self":[{"href":"https:\/\/vitamin-max.com\/word\/wp-json\/wp\/v2\/posts\/286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vitamin-max.com\/word\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vitamin-max.com\/word\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vitamin-max.com\/word\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vitamin-max.com\/word\/wp-json\/wp\/v2\/comments?post=286"}],"version-history":[{"count":0,"href":"https:\/\/vitamin-max.com\/word\/wp-json\/wp\/v2\/posts\/286\/revisions"}],"wp:attachment":[{"href":"https:\/\/vitamin-max.com\/word\/wp-json\/wp\/v2\/media?parent=286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vitamin-max.com\/word\/wp-json\/wp\/v2\/categories?post=286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vitamin-max.com\/word\/wp-json\/wp\/v2\/tags?post=286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}