Non-zero error installing igraph on Redhat 6.1 with GCC 4.4.7-23

I found this already discussed in April but the issue closed w/o resolution.

On RHEL 6.1 we have GCC 4.4.7 installed and checked for GCC Fortran as well. Get the same errors sequence:

In file included from
bliss/graph.hh:326: error: ISO C++ forbids initialization of member 'refine_equal_to_first'
bliss/graph.hh:326: error: making 'refine_equal_to_first' static
bliss/graph.hh:326: error: ISO C++ forbids in-class initialization of non-const static member 'refine_equal_to_first'
make: *** [bliss.o] Error 1
ERROR: compilation failed for package 'igraph'

There is not much you can do other than install newer gcc. In no particular order:

  • Since you are on RH, install the devtoolset.
  • Compile it from source code. You will likely need to install newer versions of its dependencies.
  • Install conda. It could be brittle though and make a mess (happened to me more than once).
  • Install Nix. This is infinitely more robust than conda but the learning curve is steep. Nix is my current approach.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.