Skip to content

Error installing rstan on CentOs as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format #612

@mberaha

Description

@mberaha

Summary:

Error installing rstan from R in linux

Error in as.POSIXlt.character(x, tz, ...) : 
  character string is not in a standard unambiguous format
Error : unable to load R code in package 'rstan'
ERROR: lazy loading failed for package 'rstan'

Description:

Based on previous issues posted here, I checked that the gcc version supports c++14

gcc -v  
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/u/sw/pkgs/toolchains/gcc-glibc/7/prefix/libexec/gcc/x86_64-mk-linux/7.1.0/lto-wrapper
Target: x86_64-mk-linux
Configured with: ../gcc-7.1.0/configure --build=x86_64-mk-linux --prefix=/u/sw/pkgs/toolchains/gcc-glibc/7/prefix --with-local-prefix=/u/sw/pkgs/toolchains/gcc-glibc/7/base --with-native-system-header-dir=/u/sw/pkgs/toolchains/gcc-glibc/7/prefix/include --with-pkgversion=mk --with-bugurl=https://bitbucket.org/mattiapenati/mk/issues --disable-nls --disable-multilib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-lto --enable-libgomp --disable-libstdcxx-pch --enable-bootstrap --enable-languages=c,c++,fortran
Thread model: posix
gcc version 7.1.0 (mk) 

Here is the content of ~/.R.Makevars

CXX14FLAGS=-O3 -march=native -mtune=native
CXX14FLAGS += -fPIC

Reproducible Steps:

In an R shell
install.packages("rstan", type = "source")

R Version:

R version 3.5.2 (2018-12-20)

Operating System:

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions