Error during installation
Hi, After create a make file with this command: /./configure CXX='g++-5' --with-boost-libdir=/usr/lib/i386-linux-gnu/ i'vs start make file and then this is the result (contains an error): / Making install in src make[1]: Entering directory `/home/davide/Downloads/graph-tool-2.26/src' Making install in graph make[2]: Entering directory `/home/davide/Downloads/graph-tool-2.26/src/graph' Making install in centrality make[3]: Entering directory `/home/davide/Downloads/graph-tool-2.26/src/graph/centrality' CXX graph_betweenness.lo CXX graph_closeness.lo CXX graph_eigentrust.lo CXX graph_eigenvector.lo CXX graph_hits.lo CXX graph_katz.lo CXX graph_pagerank.lo CXX graph_trust_transitivity.lo CXXLD libgraph_tool_centrality.la make[4]: Entering directory `/home/davide/Downloads/graph-tool-2.26/src/graph/centrality' make[4]: Nothing to be done for `install-exec-am'. /bin/mkdir -p '/usr/lib/python2.7/dist-packages/graph_tool/centrality' /bin/bash ../../../libtool --mode=install /usr/bin/install -c libgraph_tool_centrality.la '/usr/lib/python2.7/dist-packages/graph_tool/centrality' libtool: install: /usr/bin/install -c .libs/libgraph_tool_centrality.so /usr/lib/python2.7/dist-packages/graph_tool/centrality/libgraph_tool_centrality.so libtool: install: /usr/bin/install -c .libs/libgraph_tool_centrality.lai /usr/lib/python2.7/dist-packages/graph_tool/centrality/libgraph_tool_centrality.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/lib/python2.7/dist-packages/graph_tool/centrality ---------------------------------------------------------------------- Libraries have been installed in: /usr/lib/python2.7/dist-packages/graph_tool/centrality If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the 'LD_RUN_PATH' environment variable during linking - use the '-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to '/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /bin/mkdir -p '/usr/lib/python2.7/dist-packages/graph_tool/include/centrality' /usr/bin/install -c -m 644 graph_closeness.hh graph_eigentrust.hh graph_eigenvector.hh graph_pagerank.hh graph_hits.hh graph_katz.hh graph_trust_transitivity.hh minmax.hh '/usr/lib/python2.7/dist-packages/graph_tool/include/centrality' make[4]: Leaving directory `/home/davide/Downloads/graph-tool-2.26/src/graph/centrality' make[3]: Leaving directory `/home/davide/Downloads/graph-tool-2.26/src/graph/centrality' Making install in clustering make[3]: Entering directory `/home/davide/Downloads/graph-tool-2.26/src/graph/clustering' CXX graph_clustering.lo CXX graph_extended_clustering.lo CXX graph_motifs.lo In file included from graph_motifs.cc:26:0: ../../../src/graph/graph_python_interface.hh:85:33: error: ‘asymmetric_coroutine’ in namespace ‘graph_tool::coroutines’ does not name a template type typedef graph_tool::coroutines::asymmetric_coroutine<boost::python::object> ^ ../../../src/graph/graph_python_interface.hh:107:21: error: ‘coro_t’ was not declared in this scope std::shared_ptr<coro_t::pull_type> _coro; ^ ../../../src/graph/graph_python_interface.hh:107:38: error: template argument 1 is invalid std::shared_ptr<coro_t::pull_type> _coro; ^ ../../../src/graph/graph_python_interface.hh:108:5: error: ‘coro_t’ does not name a type coro_t::pull_type::iterator _iter; ^ ../../../src/graph/graph_python_interface.hh:109:5: error: ‘coro_t’ does not name a type coro_t::pull_type::iterator _end; ^ ../../../src/graph/graph_python_interface.hh: In constructor ‘graph_tool::CoroGenerator::CoroGenerator(Dispatch&)’: ../../../src/graph/graph_python_interface.hh:93:27: error: ‘coro_t’ was not declared in this scope : _coro(make_coro<coro_t::pull_type>(dispatch)), ^ ../../../src/graph/graph_python_interface.hh:93:17: error: parse error in template argument list : _coro(make_coro<coro_t::pull_type>(dispatch)), ^ ../../../src/graph/graph_python_interface.hh:94:11: error: class ‘graph_tool::CoroGenerator’ does not have any field named ‘_iter’ _iter(begin(*_coro)), _end(end(*_coro)), _first(true) {} ^ ../../../src/graph/graph_python_interface.hh:94:24: error: invalid type argument of unary ‘*’ (have ‘int’) _iter(begin(*_coro)), _end(end(*_coro)), _first(true) {} ^ ../../../src/graph/graph_python_interface.hh:94:29: error: there are no arguments to ‘begin’ that depend on a template parameter, so a declaration of ‘begin’ must be available [-fpermissive] _iter(begin(*_coro)), _end(end(*_coro)), _first(true) {} ^ ../../../src/graph/graph_python_interface.hh:94:29: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) ../../../src/graph/graph_python_interface.hh:94:33: error: class ‘graph_tool::CoroGenerator’ does not have any field named ‘_end’ _iter(begin(*_coro)), _end(end(*_coro)), _first(true) {} ^ ../../../src/graph/graph_python_interface.hh:94:43: error: invalid type argument of unary ‘*’ (have ‘int’) _iter(begin(*_coro)), _end(end(*_coro)), _first(true) {} ^ ../../../src/graph/graph_python_interface.hh:94:48: error: there are no arguments to ‘end’ that depend on a template parameter, so a declaration of ‘end’ must be available [-fpermissive] _iter(begin(*_coro)), _end(end(*_coro)), _first(true) {} ^ ../../../src/graph/graph_python_interface.hh: In member function ‘boost::python::api::object graph_tool::CoroGenerator::next()’: ../../../src/graph/graph_python_interface.hh:100:15: error: ‘_iter’ was not declared in this scope ++_iter; ^ ../../../src/graph/graph_python_interface.hh:101:13: error: ‘_iter’ was not declared in this scope if (_iter == _end) ^ ../../../src/graph/graph_python_interface.hh:101:22: error: ‘_end’ was not declared in this scope if (_iter == _end) ^ ../../../src/graph/graph_python_interface.hh:103:37: error: ‘_iter’ was not declared in this scope boost::python::object oe = *_iter; ^ make[3]: *** [graph_motifs.lo] Error 1 make[3]: Leaving directory `/home/davide/Downloads/graph-tool-2.26/src/graph/clustering' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/home/davide/Downloads/graph-tool-2.26/src/graph' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/davide/Downloads/graph-tool-2.26/src' make: *** [install-recursive] Error 1 / have a solution? Thanks -- Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
On 04.12.2017 22:06, davide wrote:
After create a make file with this command:
/./configure CXX='g++-5' --with-boost-libdir=/usr/lib/i386-linux-gnu/
i'vs start make file and then this is the result (contains an error):
When asking about a compilation problem, you have to provide context, otherwise it is impossible to help. What is your OS, exact GCC and Boost versions, etc.
From what I can tell from the error message, it seems that your boost version is too old.
Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (2)
-
davide -
Tiago de Paula Peixoto