{"id":120,"date":"2014-01-07T16:13:49","date_gmt":"2014-01-07T15:13:49","guid":{"rendered":"http:\/\/candrea.ch\/blog\/?p=120"},"modified":"2014-01-07T16:13:49","modified_gmt":"2014-01-07T15:13:49","slug":"installing-jags-3-4-0","status":"publish","type":"post","link":"https:\/\/candrea.ch\/blog\/installing-jags-3-4-0\/","title":{"rendered":"Installing JAGS 3.4.0 under OS X 10.9 Maverick"},"content":{"rendered":"<p>First of all see the excellent installation manual by\u00a0Martyn Plummer and Bill Northcott (<a href=\"http:\/\/sourceforge.net\/projects\/mcmc-jags\/files\/Manuals\/3.x\/jags_installation_manual.pdf\/download\" target=\"_blank\">JAGS Version 3.4.0 installation manual<\/a>) at section\u00a02 &#8220;Mac OS X&#8221;.<\/p>\n<p>For the rest of us (me included) thinking \u00a0<span class=\"lang:sh highlight:0 decode:true crayon-inline\">.\/configure<\/span>\u00a0without any options will do the job are getting the following error:<\/p>\n<pre class=\"lang:sh highlight:0 decode:true\">configure: error: \"You need to install the LAPACK library\"<\/pre>\n<p>(It will not work even with the \u00a0<span class=\"lang:sh highlight:0 decode:true  crayon-inline\">&#8211;with-lapack=&#8217;-framework vecLib&#8217;<\/span>\u00a0option.)<\/p>\n<p>Do not follow this instruction! You do not have to install the LAPACK library because on OS X 10.9 the optimized (accelerated by Apple engineers) version of LAPACK is allready installed, see the\u00a0<a href=\"https:\/\/developer.apple.com\/library\/mac\/documentation\/Darwin\/Reference\/Manpages\/man7\/LAPACK.7.html\" target=\"_blank\">LAPACK(7) Mac OS X Manual Page<\/a>.<\/p>\n<p>From now on just type the slightly modified commands in your bash-shell (terminal):<\/p>\n<pre class=\"lang:sh highlight:0 decode:true\">export CC=\/usr\/bin\/clang\r\n\r\nexport CXX=\/usr\/bin\/clang++\r\n\r\nexport CFLAGS=\"-g -Os -mmacosx-version-min=10.6 -isysroot \/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/MacOSX.platform\/Developer\/SDKs\/MacOSX10.9.sdk -arch i386 -arch x86_64\"\r\n\r\nexport CXXFLAGS=\"-g -Os -mmacosx-version-min=10.6 -isysroot \/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/MacOSX.platform\/Developer\/SDKs\/MacOSX10.9.sdk -arch i386 -arch x86_64\"\r\n\r\nexport FFLAGS=\"-g -Os -mmacosx-version-min=10.6 -isysroot \/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/MacOSX.platform\/Developer\/SDKs\/MacOSX10.9.sdk -arch i386 -arch x86_64\"\r\n\r\nexport LDFLAGS=\"-mmacosx-version-min=10.6 -arch i386 -arch x86_64\"\r\n\r\n.\/configure --disable-dependency-tracking --with-included-ltdl\r\n\r\nmake -j 8\r\n\r\nsudo make install<\/pre>\n<p>Of course, make sure you have installed all the required tools before executing the commands.<\/p>\n<p>Happy .\/configuring!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First of all see the excellent installation manual by\u00a0Martyn Plummer and Bill Northcott (JAGS Version 3.4.0 installation manual) at section\u00a02 &#8220;Mac OS X&#8221;. For the rest of us (me included) thinking \u00a0.\/configure\u00a0without any options will do the job are getting the following error: configure: error: &#8220;You need to install the LAPACK library&#8221; (It will not &hellip; <a href=\"https:\/\/candrea.ch\/blog\/installing-jags-3-4-0\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Installing JAGS 3.4.0 under OS X 10.9 Maverick<\/span> <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":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-120","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/candrea.ch\/blog\/wp-json\/wp\/v2\/posts\/120"}],"collection":[{"href":"https:\/\/candrea.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/candrea.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/candrea.ch\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/candrea.ch\/blog\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":3,"href":"https:\/\/candrea.ch\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/candrea.ch\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions\/123"}],"wp:attachment":[{"href":"https:\/\/candrea.ch\/blog\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/candrea.ch\/blog\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/candrea.ch\/blog\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}