Hi Ted, for what its worth, I’d recommend considering installing under Linux 
running on Parallels, especially if you are looking for multi-core performance.

If you are staying with your Mac OS and if you are unable to resolve the 
current issue, then you could consider installing Graph Tools with Mac Ports 
(much easier method for installation) and then use the Mac Ports python 
installation when running Graph Tools. (With Python IDEs like PyCharm it is 
relatively easy to change your Python configuration back and forth.)

In my case I first tried compiling from source with Anaconda (gave up) then 
switched to Mac Ports, but then realised that Mac’s CLANG wasn’t compatible 
with the OpenMP for multi-core use. Then used Linux (Ubuntu) on parallels, and 
wished I had done it much sooner because the multicore performance is really 
worth it.

Cheers.

On 1 Jul 2014, at 19:40, Ted Fujimoto <[email protected]> wrote:

> I'm trying to install graph-tool from source since I rely on Anaconda.
> I'm getting the following errors (using OS X 10.9 with Boost version 
> 1.55.0_2): 
> 
> teds-mbp:graph-tool tf$ make
> (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh 
> /Users/tf/Desktop/GitStuff/graph-tool/missing autoheader)
> configure.ac:34: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
> ../../lib/autoconf/general.m4:1854: AC_CANONICAL_TARGET is expanded from...
> configure.ac:34: the top level
> configure.ac:214: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected 
> in body
> ../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
> ../../lib/autoconf/general.m4:2598: _AC_COMPILE_IFELSE is expanded from...
> ../../lib/autoconf/general.m4:2608: AC_COMPILE_IFELSE is expanded from...
> ../../lib/m4sugar/m4sh.m4:643: AS_IF is expanded from...
> ../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from...
> ../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from...
> m4/ax_boost_python.m4:99: AX_BOOST_PYTHON is expanded from...
> configure.ac:214: the top level
> configure.ac:218: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected 
> in body
> ../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
> ../../lib/autoconf/general.m4:2598: _AC_COMPILE_IFELSE is expanded from...
> ../../lib/autoconf/general.m4:2608: AC_COMPILE_IFELSE is expanded from...
> ../../lib/m4sugar/m4sh.m4:643: AS_IF is expanded from...
> ../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from...
> ../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from...
> m4/ax_boost_iostreams.m4:89: AX_BOOST_IOSTREAMS is expanded from...
> configure.ac:218: the top level
> configure.ac:222: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected 
> in body
> ../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
> ../../lib/autoconf/general.m4:2598: _AC_COMPILE_IFELSE is expanded from...
> ../../lib/autoconf/general.m4:2608: AC_COMPILE_IFELSE is expanded from...
> ../../lib/m4sugar/m4sh.m4:643: AS_IF is expanded from...
> ../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from...
> ../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from...
> m4/ax_boost_regex.m4:84: AX_BOOST_REGEX is expanded from...
> configure.ac:222: the top level
> configure.ac:227: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected 
> in body
> ../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
> ../../lib/autoconf/general.m4:2598: _AC_COMPILE_IFELSE is expanded from...
> ../../lib/autoconf/general.m4:2608: AC_COMPILE_IFELSE is expanded from...
> ../../lib/m4sugar/m4sh.m4:643: AS_IF is expanded from...
> ../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from...
> ../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from...
> m4/ax_boost_graph.m4:90: AX_BOOST_GRAPH is expanded from...
> configure.ac:227: the top level
> rm -f stamp-h1
> touch config.h.in
> cd . && /bin/sh ./config.status config.h
> config.status: creating config.h
> config.status: config.h is unchanged
> /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
> Making all in src
> Making all in graph
> Making all in centrality
>   CXX      graph_betweenness.lo
> warning: unknown warning option '-Wno-unused-local-typedefs'
>       [-Wunknown-warning-option]
> In file included from graph_betweenness.cc:18:
> In file included from ./../graph_filtering.hh:21:
> ./../graph.hh:167:5: error: too many template parameters in template
>       redeclaration
>     template <class Action, class GraphViews, class Wrap, class TR1, class 
> TR2,
>     
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./../graph.hh:50:1: note: previous template declaration is here
> template <class Action, class GraphViews, class Wrap = boost::mpl::false_,
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from graph_betweenness.cc:18:
> In file included from ./../graph_filtering.hh:55:
> ./../mpl_nested_loop.hh:91:40: error: use 'template' keyword to treat 'join' 
> as
>       a dependent template name
>         nested_for_each_imp<TRS...>(_a.join<T>());
>                                        ^
>                                        template
> In file included from graph_betweenness.cc:18:
> ./../graph_filtering.hh:482:27: error: '_mg' is a private member of
>       'graph_tool::GraphInterface'
>                     max(g._mg->get_last_index(), size_t(1))) {}
>                           ^
> ./../graph_filtering.hh:512:16: note: in instantiation of member function
>       
> 'graph_tool::detail::graph_action<std::__1::__bind<get_weighted_betweenness,
>       std::__1::placeholders::__ph<1> &,
>       boost::typed_identity_property_map<unsigned long>,
>       std::__1::placeholders::__ph<2> &, std::__1::placeholders::__ph<3> &,
>       boost::any &, bool &, unsigned long, unsigned long>,
>       graph_tool::detail::all_graph_views, mpl_::bool_<false>,
>       boost::mpl::v_item<boost::checked_vector_property_map<long double,
>       boost::adj_edge_index_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<double,
>       boost::adj_edge_index_property_map<unsigned long> >,
>       boost::mpl::vector0<mpl_::na>, 0>, 0>,
>       boost::mpl::v_item<boost::checked_vector_property_map<long double,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<double,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::vector0<mpl_::na>, 0>, 0> >::graph_action' requested here
>         return detail::graph_action<Action,GraphViews,Wrap,TRS...>(g, st...
>                ^
> graph_betweenness.cc:142:13: note: in instantiation of function template
>       specialization
>       'graph_tool::run_action<graph_tool::detail::all_graph_views,
>       mpl_::bool_<false>
>       >::operator()<std::__1::__bind<get_weighted_betweenness,
>       std::__1::placeholders::__ph<1> &,
>       boost::typed_identity_property_map<unsigned long>,
>       std::__1::placeholders::__ph<2> &, std::__1::placeholders::__ph<3> &,
>       boost::any &, bool &, unsigned long, unsigned long>,
>       boost::mpl::v_item<boost::checked_vector_property_map<long double,
>       boost::adj_edge_index_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<double,
>       boost::adj_edge_index_property_map<unsigned long> >,
>       boost::mpl::vector0<mpl_::na>, 0>, 0>,
>       boost::mpl::v_item<boost::checked_vector_property_map<long double,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<double,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::vector0<mpl_::na>, 0>, 0> >' requested here
>             (g, std::bind<>(get_weighted_betweenness(),
>             ^
> ./../graph.hh:177:30: note: declared private here
>     shared_ptr<multigraph_t> _mg;
>                              ^
> In file included from graph_betweenness.cc:18:
> ./../graph_filtering.hh:481:43: error: '_mg' is a private member of
>       'graph_tool::GraphInterface'
>         : _g(g), _a(a, g, num_vertices(*g._mg),
>                                           ^
> ./../graph.hh:177:30: note: declared private here
>     shared_ptr<multigraph_t> _mg;
>                              ^
> In file included from graph_betweenness.cc:18:
> ./../graph_filtering.hh:482:27: error: '_mg' is a private member of
>       'graph_tool::GraphInterface'
>                     max(g._mg->get_last_index(), size_t(1))) {}
>                           ^
> ./../graph_filtering.hh:512:16: note: in instantiation of member function
>       'graph_tool::detail::graph_action<std::__1::__bind_r<void,
>       get_betweenness, std::__1::placeholders::__ph<1> &,
>       boost::typed_identity_property_map<unsigned long>,
>       std::__1::placeholders::__ph<2> &, std::__1::placeholders::__ph<3> &, 
> bool
>       &, unsigned long>, graph_tool::detail::all_graph_views,
>       mpl_::bool_<false>,
>       boost::mpl::v_item<boost::checked_vector_property_map<long double,
>       boost::adj_edge_index_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<double,
>       boost::adj_edge_index_property_map<unsigned long> >,
>       boost::mpl::vector0<mpl_::na>, 0>, 0>,
>       boost::mpl::v_item<boost::checked_vector_property_map<long double,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<double,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::vector0<mpl_::na>, 0>, 0> >::graph_action' requested here
>         return detail::graph_action<Action,GraphViews,Wrap,TRS...>(g, st...
>                ^
> graph_betweenness.cc:154:13: note: in instantiation of function template
>       specialization
>       'graph_tool::run_action<graph_tool::detail::all_graph_views,
>       mpl_::bool_<false> >::operator()<std::__1::__bind_r<void, 
> get_betweenness,
>       std::__1::placeholders::__ph<1> &,
>       boost::typed_identity_property_map<unsigned long>,
>       std::__1::placeholders::__ph<2> &, std::__1::placeholders::__ph<3> &, 
> bool
>       &, unsigned long>,
>       boost::mpl::v_item<boost::checked_vector_property_map<long double,
>       boost::adj_edge_index_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<double,
>       boost::adj_edge_index_property_map<unsigned long> >,
>       boost::mpl::vector0<mpl_::na>, 0>, 0>,
>       boost::mpl::v_item<boost::checked_vector_property_map<long double,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<double,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::vector0<mpl_::na>, 0>, 0> >' requested here
>             (g, std::bind<void>(get_betweenness(), std::placeholders::_1,
>             ^
> ./../graph.hh:177:30: note: declared private here
>     shared_ptr<multigraph_t> _mg;
>                              ^
> In file included from graph_betweenness.cc:18:
> ./../graph_filtering.hh:481:43: error: '_mg' is a private member of
>       'graph_tool::GraphInterface'
>         : _g(g), _a(a, g, num_vertices(*g._mg),
>                                           ^
> ./../graph.hh:177:30: note: declared private here
>     shared_ptr<multigraph_t> _mg;
>                              ^
> In file included from graph_betweenness.cc:18:
> ./../graph_filtering.hh:482:27: error: '_mg' is a private member of
>       'graph_tool::GraphInterface'
>                     max(g._mg->get_last_index(), size_t(1))) {}
>                           ^
> ./../graph_filtering.hh:512:16: note: in instantiation of member function
>       
> 'graph_tool::detail::graph_action<std::__1::__bind<get_central_point_dominance,
>       std::__1::placeholders::__ph<1> &, std::__1::placeholders::__ph<2> &,
>       std::__1::reference_wrapper<double> >, 
> graph_tool::detail::never_reversed,
>       mpl_::bool_<false>,
>       boost::mpl::v_item<boost::typed_identity_property_map<unsigned long>,
>       boost::mpl::v_item<boost::checked_vector_property_map<long double,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<double,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<long long,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<int,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<short,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<unsigned char,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::vector0<mpl_::na>, 0>, 0>, 0>, 0>, 0>, 0>, 0> 
> >::graph_action'
>       requested here
>         return detail::graph_action<Action,GraphViews,Wrap,TRS...>(g, st...
>                ^
> graph_betweenness.cc:179:9: note: in instantiation of function template
>       specialization 
> 'graph_tool::run_action<graph_tool::detail::never_reversed,
>       mpl_::bool_<false>
>       >::operator()<std::__1::__bind<get_central_point_dominance,
>       std::__1::placeholders::__ph<1> &, std::__1::placeholders::__ph<2> &,
>       std::__1::reference_wrapper<double> >,
>       boost::mpl::v_item<boost::typed_identity_property_map<unsigned long>,
>       boost::mpl::v_item<boost::checked_vector_property_map<long double,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<double,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<long long,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<int,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<short,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::v_item<boost::checked_vector_property_map<unsigned char,
>       boost::typed_identity_property_map<unsigned long> >,
>       boost::mpl::vector0<mpl_::na>, 0>, 0>, 0>, 0>, 0>, 0>, 0> >' requested
>       here
>         (g, std::bind<>(get_central_point_dominance(), std::placeholders::_1,
>         ^
> ./../graph.hh:177:30: note: declared private here
>     shared_ptr<multigraph_t> _mg;
>                              ^
> In file included from graph_betweenness.cc:18:
> ./../graph_filtering.hh:481:43: error: '_mg' is a private member of
>       'graph_tool::GraphInterface'
>         : _g(g), _a(a, g, num_vertices(*g._mg),
>                                           ^
> ./../graph.hh:177:30: note: declared private here
>     shared_ptr<multigraph_t> _mg;
>                              ^
> 1 warning and 8 errors generated.
> make[4]: *** [graph_betweenness.lo] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> _______________________________________________
> graph-tool mailing list
> [email protected]
> http://lists.skewed.de/mailman/listinfo/graph-tool

_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to