Question: Problem installing RBGL
0
gravatar for tzintzuni
3.1 years ago by
tzintzuni0
tzintzuni0 wrote:

I'm getting an error I don't understand when trying to install the latest release of RBGL. Could it be the version of boost I'm using is too old? I couldn't find any mention of Boost library version requirements.

g++ -I/group/software/R/3.2.3/lib64/R/include -DNDEBUG '-I/apps/libraries/boost/1.55.0' -Irbgl_trimmed_boost_1_49_0 -fpic -g -O2 -c bbc.cpp -o bbc.o
In file included from /apps/libraries/boost/1.55.0/boost/mpl/remove.hpp:18,
                 from /apps/libraries/boost/1.55.0/boost/function_types/components.hpp:45,
                 from /apps/libraries/boost/1.55.0/boost/function_types/is_member_function_pointer.hpp:15,
                 from /apps/libraries/boost/1.55.0/boost/tti/detail/dmem_fun.hpp:11,
                 from /apps/libraries/boost/1.55.0/boost/tti/has_member_function.hpp:14,
                 from /apps/libraries/boost/1.55.0/boost/graph/depth_first_search.hpp:27,
                 from /apps/libraries/boost/1.55.0/boost/graph/graph_utility.hpp:32,
                 from /apps/libraries/boost/1.55.0/boost/graph/bc_clustering.hpp:14,
                 from bbc.cpp:3:
/apps/libraries/boost/1.55.0/boost/mpl/remove_if.hpp:52: error: ‘SEXPREC* Rf_protect(SEXPREC*)’ cannot appear in a constant-expression
/apps/libraries/boost/1.55.0/boost/mpl/remove_if.hpp:55: error: template argument 3 is invalid
/apps/libraries/boost/1.55.0/boost/mpl/remove_if.hpp:56: error: expected ‘{’ before ‘>’ token
/apps/libraries/boost/1.55.0/boost/mpl/remove_if.hpp:56: error: expected unqualified-id before ‘>’ token
/apps/libraries/boost/1.55.0/boost/mpl/remove_if.hpp:69: error: ‘SEXPREC* Rf_protect(SEXPREC*)’ cannot appear in a constant-expression
/apps/libraries/boost/1.55.0/boost/mpl/remove_if.hpp:72: error: template argument 3 is invalid
/apps/libraries/boost/1.55.0/boost/mpl/remove_if.hpp:73: error: expected ‘{’ before ‘>’ token
/apps/libraries/boost/1.55.0/boost/mpl/remove_if.hpp:73: error: expected unqualified-id before ‘>’ token
make: *** [bbc.o] Error 1
ERROR: compilation failed for package ‘RBGL’
rbgl boost • 448 views
ADD COMMENTlink modified 3.1 years ago • written 3.1 years ago by tzintzuni0

Can you edit your post to include the output of the R command sessionInfo() and the shell output of g++ --version ?

ADD REPLYlink written 3.1 years ago by Martin Morgan ♦♦ 23k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 164 users visited in the last hour