Entering edit mode
LIYUN
▴
60
@liyun-3773
Last seen 10.3 years ago
hi,
I met a problem when install RBGL package.
here is
the error information:
* Installing
*source* package ‘RBGL’ ...
untarring boost include
tree...
** libs
g++
-I/usr/share/R/include -IboostIncl
-fpic -g -O2 -c bbc.cpp -o bbc.o
In file included from
boostIncl/boost/mpl/apply.hpp:23,
from boostIncl/boost/iterator/iterator_facade.hpp:34,
from boostIncl/boost/generator_iterator.hpp:16,
from RBGL.hpp:17,
from bbc.cpp:1:
boostIncl/boost/mpl/apply_wrap.hpp:81:31: error:
missing binary operator before token "("
boostIncl/boost/mpl/apply_wrap.hpp:173:31: error: missing binary
operator before token "("
In file included from
boostIncl/boost/mpl/bind.hpp:27,
from boostIncl/boost/mpl/lambda.hpp:18,
from boostIncl/boost/mpl/apply.hpp:25,
from boostIncl/boost/iterator/iterator_facade.hpp:34,
from boostIncl/boost/generator_iterator.hpp:16,
from RBGL.hpp:17,
from bbc.cpp:1:
boostIncl/boost/mpl/apply_wrap.hpp:81:31: error:
missing binary operator before token "("
boostIncl/boost/mpl/apply_wrap.hpp:173:31: error: missing binary
operator before token "("
In file included from
boostIncl/boost/mpl/lambda.hpp:18,
from boostIncl/boost/mpl/apply.hpp:25,
from boostIncl/boost/iterator/iterator_facade.hpp:34,
from boostIncl/boost/generator_iterator.hpp:16,
from RBGL.hpp:17,
from bbc.cpp:1:
boostIncl/boost/mpl/bind.hpp:364:31: error: missing
binary operator before token "("
boostIncl/boost/mpl/bind.hpp:531:31: error: missing binary operator
before token "("
In file included from
boostIncl/boost/mpl/lambda.hpp:22,
from boostIncl/boost/mpl/apply.hpp:25,
from boostIncl/boost/iterator/iterator_facade.hpp:34,
from boostIncl/boost/generator_iterator.hpp:16,
from RBGL.hpp:17,
from bbc.cpp:1:
boostIncl/boost/mpl/aux_/full_lambda.hpp:230:31:
error: missing binary operator before token "("
In file
included from boostIncl/boost/iterator/iterator_facade.hpp:34,
from boostIncl/boost/generator_iterator.hpp:16,
from RBGL.hpp:17,
from bbc.cpp:1:
boostIncl/boost/mpl/apply.hpp:138:31: error: missing
binary operator before token "("
In file included from
/usr/include/c++/4.4/backward/hash_set:59,
from boostIncl/boost/graph/adjacency_list.hpp:22,
from RBGL.hpp:26,
from bbc.cpp:1:
/usr/include/c++/4.4/backward/backward_warning.h:28:2: warning:
#warning
This file includes at least one deprecated or antiquated header which
may
be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
make: *** [bbc.o] error 1
ERROR: compilation failed for package
‘RBGL’
* Removing
‘/home/trace/R/i486-pc-linux-gnu-library/2.9/RBGL’
The downloaded packages are in
‘/tmp/Rtmp6CoA1c/downloaded_packages’
Warning message:
In install.packages(pkgs = pkgs, repos = repos, dependencies =
dependencies, :
installation of package 'RBGL' had
non-zero exit status
and this is my r information:
sessionInfo()
R version 2.9.2 (2009-08-24)
i486-pc-linux-gnu
locale:
LC_CTYPE=zh_CN.UTF-8;LC_NUMERIC=C;LC_TIME=zh_CN.UTF-8;LC_COLLATE=zh_CN
.UTF-8;LC_MONETARY=C;LC_MESSAGES=zh_CN.UTF-8;LC_PAPER=zh_CN.UTF-8;LC_N
AME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=zh_CN.UTF-8;LC_IDENTI
FICATION=C
attached base packages:
[1] stats
graphics grDevices utils datasets
methods base
other
attached packages:n
[1] graph_1.22.5
loaded via a
namespace (and not attached):
[1] tcltk_2.9.2 tools_2.9.2
My g++ version is 4.4.1 ubuntu
thanks.
LiYun
[[alternative HTML version deleted]]