{"id":665,"date":"2013-03-16T13:34:50","date_gmt":"2013-03-16T05:34:50","guid":{"rendered":"http:\/\/www.hzaumycology.com\/chenlianfu_blog\/?p=665"},"modified":"2013-06-26T22:00:24","modified_gmt":"2013-06-26T14:00:24","slug":"allpaths-lg%e7%9a%84%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"http:\/\/www.chenlianfu.com\/?p=665","title":{"rendered":"ALLPATHS-LG\u7684\u5b89\u88c5"},"content":{"rendered":"<h1>ALLPATHS-LG\u7684\u5b89\u88c5\u6b65\u9aa4<\/h1>\n<p>1. \u4e0b\u8f7d<a href=\"http:\/\/gmplib.org\/\">GMP<\/a>\u5e76\u5b89\u88c5\u3002\u53ef\u4ee5\u8df3\u8fc71\uff0c2\uff0c3\u6b65\u3002<\/p>\n<pre>\u4e0b\u8f7d\u7684\u538b\u7f29\u5305\u4e3alz\u683c\u5f0f\uff0c\u5fc5\u987b\u4f7f\u7528lzip\u89e3\u538b\u7f29\u3002\r\n$ sudo yum install lzip\r\n$ lzip -d gmp-5.1.1.tar.lz\r\n$ tar xvf gmp-5.1.1.tar\r\n$ cd gmp-5.1..1\r\n$ .\/configure\r\n$ make\r\n$ sudo make install<\/pre>\n<p>2. \u4e0b\u8f7d<a href=\"http:\/\/www.mpfr.org\/\">MPFR<\/a>\u5e76\u5b89\u88c5\u3002<br \/>\n3. \u4e0b\u8f7d<a href=\"http:\/\/www.multiprecision.org\/index.php?prog=mpc&amp;page=download\">MPC<\/a>\u5e76\u5b89\u88c5<br \/>\n4. \u4e0b\u8f7d<a href=\"http:\/\/gcc.gnu.org\/\">gcc<\/a>\u5e76\u5b89\u88c5\u3002<\/p>\n<pre>\u76f4\u63a5\u5728\u6e90\u76ee\u5f55\u4e2dconfigure\u5e76make\u6613\u53d1\u751f\u9519\u8bef\uff1b\r\n\u82e5\u6709\u9519\u8bef\"fatal error: gnu\/stubs-32.h \u6ca1\u6709\u90a3\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\",\u5219\u9700\u5b89\u88c5glibc-\r\ndevel.i686\uff08centos6.3\uff09\u6216glibc-devel.i386\uff08centos5.8\uff09\u3002\r\n\r\n$ sudo yum install glibc-devel.i686\r\n$ tar -jxvf gcc-4.7.2.tar.bz2\r\n$ cd gcc-4.7.2\r\n$ .\/contrib\/download_prerequisites\r\n\u4e0b\u8f7d\u4e0a\u8ff0\u7684\u4e09\u4e2a\u6240\u9700\u7684\u5e93\uff0c\u5e76\u521b\u9020\u94fe\u63a5\u3002\u56e0\u6b64\u4e0d\u9700\u8981\u4e00\u4e2a\u4e2a\u4e0b\u8f7d\u5e76\u5b89\u88c5\u90a3\u4e48\u9ebb\u70e6\u3002\r\n\r\n$ cd ..\/\r\n$ mkdir gcc-build\r\n$ cd gcc-build\r\n$ ..\/gcc-4.7.2\/configure --prefix=\/opt\/gcc-4.7.2\r\n\u63a8\u8350\u4e0d\u5b89\u88c5\u5728\u9ed8\u8ba4\u8def\u5f84\uff0c\u4e0d\u7136\u4e0d\u5b9c\u5378\u8f7d\u3002\u73b0\u5728gcc\u53d6\u6d88\u4e86make uninstall\u547d\u4ee4\u3002\u9ed8\u8ba4\u8def\u5f84\r\n\u662f\/usr\/local;\u7cfb\u7edf\u81ea\u5e26\u7684gcc\u8def\u5f84\u4e3a\/usr\u3002\r\n\r\n$ make -j 8\r\n\u591a\u7ebf\u7a0b\u8fd0\u884c\uff0c\u6570\u5b57\u4f9d\u673a\u5668\u914d\u7f6e\u800c\u5b9a\uff0c\u4e0d\u7136\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u6781\u5ea6\u8017\u8d39\u65f6\u95f4\u3002\r\n\r\n$ sudo make install\r\n$ sudo make clean (optional)\r\n\r\n$ vim \/etc\/ld.so.conf.d\/gcc-4.7.2.x86_64.conf\r\n\u5728\u6587\u672c\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4e24\u884c\r\n\/opt\/gcc-4.7.2\/lib\r\n\/opt\/gcc-4.72\/lib64\r\n$ sudo ldconfig\r\n\u5c06\u5e93\u6587\u4ef6\u52a0\u5165\u5230\u8bbf\u95ee\u8def\u5f84,\u5e76\u66f4\u65b0\u5e93\u3002<\/pre>\n<p>5. \u4e0b\u8f7d<a href=\"http:\/\/www.broadinstitute.org\/software\/allpaths-lg\/blog\/?page_id=12\">ALLPATHS-LG<\/a>\u5e76\u5b89\u88c5\u3002<\/p>\n<pre>\u65b0\u7248\u7684ALLPATHS-LG\u9700\u6c42gcc 4.7.0\u53ca\u4ee5\u4e0a\u7248\u672c\uff0c\u5b89\u88c5gcc 4.7.0\u53ca\u4ee5\u4e0a\u7248\u672c\u53c8\u9700\u8981gmp\uff0c\r\nmpfr\u548cmpc\u5177\u6709\u8f83\u9ad8\u7684\u7248\u672c\u3002\r\n\r\n$ tar zxvf LATEST_VERSION.tar.gz\r\n$ cd allpathslg-?????\r\n$ .\/configure --prefix=\/home\/chenlianfu\/programs\/ALLPATHS-LG\/ CXX\r\n=\/opt\/gcc-4.7.2\/bin\/c++ CXXPP=\/opt\/gcc-4.7.2\/bin\/cpp\r\n$ make\r\n$ make install<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ALLPATHS-LG\u7684\u5b89\u88c5\u6b65\u9aa4 1. \u4e0b\u8f7dGMP\u5e76\u5b89\u88c5\u3002\u53ef\u4ee5\u8df3\u8fc71\uff0c2\uff0c3\u6b65\u3002 &hellip; <a href=\"http:\/\/www.chenlianfu.com\/?p=665\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[33],"_links":{"self":[{"href":"http:\/\/www.chenlianfu.com\/index.php?rest_route=\/wp\/v2\/posts\/665"}],"collection":[{"href":"http:\/\/www.chenlianfu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.chenlianfu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.chenlianfu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.chenlianfu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=665"}],"version-history":[{"count":26,"href":"http:\/\/www.chenlianfu.com\/index.php?rest_route=\/wp\/v2\/posts\/665\/revisions"}],"predecessor-version":[{"id":667,"href":"http:\/\/www.chenlianfu.com\/index.php?rest_route=\/wp\/v2\/posts\/665\/revisions\/667"}],"wp:attachment":[{"href":"http:\/\/www.chenlianfu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.chenlianfu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=665"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.chenlianfu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}