Installing rstan on RHEL7


#1

Hi, I received the following error message when attempting to build and install rstan from source under RHEL 7.2:

/usr/lib64/R/etc/Makeconf:166: recipe for target ‘lang__grammars__expression_grammar_inst.o’ failed
make: *** [lang__grammars__expression_grammar_inst.o] Error 1
ERROR: compilation failed for package ‘rstan’

  • removing ‘/home/savitskyt/R/x86_64-redhat-linux-gnu-library/3.4/rstan’
    Warning in install.packages :
    installation of package ‘rstan’ had non-zero exit status

My system information is:

R version 3.4.0 (2017-04-21)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux

Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_3.4.0 tools_3.4.0 coda_0.19-1 grid_3.4.0 lattice_0.20-35
[6] rjags_4-6

Thanks for your help,

Terrance.


#2

#3

I write to verify that this fix worked for me. Thanks for your help.