Problem installing RBGL
0
0
Entering edit mode
tzintzuni • 0
@tzintzuni-10013
Last seen 8.7 years ago

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 • 1.2k views
ADD COMMENT
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 656 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6