{"id":871,"date":"2013-01-28T05:45:08","date_gmt":"2013-01-27T20:45:08","guid":{"rendered":"https:\/\/ocse2.com\/?p=871"},"modified":"2013-01-28T06:36:23","modified_gmt":"2013-01-27T21:36:23","slug":"dakota-install-on-dexcs2012-for-openfoamr","status":"publish","type":"post","link":"https:\/\/ocse2.com\/?p=871","title":{"rendered":"DAKOTA Install on DEXCS2012 for OpenFOAM(R)"},"content":{"rendered":"<p><a href=\"http:\/\/dakota.sandia.gov\/index.html\">DAKOTA<\/a> \u3068\u3044\u3046\u306e\u306f\u3001\u4eca\u5e74\u8fba\u308a\u3001\u305d\u308d\u305d\u308d\u30d6\u30ec\u30fc\u30af\u3059\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u6700\u9069\u5316\u30c4\u30fc\u30eb\u3002\u6b21\u56de\u306e<a href=\"http:\/\/opencae.gifu-nct.ac.jp\/pukiwiki\/index.php?%C2%E8%A3%B1%A3%B9%B2%F3%CA%D9%B6%AF%B2%F1%A1%A7H250216\">\u30aa\u30fc\u30d7\u30f3CAE\u52c9\u5f37\u4f1a\uff20\u5c90\u961c<\/a>\u3067\u3082\u7d39\u4ecb\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u7ba1\u7406\u4eba\u3082\u6570\u5e74\u524d\u306b\u89e6\u3063\u3066\u4ee5\u6765\u306a\u306e\u3067\u3001\u6700\u65b0\u7248\u3092\u8a66\u3057\u3066\u307f\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3057Linux\u7248\u306e\u30d0\u30a4\u30ca\u30ea\u306fredHat\u7528\u3057\u304b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u304a\u3089\u305a\u3001DEXCS2012\uff08OS\u306fMint13\/ubuntu-12.04\uff09\u4e0a\u3067\u306f\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u6311\u6226\u3002\u4e00\u7b4b\u7e04\u3067\u3044\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u3053\u3053\u306b\u8981\u70b9\u3092\u8a18\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u57fa\u672c\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u540c\u68b1\u306eINSTALL\u3068\u3044\u3046\u30e1\u30e2<\/p>\n<blockquote><p>0) Install CMake 2.8.4 (or later) and ensure it is in your $PATH<br \/>\n1) gunzip Dakota_releasename.src.tar.gz<br \/>\n2) tar xvf Dakota_releasename.src.tar<br \/>\n3) mkdir BuildDakota; cd BuildDakota<br \/>\n4) export PATH=$PATH:.<br \/>\n5) cmake [cmake options] ..\/Dakota<br \/>\n* generate platform-specific Makefiles with cmake<br \/>\n* see NOTE below regarding specifying location of Boost<br \/>\n6) make [-j#]<br \/>\n* DAKOTA supports concurrent build processes<br \/>\n7) make install<br \/>\n* optional: requires write privilege in CMAKE_INSTALL_PREFIX<br \/>\n(see &#8220;Source Installation Options&#8221; below).<\/p><\/blockquote>\n<p>\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u306e\u901a\u308a\u306b\u3084\u308b\u3060\u3051\uff08\u4f46\u3057\u6700\u5f8c\u306emake install \u306f\u30eb\u30fc\u30c8\u6a29\u9650\u3067\u3084\u308b\u5fc5\u8981\u3042\u308b\u306e\u3068\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u65b0\u305f\u306b\u52a0\u308f\u308b\u306e\u3067\u3001sudo ldconfig \u3082\u5fc5\u8981\uff09\u3002\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u9593\u3082\u6570\uff11\uff10\u5206\u3067\u6e08\u3080\u3082\u306e\u3067\u3057\u305f\u304c\u3001\u4e8b\u524d\u306b\u6e96\u5099\u3057\u3066\u304a\u304f\u3082\u306e\u304c\u305f\u304f\u3055\u3093\u5fc5\u8981\u3067\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u4e8b\u524d\u306b\u5fc5\u8981\u306a\u3082\u306e<\/h2>\n<ul>\n<li>gfortran<\/li>\n<li>Boost<\/li>\n<li>BLAS\/LAPACK<\/li>\n<\/ul>\n<h2>gfortran<\/h2>\n<p>\u3053\u308c\u306f\u666e\u901a\u306b<\/p>\n<blockquote><p>$ sudo apt-get install gfortran<\/p><\/blockquote>\n<p>\u307e\u305f\u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3060\u3051\u3067OK<\/p>\n<p>&nbsp;<\/p>\n<h2>Boost<\/h2>\n<p>\u305d\u3082\u305d\u3082\u3001Boost \u3063\u3066\u4f55\uff1f\u306e\u8aac\u660e\u304c\u3042\u3063\u3066\u6b32\u3057\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u3053\u306f\u5358\u306b\u3001<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p>================================<br \/>\nSource Installation Dependencies<br \/>\n================================<\/p>\n<p>To build DAKOTA with all possible packages, some platform-dependent<br \/>\nsoftware dependencies exist. These include<br \/>\n* <span style=\"color: #ff0000;\">Boost (required)<\/span><br \/>\n* Message Passing Interface (MPI) library (optional)<br \/>\n* <span style=\"color: #0000ff;\">Basic Linear Algebra Subprograms (BLAS) (required)<\/span><br \/>\n* <span style=\"color: #0000ff;\">Linear Algebra PACKage (LAPACK) libraries (required)<\/span><br \/>\n* X11 and Motif graphics libraries (optional)<br \/>\n* Fortran90 compiler (optional)<\/p><\/blockquote>\n<p>\u3068\u8a18\u3057\u3066\u3042\u308b\u3060\u3051\u3067\u3001\u4f55\u306e\u3053\u3068\u3084\u3089\uff1f\u3000\u3067\u3057\u305f\u304c\u3001\u305d\u3053\u306f\u30b0\u30b0\u3063\u3066\u8abf\u67fb\u3002<\/p>\n<p><a href=\"http:\/\/www.c.csce.kyushu-u.ac.jp\/kb\/wiki\/index.php?%A5%D7%A5%ED%A5%B0%A5%E9%A5%DF%A5%F3%A5%B0%2Fboost%2F%A5%A4%A5%F3%A5%B9%A5%C8%A1%BC%A5%EB\">\u53c2\u8003\u30b5\u30a4\u30c8<\/a>\u3000\u3088\u308a<\/p>\n<p style=\"padding-left: 30px;\">1998\u5e74\u306b\u3001\u6700\u521d\u306eC++\u8a00\u8a9e\u306e\u56fd\u969b\u898f\u683c\u304c\u8a95\u751f\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u898f\u683c\u306b\u63a1\u7528\u3055\u308c\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3044\u308f\u3086\u308b\u300cC++\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u300d\u3067\u3059\u3002\u3057\u304b\u3057\u3053\u306e\u3068\u304d\u3001\u3055 \u3089\u306b\u5f37\u529b\u306a\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6c42\u3081\u3066\u3001\u6a19\u6e96\u5316\u59d4\u54e1\u4f1a\u306e\u30e1\u30f3\u30d0\u30fc\u9054\u304c\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u307e\u3057\u305f\u3002\u305d\u308c\u304c Boost \u3067\u3059\u3002<\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u3001<a href=\"http:\/\/www.boost.org\/users\/history\/version_1_52_0.html\">\u3053\u3061\u3089<\/a><\/p>\n<p>\u30d3\u30eb\u30c9\u65b9\u6cd5\u306f\u3001<a href=\"https:\/\/sites.google.com\/site\/boostjp\/howtobuild\">\u3053\u3061\u3089<\/a><\/p>\n<blockquote><p>$ cd boost_1_52_0<\/p>\n<p>$ .\/bootstrap.sh<\/p>\n<p>$ sudo .\/b2 install -j2<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>\u4e0a\u8a18\u5b9f\u884c\u3059\u308b\u3068\u3001<\/p>\n<blockquote><p>&#8230;on 10600th target&#8230;<br \/>\ncommon.copy \/usr\/local\/lib\/libboost_wave.a<br \/>\n&#8230;failed updating 2 targets&#8230;<br \/>\n&#8230;skipped 6 targets&#8230;<br \/>\n&#8230;updated 10598 targets&#8230;<\/p><\/blockquote>\n<p>\u3068\u306a\u3063\u3066\u3001\u9014\u4e2d\u4e00\u90e8error \u304c\u3042\u3063\u305f\u3088\u3046\u3067\u3059\u304c\u3001\u591a\u5206\u3001\u5927\u52e2\u306b\u5f71\u97ff\u306f\u306a\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n<h2>BLAS\/LAPACK<\/h2>\n<p>\u3053\u308c\u3089\u306fAlgebla Package \u3068\u3044\u3046\u3053\u3068\u3067\u3001CAE\u3092\u3084\u3063\u3066\u3044\u308b\u4eba\u9593\u306b\u3068\u3063\u3066\u3001\u5c11\u3057\u306f\u99b4\u67d3\u307f\u304c\u3042\u308b\u3082\u306e\u3067\u3059\u306d\u3047\u3002\u3057\u304b\u3057\u3001\u305d\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u81ea\u529b\u3067\u8abf\u3079\u308b\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3067\u3001\u3053\u3053\u3067\u5d4c\u308a\u307e\u3057\u305f\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u8a18\u3057\u305f\u30b5\u30a4\u30c8\u306f\u7c21\u5358\u306b\u898b\u3064\u304b\u308a\u307e\u3057\u305f\uff08\u305f\u3068\u3048\u3070\u3001<a href=\"http:\/\/cafenero.jp\/wiki\/index.php?cluster%2FLAPACK%20and%20BLAS\">\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8<\/a>\uff09\u304c\u3001\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f5c\u308a\u65b9\u304c\u66f8\u3044\u3066\u3042\u3063\u3066\u3001\u3053\u308c\u3060\u3068\u5f8c\u306eDAKOTA\u3092make\u3059\u308b\u6642\u306b\u3001\u8a33\u306e\u308f\u304b\u3089\u306a\u3044\u30a8\u30e9\u30fc\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3057\u305f\u3002<\/p>\n<blockquote><p>\/usr\/bin\/ld: \/usr\/lib\/gcc\/x86_64-linux-gnu\/4.6\/..\/..\/..\/..\/lib\/<span style=\"color: #ff0000;\">libblas.a<\/span>(sgemv.o): relocation R_X86_64_32 against `.rodata&#8217; can not be used when making a shared object; <span style=\"color: #0000ff;\">recompile with -fPIC<\/span><br \/>\n\/usr\/lib\/gcc\/x86_64-linux-gnu\/4.6\/..\/..\/..\/..\/lib\/libblas.a: could not read symbols: Bad value<br \/>\ncollect2: ld \u306f\u30b9\u30c6\u30fc\u30bf\u30b9 1 \u3067\u7d42\u4e86\u3057\u307e\u3057\u305f<br \/>\nmake[2]: *** [packages\/teuchos\/src\/libteuchos.so] \u30a8\u30e9\u30fc 1<br \/>\nmake[1]: *** [packages\/teuchos\/src\/CMakeFiles\/teuchos.dir\/all] \u30a8\u30e9\u30fc 2<br \/>\nmake: *** [all] \u30a8\u30e9\u30fc 2<\/p><\/blockquote>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u30b0\u30b0\u308b\u3068\u3001\u3069\u3046\u3084\u3089\u30e9\u30a4\u30d6\u30e9\u30ea\u304clibblas.a\u3067\u306f\u99c4\u76ee\u3067\u3001libblas.so\u306b\u3057\u306a\u3055\u3044\u3068\u3044\u3046\u3053\u3068\u3089\u3057\u304f\u3001\u305d\u308c\u304c\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3044\u3046\u3053\u3068\u3002\u3053\u308c\u3092\u4f5c\u308b\u306b\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3001-fPIC \u306b\u305b\u306b\u3083\u306a\u3089\u3093\u3068\u3044\u3046\u3053\u3068\u306a\u3093\u3060\u304c\u3001Makefile\u306e\u3069\u3053\u3092\u3069\u3046\u5909\u3048\u308b\u304b\u304c\u3001\u7d20\u4eba\u306b\u306f\u305f\u3044\u3078\u3093\u306a\u8a66\u884c\u932f\u8aa4\u3067\u3057\u305f\u3002<\/p>\n<p>\u3067\u3001\u306a\u3093\u3068\u304b\u51fa\u6765\u305f\u3093\u3067\u3059\u304c\u3001Linux Mint13 \u306e\u5143\u3005\u306e\u30b7\u30b9\u30c6\u30e0\uff08\/usr\/lib\uff09\u3092\u773a\u3081\u3066\u3044\u305f\u3089\u3001libblas\u3082\u3001liblapack\u3082\u65e2\u306b\u5165\u3063\u3066\u3044\u305f\u3058\u3083\u3042\u308a\u307e\u305b\u3093\u304b\uff01\u5358\u306b\u3001\u540d\u524d\u304c\u3061\u3087\u3063\u3068\u9055\u3063\u3066\u3044\u305f\u70ba\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u8a8d\u8b58\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u3060\u3051\u3002\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u3066\u3059\u3093\u306a\u308a\u901a\u308a\u307e\u3057\u305f\u3002\u3002\u3002\u3068\u3044\u3046\u985b\u672b\u3002<\/p>\n<blockquote><p>$ sudo ln -s \/usr\/lib\/libblas\/libblas.so.3gf.0 \/usr\/lib\/libblas.so<\/p>\n<p>$ sudo ln -s \/usr\/lib\/liblapack.so.3gf \/usr\/lib\/liblapack.so<\/p>\n<p>$ sudo ldconfig<\/p><\/blockquote>\n<p>\u4ee5\u4e0a\u3001\u304a\u7c97\u672b\u3067\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DAKOTA \u3068\u3044\u3046\u306e\u306f\u3001\u4eca\u5e74\u8fba\u308a\u3001\u305d\u308d\u305d\u308d\u30d6\u30ec\u30fc\u30af\u3059\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u6700\u9069\u5316\u30c4\u30fc\u30eb\u3002\u6b21\u56de\u306e\u30aa\u30fc\u30d7\u30f3CAE\u52c9\u5f37\u4f1a\uff20\u5c90\u961c\u3067\u3082\u7d39\u4ecb\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002 \u7ba1\u7406\u4eba\u3082\u6570\u5e74\u524d\u306b\u89e6\u3063\u3066\u4ee5\u6765\u306a\u306e\u3067\u3001\u6700\u65b0\u7248\u3092\u8a66\u3057\u3066\u307f\u3088\u3046\u3068\u3057\u307e\u3057\u305f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[17,1],"tags":[39,28],"class_list":["post-871","post","type-post","status-publish","format-standard","hentry","category-toolstips","category-openconsul","tag-dakota","tag-dexcs"],"views":11950,"_links":{"self":[{"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/posts\/871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ocse2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=871"}],"version-history":[{"count":9,"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/posts\/871\/revisions"}],"predecessor-version":[{"id":880,"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/posts\/871\/revisions\/880"}],"wp:attachment":[{"href":"https:\/\/ocse2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ocse2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ocse2.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}