[Rd] R compilation on old(ish) CentOS
Iñaki Ucar
|uc@r @end|ng |rom |edor@project@org
Thu Apr 29 16:12:52 CEST 2021
On Thu, 29 Apr 2021 at 15:59, Ben Bolker <bbolker using gmail.com> wrote:
>
> I probably don't want to go down this rabbit hole very far, but if
> anyone has any *quick* ideas ...
>
> Attempting to build R from scratch with a fresh SVN checkout on a
> somewhat out-of-date CentOS system (for which I don't have root access,
> although I can bug people if I care enough).
Could you bug them to... update CentOS? :)
[snip]
> $ gcc --version
> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Ouch. You definitely need to install and activate an appropriate
devtoolset as follows:
$ yum install centos-release-scl
$ yum install devtoolset-8
(Bug those people to at least install that). Then, put something like
this in your .bashrc:
$ source scl_source enable devtoolset-8
And you are ready to go with a fairly decent version of gcc, i.e.:
$ gcc --version
gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)
Iñaki
> $ lsb_release -a
> LSB Version:
> :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
> Distributor ID: CentOS
> Description: CentOS Linux release 7.8.2003 (Core)
> Release: 7.8.2003
> Codename: Core
>
> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
--
Iñaki Úcar
More information about the R-devel
mailing list