{"id":327,"date":"2012-08-30T11:42:14","date_gmt":"2012-08-30T15:42:14","guid":{"rendered":"http:\/\/zhanxw.com\/blog\/?p=327"},"modified":"2015-06-16T01:52:02","modified_gmt":"2015-06-16T05:52:02","slug":"%e5%9c%a8solaris%e4%b8%8b%e5%ae%89%e8%a3%85r","status":"publish","type":"post","link":"https:\/\/zhanxw.com\/blog\/2012\/08\/%e5%9c%a8solaris%e4%b8%8b%e5%ae%89%e8%a3%85r\/","title":{"rendered":"\u5728Solaris\u4e0b\u5b89\u88c5R"},"content":{"rendered":"<p><span style=\"color: #ff0000;\">2015-06-16 \u66f4\u65b0\uff1a<\/span><br \/>\n<span style=\"color: #ff0000;\"> \u8fd9\u91cc\u8bb2\u7684\u65b9\u6cd5\u53ef\u80fd\u5df2\u7ecf\u4e0d\u7ba1\u7528\u4e86\uff0c\u81f3\u5c11\u5728\u6211\u4f7f\u7528Solaris 10 \u7684VirtualBox Image\u7684\u65f6\u5019\uff0c\u4e0b\u9762\u7684\u65b9\u6cd5\u884c\u4e0d\u901a\u3002<\/span><\/p>\n<p>Install Solaris 10 and install R under Solaris<br \/>\n\u6700\u8fd1\u7684\u5199\u7684\u4e00\u4e2aR package <a title=\"vcf2geno package\" href=\"http:\/\/cran.r-project.org\/web\/packages\/vcf2geno\/index.html\">vcf2geno<\/a>\u4e0d\u80fd\u5728Solaris 10 \u4e0b\u7f16\u8bd1\u3002<br \/>\n\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u51b3\u5b9a\u91cd\u590dCRAN\u4e0aSolaris 10\u7684<a title=\"CRAN Check Flavor\" href=\"http:\/\/cran.r-project.org\/web\/checks\/check_flavors.html\" target=\"_blank\">\u6d4b\u8bd5\u73af\u5883<\/a>\u3002<br \/>\n\u4e0b\u9762\u5199\u4e2a\u6d41\u6c34\u8d26<\/p>\n<p>1.\u5b89\u88c5Virtual Box<br \/>\n\u4e0b\u8f7d\uff0c\u5b89\u88c5\u3002<\/p>\n<p>2.\u5b89\u88c5Solaris 10 \u548c Guest OS<br \/>\n\u4e00\u5b9a\u8981\u6ce8\u610f\u7684\u662f\u624b\u52a8\u5206\u533a\uff0c\u628a\/tmp\u7684\u5bb9\u91cf\u8bbe\u7f6e\u52305G\u4ee5\u4e0a\u3002\u4e0d\u7136\u9ed8\u8ba4\u7684\/tmp\u53ea\u6709512M\uff0c\u8fd9\u6837\u5c31\u4e0d\u65b9\u4fbf\u5b89\u88c5Solaris Studio \uff08\u7b2c3\u6b65\uff09\u3002<br \/>\n\u5b89\u88c5virtualBox\u7684Guest OS \u8f6f\u4ef6\u540e\uff0cSolaris\u7684\u5c4f\u5e55\u5206\u8fa8\u7387\u589e\u52a0\u3002<\/p>\n<p>3.\u5b89\u88c5Solaris Studio 12.3<br \/>\n\u4e0b\u8f7d\uff0c\u89e3\u538b\uff0c\u5b89\u88c5 \uff08\u5c31\u662f\u7279\u522b\u6162\uff09<\/p>\n<p>4.\u5b89\u88c5OpenSolaris<br \/>\nSolaris\u91cc\u9762\u6ca1\u6709ubuntu\u7684apt\u548cfedora\u7684yum\uff0c\u4f46\u662f\u6709\u4e2a\u7c7b\u4f3c\u7684\u8f6f\u4ef6\u53eb\u505aOpenCSW <a title=\"OpenCSW\" href=\"http:\/\/www.opencsw.org\/\" target=\"_blank\">Link<\/a>.<br \/>\n\u53c2\u8003OpenCSW\u7684\u624b\u518c<a title=\"Getting Start Guide\" href=\"http:\/\/www.opencsw.org\/manual\/for-administrators\/getting-started.html\" target=\"_blank\">Getting Start<\/a>.<br \/>\n\u7136\u540e\u7528pkgutil\u5b89\u88c5tetex, gcc4g++, iconv, readline<\/p>\n<p>5.\u4e0b\u8f7dR<br \/>\n\u53bbR\u7684\u4e3b\u9875\u4e0b\u8f7d\u6e90\u4ee3\u7801\uff0c\u7136\u540e\u89e3\u538b<\/p>\n<p>6.\u914d\u7f6e\u73af\u5883\u53c2\u6570\uff0c\u5b89\u88c5<br \/>\n<code><br \/>\nexport CC=suncc<br \/>\nexport CFLAGS=\"-xO5 -xc99 -xlibmil -nofstore\"<br \/>\nexport CPICFLAGS=-Kpic<br \/>\nexport F77=sunf95<br \/>\nexport FFLAGS=\"-O5 -libmil -nofstore\"<br \/>\nexport FPICFLAGS=-Kpic<br \/>\nexport CXX=\"sunCC -library=stlport4\"<br \/>\nexport CXXFLAGS=\"-xO5 -xlibmil -nofstore -features=tmplrefstatic\"<br \/>\nexport CXXPICFLAGS=-Kpic<br \/>\nexport FC=sunf95<br \/>\nexport FCFLAGS=$FFLAGS<br \/>\nexport FCPICFLAGS=-Kpic<br \/>\nexport LDFLAGS=-L\/opt\/sunstudio12.1\/rtlibs\/amd64<br \/>\nexport SHLIB_LDFLAGS=-shared<br \/>\nexport SHLIB_CXXLDFLAGS=-G<br \/>\nexport SHLIB_FCLDFLAGS=-G<br \/>\nexport SAFE_FFLAGS=\"-O5 -libmil\"<\/code><\/p>\n<p>export CPPFLAGS=&#8217;-I\/opt\/csw\/include -I\/opt\/csw\/include\/readline&#8217;<br \/>\nexport LDFLAGS=&#8217;-L\/opt\/sunstudio12.1\/rtlibs\/amd64 -L\/opt\/csw\/lib&#8217;<\/p>\n<p>export PATH=\/usr\/xpg4\/bin:$PATH<br \/>\nexport PATH=\/usr\/sfw\/bin\/:$PATH<\/p>\n<p>\u4e4b\u540e\u6211\u4eec\u4f9d\u6b21\u6267\u884c\uff1a<br \/>\n.\/configure<br \/>\ngmake #\uff08Solaris\u4e0b\u9762\u7684GNU make\uff09<br \/>\ngmake install<\/p>\n<p>\u7ecf\u9a8c\uff1a<\/p>\n<ol>Solaris\u4e0b\u81ea\u5e26\u7684\u8f6f\u4ef6\u5f88\u5c11\uff0c\u5e38\u7528\u8f6f\u4ef6\u8981\u5230OpenCSW\u4e0b\u8f7d<\/ol>\n<ol>Solaris\u7684\u8def\u5f84\u8bbe\u7f6e\u548cLinux\u5f88\u4e0d\u540c\uff0c\u4e0d\u5728\/usr\/bin, \/usr\/local\/bin\u7b49\u7b49\u3002\u8fd9\u65f6\u5019\u53ef\u4ee5\u7528glocate\u6765\u5feb\u901f\u67e5\u627e\uff0c \u89c1\u30102\u3011<\/ol>\n<p>\u4e3b\u8981\u53c2\u8003\uff1a<br \/>\n\u30101\u3011http:\/\/cran.r-project.org\/doc\/manuals\/R-admin.html#Solaris<br \/>\n\u30102\u3011Solaris\u4e0b\u7684locate\u5de5\u5177. <a title=\"Link\" href=\"http:\/\/blog.ronanfoucher.fr\/?p=198\" target=\"_blank\">Link<\/a><br \/>\n\u30103\u3011http:\/\/www.opencsw.org\/get-it\/packages\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2015-06-16 \u66f4\u65b0\uff1a \u8fd9\u91cc\u8bb2\u7684\u65b9\u6cd5\u53ef\u80fd\u5df2\u7ecf\u4e0d\u7ba1\u7528\u4e86\uff0c\u81f3\u5c11\u5728\u6211\u4f7f\u7528Solaris 10 \u7684VirtualBox Image\u7684\u65f6\u5019\uff0c\u4e0b\u9762\u7684\u65b9\u6cd5\u884c\u4e0d\u901a\u3002 Install Solaris 10 and install R under Solaris \u6700\u8fd1\u7684\u5199\u7684\u4e00\u4e2aR package vcf2geno\u4e0d\u80fd\u5728Solaris 10 \u4e0b\u7f16\u8bd1\u3002 \u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u51b3\u5b9a\u91cd\u590dCRAN\u4e0aSolaris 10\u7684\u6d4b\u8bd5\u73af\u5883\u3002 \u4e0b\u9762\u5199\u4e2a\u6d41\u6c34\u8d26 1.\u5b89\u88c5Virtual Box \u4e0b\u8f7d\uff0c\u5b89\u88c5\u3002 2.\u5b89\u88c5Solaris 10 \u548c Guest OS \u4e00\u5b9a\u8981\u6ce8\u610f\u7684\u662f\u624b\u52a8\u5206\u533a\uff0c\u628a\/tmp\u7684\u5bb9\u91cf\u8bbe\u7f6e\u52305G\u4ee5\u4e0a\u3002\u4e0d\u7136\u9ed8\u8ba4\u7684\/tmp\u53ea\u6709512M\uff0c\u8fd9\u6837\u5c31\u4e0d\u65b9\u4fbf\u5b89\u88c5Solaris Studio \uff08\u7b2c3\u6b65\uff09\u3002 \u5b89\u88c5virtualBox\u7684Guest OS \u8f6f\u4ef6\u540e\uff0cSolaris\u7684\u5c4f\u5e55\u5206\u8fa8\u7387\u589e\u52a0\u3002 3.\u5b89\u88c5Solaris Studio 12.3 \u4e0b\u8f7d\uff0c\u89e3\u538b\uff0c\u5b89\u88c5 \uff08\u5c31\u662f\u7279\u522b\u6162\uff09 4.\u5b89\u88c5OpenSolaris Solaris\u91cc\u9762\u6ca1\u6709ubuntu\u7684apt\u548cfedora\u7684yum\uff0c\u4f46\u662f\u6709\u4e2a\u7c7b\u4f3c\u7684\u8f6f\u4ef6\u53eb\u505aOpenCSW Link. \u53c2\u8003OpenCSW\u7684\u624b\u518cGetting Start. \u7136\u540e\u7528pkgutil\u5b89\u88c5tetex, gcc4g++, iconv, readline 5.\u4e0b\u8f7dR \u53bbR\u7684\u4e3b\u9875\u4e0b\u8f7d\u6e90\u4ee3\u7801\uff0c\u7136\u540e\u89e3\u538b 6.\u914d\u7f6e\u73af\u5883\u53c2\u6570\uff0c\u5b89\u88c5 export CC=suncc [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[45,85,86],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-sysadmin","tag-r","tag-solaris","tag-virtualbox"],"_links":{"self":[{"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":0,"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/posts\/327\/revisions"}],"wp:attachment":[{"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/media?parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/categories?post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/tags?post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}