thomasp85 / farver

High Performance Colourspace Manipulation in R
https://farver.data-imaginist.com
Other
128 stars 14 forks source link

`farver` 2.0 failed to install #17

Closed MohoWu closed 4 years ago

MohoWu commented 4 years ago

Hello,

farver 2.0 failed to install on this machine:

Sys.info()[1:3]

sysname                               release                               version 
"Linux"           "2.6.32-642.3.1.el6.x86_64" "#1 SMP Tue Jul 12 18:30:56 UTC 2016" 

Errors occurred during the installation.

In file included from ColorSpace.cpp:1:
ColorSpace.h:19: error: ISO C++ forbids initialization of member ‘valid’
ColorSpace.h:19: error: making ‘valid’ static
ColorSpace.h:19: error: ISO C++ forbids in-class initialization of non-const static member ‘valid’
make: *** [ColorSpace.o] Error 1
ERROR: compilation failed for package ‘farver’
thomasp85 commented 4 years ago

Thanks for this report. Can you provide a bit more information about your system such as Linux distro and compiler versions?

MohoWu commented 4 years ago

I'm not sure if this is what you need.

LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing
-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.5 (Final)
Release:        6.5
Codename:       Final
yutannihilation commented 4 years ago

IIRC, CentOS 6's default toolchain doesn't support C++11, so probably you'll need to install SCL.

dongshengbc commented 4 years ago

What does SCL stand for?

PoShine commented 4 years ago

hello,I meet the same problem like you. Have you resolved this issue?