A nice one (for Bayesian users of Sage's R)

34 views
Skip to first unread message

Emmanuel Charpentier

unread,
Sep 28, 2016, 5:14:00 AM9/28/16
to sage-support
A nice little puzzle for Sage's R users trying to use R 3.3.1 (forthcoming in Trac#20523) : the (still damnably useful, notwithstanding rstan) rjags package no longer installs.

rjags calls the system's jags binary and system's jags modules (compiled as .so objects in Unix). However, there is currently (i. e. sage 7.4 beta4) a conflict between the system's and Sage's notion of what BLAS should do : my (Debian) system's BLAS wants to use  a gotoblas function, not found in what Sage uses for BLAS.

A possible workaround is to install a Sage-specific version of JAGS from the source, configured with something like "./configure --prefix=$SAGE_ROOT/local") in a Sage shell (and compiled and installed in the Sage shell...). This worked like a charm for me.

I do not know Sage's build system well enough to know if forcing Sage to use system's numerical livraries (by forcing, e. g. to use the local ATLAS libraries) should be enough.

HTH,

--
Emmanuel Charpentier

Dima Pasechnik

unread,
Sep 28, 2016, 5:24:40 PM9/28/16
to sage-support
if you want to use system's BLAS/ATLAS, set SAGE_ATLAS_LIB to point to the appropriate location
(usually, /usr/lib, I suppose), and rebuild from scratch

It is a bug in the R package in question that it has hardcoded the location of BLAS to the system's one.

Emmanuel Charpentier

unread,
Sep 29, 2016, 5:06:22 AM9/29/16
to sage-support
Thank you Dima ! I'll try that.

--
Emmanuel Charpentier
Reply all
Reply to author
Forward
0 new messages