Skip to content

Installing on CentOS 6

Joe Cheng edited this page Sep 9, 2019 · 2 revisions

Building the {websocket} package requires gcc 4.8, due to asio library. On CentOS 6, the default version of gcc is 4.4. Fortunately, you can opt into gcc 4.8 without too much trouble.

Install gcc 4.8:

# If /etc/yum.repos.d/devtools-2.repo doesn't already exist
wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo

yum -y install devtoolset-2-gcc devtoolset-2-binutils
yum -y install devtoolset-2-gcc-gfortran devtoolset-2-gcc-c++

Note that this doesn't affect the main version of gcc on the system. Instead, it lets you opt into gcc 4.8 using scl.

In this case, we can run R with gcc 4.8:

scl enable devtoolset-2 -- R

In that R session, install {websocket} as normal.

Clone this wiki locally