Skip to content

Instantly share code, notes, and snippets.

@openp2pdesign
Last active February 19, 2020 09:20
Show Gist options
  • Save openp2pdesign/8864593 to your computer and use it in GitHub Desktop.
Save openp2pdesign/8864593 to your computer and use it in GitHub Desktop.
Install graph-tool on Mac OS Mavericks with python installed with brew

Install prerequisites

Install Homebrew

Install Python

  • brew install python
  • vim ~/.bash_profile
  • and insert this code:

Set architecture flags

export ARCHFLAGS="-arch x86_64"

Ensure user-installed binaries take precedence

export PATH=/usr/local/bin:$PATH

Load .bashrc if it exists

test -f ~/.bashrc && source ~/.bashrc

  • . ~/.bash_profile
  • easy_install pip # If you don't have already pip installed

Install libraries and prerequisites

  • brew install gcc
  • pip install numpy
  • pip install scipy
  • brew install freetype
  • pip install matplotlib

Install graph-tool with brew

  • brew tap homebrew/science
  • brew install graph-tool
@stared
Copy link

stared commented Apr 6, 2015

This is a rather long list. What is wrong with using direct recipe from https://github.com/Homebrew/homebrew-science/blob/master/graph-tool.rb ?

$ brew tap homebrew-science
$ brew install graph-tool

It did work for me (I had brew-installed Python, and XCode).

@kastnerp
Copy link

kastnerp commented Apr 9, 2015

Use that one, please.
$ brew tap homebrew/science
$ brew install graph-tool

@openp2pdesign
Copy link
Author

This gist is an old solution, that was also featured on the graph-tool website back then.
But now the best solution is the official one with Brew, which came later:

$ brew tap homebrew-science
$ brew install graph-tool

@openp2pdesign
Copy link
Author

I've updated the file to the current process.

@aa21
Copy link

aa21 commented Dec 24, 2017

Ending 2017, this worked perfectly for me.

Edit: 1 Week later - NO it doesn't work. I spoke far far too soon. When I try to run a simple script with graph-tool it crashes. I'm not even back to square one, I'm at square -15. Seriously thinking of abandoning graph-tool and heading for NetworkX or iGraph. Shame.

@maxvonhippel
Copy link

The brew tap homebrew/science should be updated to brew tap brewsci/bio. Otherwise, thanks for this!

@joanna350
Copy link

what about for conda-installed python users?

@mazlo
Copy link

mazlo commented Sep 28, 2018

I'm on High Sierra and the change in comment by @maxvonhippel worked for me.

To sum up

$ brew tab homebrew/science
Updating Homebrew...

Error: homebrew/science was deprecated. This tap is now empty as all its formulae were migrated.
$
$ brew tap homebrew-science
Updating Homebrew...
==> Updated Formulae
nim

Error: Invalid tap name 'homebrew-science'
$
$ brew tap brewsci/bio
==> Tapping brewsci/bio
Cloning into '/usr/local/Homebrew/Library/Taps/brewsci/homebrew-bio'...

@neuronphysics
Copy link

I am trying to install graph-tool on my Mac machine and I want to be installed on python 2.7. Well it seemed it got installed using both port and brew but when I imported it in python I got this error: Segmentation fault: 11. I tried to install it by compiling it by myself using the following configuration line:

./configure CC=clang CXX=clang++ CPPFLAGS="-I/usr/local/Celler/py2cairo/1.17.1/include" PYTHON_EXTRA_LDFLAGS="-L/usr/local/bin"

when I ran make install, I got this error:

/usr/local/Cellar/llvm/7.0.0/include/c++/v1/functional:670:21: error: invalid operands to binary expression ('const
      CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' and 'const CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >')
        {return __x == __y;}
                ~~~ ^  ~~~
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/unordered_map:486:17: note: in instantiation of member function
      'std::__1::equal_to<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> > >
      >::operator()' requested here
        {return static_cast<const _Pred&>(*this)(__x.__get_value().first, __y);}
                ^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/__hash_table:2043:21: note: in instantiation of member function
      'std::__1::__unordered_map_equal<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >, std::__1::__hash_value_type<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >, unsigned long>, std::__1::equal_to<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> > >
      >, true>::operator()' requested here
                if (key_eq()(__nd->__upcast()->__value_, __k))
                    ^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/unordered_map:1489:21: note: in instantiation of function template
      specialization 'std::__1::__hash_table<std::__1::__hash_value_type<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >, unsigned long>, std::__1::__unordered_map_hasher<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >, std::__1::__hash_value_type<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >, unsigned long>, graph_tool::hash_point, true>,
      std::__1::__unordered_map_equal<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >, std::__1::__hash_value_type<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >, unsigned long>, std::__1::equal_to<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> > >
      >, true>, std::__1::allocator<std::__1::__hash_value_type<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >, unsigned long> > >::__emplace_unique_key_args<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >, const std::__1::piecewise_construct_t &, std::__1::tuple<const CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> > >
      &>, std::__1::tuple<> >' requested here
    return __table_.__emplace_unique_key_args(__k,
                    ^
./graph_triangulation.hh:117:13: note: in instantiation of member function
      'std::__1::unordered_map<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >, unsigned long, graph_tool::hash_point, std::__1::equal_to<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> > >
      >, std::__1::allocator<std::__1::pair<const CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >, unsigned long> > >::operator[]' requested here
            vertex_map[*T.insert(p)] = v;
            ^
graph_triangulation.cc:97:17: note: in instantiation of function template specialization
      'graph_tool::get_triangulation<CGAL::Delaunay_triangulation_3<CGAL::Epick, CGAL::Default, CGAL::Default,
      CGAL::Default>, std::__1::integral_constant<bool, false>
      >::operator()<boost::undirected_adaptor<boost::adj_list<unsigned long> >, boost::multi_array_ref<double, 2>,
      boost::checked_vector_property_map<std::__1::vector<double, std::__1::allocator<double> >,
      boost::typed_identity_property_map<unsigned long> > >' requested here
                (g, points_array, pos_map);
                ^
/usr/local/include/CGAL/Modular_arithmetic/Residue_type.h:292:13: note: candidate function not viable: no known conversion
      from 'const CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' to 'const CGAL::Residue' for 1st argument
inline bool operator == (const Residue& p1, const Residue& p2)
            ^
/usr/local/include/CGAL/Modular_arithmetic/Residue_type.h:294:13: note: candidate function not viable: no known conversion
      from 'const CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' to 'const CGAL::Residue' for 1st argument
inline bool operator == (const Residue& p1, int p2)
            ^
/usr/local/include/CGAL/MP_Float.h:394:6: note: candidate function not viable: no known conversion from 'const
      CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' to 'const CGAL::MP_Float' for 1st argument
bool operator==(const MP_Float &a, const MP_Float &b)
     ^
/usr/local/include/CGAL/GMP/Gmpzf_type.h:561:6: note: candidate function not viable: no known conversion from 'const
      CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' to 'const CGAL::Gmpzf' for 1st argument
bool operator==(const Gmpzf &a, const Gmpzf &b)
     ^
/usr/local/include/CGAL/GMP/Gmpzf_type.h:574:6: note: candidate function not viable: no known conversion from 'const
      CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' to 'const CGAL::Gmpzf' for 1st argument
bool operator==(const Gmpzf &a, int b)
     ^
/usr/local/include/CGAL/GMP/Gmpfr_type.h:1231:6: note: candidate function not viable: no known conversion from 'const
      CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' to 'const CGAL::Gmpfr' for 1st argument
bool operator==(const Gmpfr &a,const Gmpfr &b){
     ^
/usr/local/include/CGAL/GMP/Gmpfr_type.h:1246:6: note: candidate function not viable: no known conversion from 'const
      CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' to 'const CGAL::Gmpfr' for 1st argument
bool operator==(const Gmpfr &a,long b){
     ^
/usr/local/include/CGAL/GMP/Gmpfr_type.h:1261:6: note: candidate function not viable: no known conversion from 'const
      CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' to 'const CGAL::Gmpfr' for 1st argument
bool operator==(const Gmpfr &a,unsigned long b){
     ^
/usr/local/include/CGAL/GMP/Gmpfr_type.h:1276:6: note: candidate function not viable: no known conversion from 'const
      CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' to 'const CGAL::Gmpfr' for 1st argument
bool operator==(const Gmpfr &a,int b){
     ^
/usr/local/include/CGAL/GMP/Gmpfr_type.h:1291:6: note: candidate function not viable: no known conversion from 'const
      CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' to 'const CGAL::Gmpfr' for 1st argument
bool operator==(const Gmpfr &a,double b){
     ^
/usr/local/include/CGAL/GMP/Gmpfr_type.h:1323:6: note: candidate function not viable: no known conversion from 'const
      CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' to 'const CGAL::Gmpfr' for 1st argument
bool operator==(const Gmpfr &a,long double b){
     ^
/usr/local/include/CGAL/GMP/Gmpfr_type.h:1339:6: note: candidate function not viable: no known conversion from 'const
      CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> >
      >' to 'const CGAL::Gmpfr' for 1st argument
bool operator==(const Gmpfr &a,const Gmpz &b){
     ^
graph_triangulation.cc:46:6: note: candidate function not viable: no known conversion from 'const
      Triangulation_vertex_base_3<[...], Triangulation_ds_vertex_base_3<Triangulation_data_structure_3<[...],
      CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_cell_base_3<void> > >, [...]>>>' to 'const Triangulation_vertex_base_3<[...],
      Triangulation_ds_vertex_base_3<Triangulation_data_structure_3<[...], CGAL::Triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_cell_base_3<void> >, [...]>>>' for 1st argument
bool operator==(const SimpleTriangulation::Vertex& a,
     ^
graph_triangulation.cc:63:6: note: candidate function not viable: no known conversion from 'const
      Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick,
      CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick,
      CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag>
      >>' to 'const Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick,
      CGAL::Periodic_3_offset_3, true>,
      CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick,
      CGAL::Periodic_3_offset_3, true>, CGAL::Periodic_3_triangulation_ds_vertex_base_3<void>
      >::Rebind_TDS<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick,
      CGAL::Periodic_3_offset_3, true>, CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
      CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick,
      CGAL::Periodic_3_offset_3, true>, CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >, CGAL::Sequential_tag>
      >::DSVb2>' for 1st argument
bool operator==(const PeriodicDelaunayTriangulation::Vertex& a,
     ^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/utility:558:1: note: candidate template ignored: could not match 'pair'
      against 'Triangulation_vertex_base_3'
operator==(const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/iterator:694:1: note: candidate template ignored: could not match
      'reverse_iterator' against 'Triangulation_vertex_base_3'
operator==(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/iterator:923:1: note: candidate template ignored: could not match
      'istream_iterator' against 'Triangulation_vertex_base_3'
operator==(const istream_iterator<_Tp, _CharT, _Traits, _Distance>& __x,
^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/iterator:1027:6: note: candidate template ignored: could not match
      'istreambuf_iterator' against 'Triangulation_vertex_base_3'
bool operator==(const istreambuf_iterator<_CharT,_Traits>& __a,
     ^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/iterator:1135:1: note: candidate template ignored: could not match
      'move_iterator' against 'Triangulation_vertex_base_3'
operator==(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/iterator:1507:1: note: candidate template ignored: could not match
      '__wrap_iter' against 'Triangulation_vertex_base_3'
operator==(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG
^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/tuple:1139:1: note: candidate template ignored: could not match 'tuple'
      against 'Triangulation_vertex_base_3'
operator==(const tuple<_Tp...>& __x, const tuple<_Up...>& __y)
^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/memory:1972:6: note: candidate template ignored: could not match 'allocator'
      against 'Triangulation_vertex_base_3'
bool operator==(const allocator<_Tp>&, const allocator<_Up>&) _NOEXCEPT {return true;}
     ^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/memory:2946:1: note: candidate template ignored: could not match 'unique_ptr'
      against 'Triangulation_vertex_base_3'
operator==(const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y) {return __x.get() == __y.get();}
^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/memory:2982:1: note: candidate template ignored: could not match 'unique_ptr'
      against 'Triangulation_vertex_base_3'
operator==(const unique_ptr<_T1, _D1>& __x, nullptr_t) _NOEXCEPT
^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/memory:2990:1: note: candidate template ignored: could not match 'unique_ptr'
      against 'Triangulation_vertex_base_3'
operator==(nullptr_t, const unique_ptr<_T1, _D1>& __x) _NOEXCEPT
^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/memory:4778:1: note: candidate template ignored: could not match 'shared_ptr'
      against 'Triangulation_vertex_base_3'
operator==(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT
^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/memory:4832:1: note: candidate template ignored: could not match 'shared_ptr'
      against 'Triangulation_vertex_base_3'
operator==(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT
^
/usr/local/Cellar/llvm/7.0.0/include/c++/v1/memory:4840:1: note: candidate template ignored: could not match 'shared_ptr'
      against 'Triangulation_vertex_base_3'
operator==(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT
^
/usr/local/include/CGAL/Uncertain.h:369:17: note: candidate template ignored: could not match 'Uncertain' against
      'Triangulation_vertex_base_3'
Uncertain<bool> operator==(Uncertain<T> a, Uncertain<T> b)
                ^
/usr/local/include/CGAL/Uncertain.h:380:17: note: candidate template ignored: could not match 'Uncertain' against
      'Triangulation_vertex_base_3'
Uncertain<bool> operator==(Uncertain<T> a, T b)
                ^
/usr/local/include/CGAL/Uncertain.h:391:17: note: candidate template ignored: could not match 'Uncertain' against
      'Triangulation_vertex_base_3'
Uncertain<bool> operator==(T a, Uncertain<T> b)
                ^
/usr/local/include/CGAL/Interval_nt.h:262:1: note: candidate template ignored: could not match 'Interval_nt' against
      'Triangulation_vertex_base_3'
operator==(const Interval_nt<Protected> &a, const Interval_nt<Protected> &b)
^
/usr/local/include/CGAL/Interval_nt.h:313:1: note: candidate template ignored: could not match 'Interval_nt' against
      'Triangulation_vertex_base_3'
operator==(double a, const Interval_nt<Protected> &b)
^
/usr/local/include/CGAL/Interval_nt.h:361:1: note: candidate template ignored: could not match 'Interval_nt' against
      'Triangulation_vertex_base_3'
operator==(const Interval_nt<Protected> &a, double b)
^
/usr/local/include/CGAL/Weighted_point_2.h:191:1: note: candidate template ignored: could not match 'Weighted_point_2'
      against 'Triangulation_vertex_base_3'
operator==(const Origin& o, const Weighted_point_2<R>& p)
^
/usr/local/include/CGAL/Weighted_point_2.h:204:1: note: candidate template ignored: could not match 'Point_2' against
      'Triangulation_vertex_base_3'
operator==(const Point_2<R>& bp, const Weighted_point_2<R>& p)
^
/usr/local/include/CGAL/Weighted_point_2.h:216:1: note: candidate template ignored: could not match 'Weighted_point_2'
      against 'Triangulation_vertex_base_3'
operator==(const Weighted_point_2<R>& p, const Point_2<R>& bp)
^
/usr/local/include/CGAL/Weighted_point_2.h:228:1: note: candidate template ignored: could not match 'Weighted_point_2'
      against 'Triangulation_vertex_base_3'
operator==(const Weighted_point_2<R>& p, const Weighted_point_2<R>& p2)
^
/usr/local/include/CGAL/Vector_2.h:260:1: note: candidate template ignored: could not match 'Vector_2' against
      'Triangulation_vertex_base_3'
operator==(const Vector_2<R> &v, const Null_vector &n)
^
/usr/local/include/CGAL/Vector_2.h:268:1: note: candidate template ignored: could not match 'Vector_2' against
      'Triangulation_vertex_base_3'
operator==(const Null_vector &n, const Vector_2<R> &v)
^
/usr/local/include/CGAL/Point_3.h:205:1: note: candidate template ignored: could not match 'Point_3' against
      'Triangulation_vertex_base_3'
operator==(const Origin& o, const Point_3<R>& p)
^
/usr/local/include/CGAL/Weighted_point_3.h:206:1: note: candidate template ignored: could not match 'Weighted_point_3'
      against 'Triangulation_vertex_base_3'
operator==(const Origin& o, const Weighted_point_3<R>& p)
^
/usr/local/include/CGAL/Weighted_point_3.h:218:1: note: candidate template ignored: could not match 'Point_3' against
      'Triangulation_vertex_base_3'
operator==(const Point_3<R>& bp, const Weighted_point_3<R>& p)
^
/usr/local/include/CGAL/Weighted_point_3.h:230:1: note: candidate template ignored: could not match 'Weighted_point_3'
      against 'Triangulation_vertex_base_3'
operator==(const Weighted_point_3<R>& p, const Point_3<R>& bp)
^
/usr/local/include/CGAL/Weighted_point_3.h:242:1: note: candidate template ignored: could not match 'Weighted_point_3'
      against 'Triangulation_vertex_base_3'
operator==(const Weighted_point_3<R>& p, const Weighted_point_3<R>& p2)
^
/usr/local/include/CGAL/Circle_3.h:165:1: note: candidate template ignored: could not match 'Circle_3' against
      'Triangulation_vertex_base_3'
operator==(const Circle_3<R> &p,
^
/usr/local/include/CGAL/Kernel/global_functions_2.h:42:1: note: candidate template ignored: could not match 'Point_2'
      against 'Triangulation_vertex_base_3'
operator==(const Point_2<K> &p, const Origin& o)
^
/usr/local/include/CGAL/Kernel/global_functions_2.h:811:1: note: candidate template ignored: could not match 'Point_2'
      against 'Triangulation_vertex_base_3'
operator==(const Point_2<K>& p, const Point_2<K>& q)
^
/usr/local/include/CGAL/Kernel/global_functions_2.h:847:1: note: candidate template ignored: could not match 'Vector_2'
      against 'Triangulation_vertex_base_3'
operator==(const Vector_2<K>& v, const Vector_2<K>& w)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:759:1: note: candidate template ignored: could not match 'Point_3'
      against 'Triangulation_vertex_base_3'
operator==(const Point_3<K>& p, const Point_3<K>& q)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:771:1: note: candidate template ignored: could not match 'Point_3'
      against 'Triangulation_vertex_base_3'
operator==(const Point_3<K>& p, const Origin& o)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:783:1: note: candidate template ignored: could not match
      'Iso_cuboid_3' against 'Triangulation_vertex_base_3'
operator==(const Iso_cuboid_3<K>& p, const Iso_cuboid_3<K>& q)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:795:1: note: candidate template ignored: could not match 'Plane_3'
      against 'Triangulation_vertex_base_3'
operator==(const Plane_3<K>& p, const Plane_3<K>& q)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:807:1: note: candidate template ignored: could not match 'Segment_3'
      against 'Triangulation_vertex_base_3'
operator==(const Segment_3<K>& p, const Segment_3<K>& q)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:819:1: note: candidate template ignored: could not match 'Line_3'
      against 'Triangulation_vertex_base_3'
operator==(const Line_3<K>& p, const Line_3<K>& q)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:831:1: note: candidate template ignored: could not match 'Ray_3'
      against 'Triangulation_vertex_base_3'
operator==(const Ray_3<K>& p, const Ray_3<K>& q)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:843:1: note: candidate template ignored: could not match 'Triangle_3'
      against 'Triangulation_vertex_base_3'
operator==(const Triangle_3<K>& p, const Triangle_3<K>& q)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:855:1: note: candidate template ignored: could not match
      'Tetrahedron_3' against 'Triangulation_vertex_base_3'
operator==(const Tetrahedron_3<K>& p, const Tetrahedron_3<K>& q)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:867:1: note: candidate template ignored: could not match 'Direction_3'
      against 'Triangulation_vertex_base_3'
operator==(const Direction_3<K>& p, const Direction_3<K>& q)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:879:1: note: candidate template ignored: could not match 'Sphere_3'
      against 'Triangulation_vertex_base_3'
operator==(const Sphere_3<K>& p, const Sphere_3<K>& q)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:891:1: note: candidate template ignored: could not match 'Vector_3'
      against 'Triangulation_vertex_base_3'
operator==(const Vector_3<K>& p, const Vector_3<K>& q)
^
/usr/local/include/CGAL/Kernel/global_functions_3.h:903:1: note: candidate template ignored: could not match 'Vector_3'
      against 'Triangulation_vertex_base_3'
operator==(const Vector_3<K>& p, const Null_vector& o)
^
/usr/local/include/CGAL/Cartesian/Vector_2.h:107:1: note: candidate template ignored: could not match 'VectorC2' against
      'Triangulation_vertex_base_3'
operator==(const VectorC2<R> &v, const VectorC2<R> &w)
^
/usr/local/include/CGAL/Cartesian/Vector_2.h:123:1: note: candidate template ignored: could not match 'VectorC2' against
      'Triangulation_vertex_base_3'
operator==(const VectorC2<R> &v, const Null_vector &)
^
/usr/local/include/CGAL/Cartesian/Vector_2.h:131:1: note: candidate template ignored: could not match 'VectorC2' against
      'Triangulation_vertex_base_3'
operator==(const Null_vector &n, const VectorC2<R> &v)
^
/usr/local/include/CGAL/Cartesian/Vector_3.h:142:1: note: candidate template ignored: could not match 'VectorC3' against
      'Triangulation_vertex_base_3'
operator==(const VectorC3<R> &v, const VectorC3<R> &w)
^
/usr/local/include/CGAL/Cartesian/Vector_3.h:158:1: note: candidate template ignored: could not match 'VectorC3' against
      'Triangulation_vertex_base_3'
operator==(const VectorC3<R> &v, const Null_vector &) 
^
/usr/local/include/CGAL/Cartesian/Vector_3.h:167:1: note: candidate template ignored: could not match 'VectorC3' against
      'Triangulation_vertex_base_3'
operator==(const Null_vector &n, const VectorC3<R> &v) 
^
/usr/local/include/CGAL/Quotient.h:474:1: note: candidate template ignored: could not match 'Quotient' against
      'Triangulation_vertex_base_3'
operator==(const Quotient<NT>& x, const Quotient<NT>& y)
^
/usr/local/include/CGAL/Quotient.h:480:1: note: candidate template ignored: could not match 'Quotient' against
      'Triangulation_vertex_base_3'
operator==(const Quotient<NT>& x, const NT& y)
^
/usr/local/include/CGAL/Quotient.h:486:1: note: candidate template ignored: could not match 'Quotient' against
      'Triangulation_vertex_base_3'
operator==(const Quotient<NT>& x, const CGAL_int(NT) & y)
^
/usr/local/include/CGAL/Quotient.h:492:1: note: candidate template ignored: could not match 'Quotient' against
      'Triangulation_vertex_base_3'
operator==(const Quotient<NT>& x, const CGAL_double(NT) & y)
^
/usr/local/include/CGAL/Sqrt_extension/Sqrt_extension_type.h:737:1: note: candidate template ignored: could not match
      'Sqrt_extension' against 'Triangulation_vertex_base_3'
operator == (const Sqrt_extension<NT,ROOT,Tag_false,FP_TAG>& p1, const Sqrt_extension<NT,ROOT,Tag_false,FP_TAG>& p2)
^
/usr/local/include/CGAL/Sqrt_extension/Sqrt_extension_type.h:740:1: note: candidate template ignored: could not match
      'Sqrt_extension' against 'Triangulation_vertex_base_3'
operator == (const Sqrt_extension<NT,ROOT,Tag_true,FP_TAG>& p1, const Sqrt_extension<NT,ROOT,Tag_true,FP_TAG>& p2)
^
/usr/local/include/CGAL/Sqrt_extension/Sqrt_extension_type.h:749:67: note: candidate template ignored: could not match
      'Sqrt_extension' against 'Triangulation_vertex_base_3'
template <class NT,class ROOT,class ACDE_TAG,class FP_TAG>   bool operator ==
                                                                  ^
/usr/local/include/CGAL/Sqrt_extension/Sqrt_extension_type.h:760:65: note: candidate template ignored: could not match
      'Sqrt_extension' against 'Triangulation_vertex_base_3'
template <class NT,class ROOT,class ACDE_TAG,class FP_TAG> bool operator ==
                                                                ^
/usr/local/include/CGAL/Sqrt_extension/Sqrt_extension_type.h:772:68: note: candidate template ignored: could not match
      'Sqrt_extension' against 'Triangulation_vertex_base_3'
template <class NT,class ROOT,class ACDE_TAG,class FP_TAG>    bool operator ==
                                                                   ^
/usr/local/include/CGAL/Sqrt_extension/Sqrt_extension_type.h:782:65: note: candidate template ignored: could not match
      'Sqrt_extension' against 'Triangulation_vertex_base_3'
template <class NT,class ROOT,class ACDE_TAG,class FP_TAG> bool operator ==
                                                                ^
/usr/local/include/CGAL/Lazy_exact_nt.h:518:1: note: candidate template ignored: could not match 'Lazy_exact_nt' against
      'Triangulation_vertex_base_3'
operator==(const Lazy_exact_nt<ET1>& a, const Lazy_exact_nt<ET2>& b)
^
/usr/local/include/CGAL/Lazy_exact_nt.h:594:1: note: candidate template ignored: could not match 'Lazy_exact_nt' against
      'Triangulation_vertex_base_3'
operator==(const Lazy_exact_nt<ET>& a, int b)
^
/usr/local/include/CGAL/Lazy_exact_nt.h:632:1: note: candidate template ignored: could not match 'Lazy_exact_nt' against
      'Triangulation_vertex_base_3'
operator==(const Lazy_exact_nt<ET>& a, double b)
^
/usr/local/include/CGAL/utility.h:161:13: note: candidate template ignored: could not match 'Triple' against
      'Triangulation_vertex_base_3'
inline bool operator==(const Triple<T1, T2, T3>& x,
            ^
/usr/local/include/CGAL/utility.h:261:1: note: candidate template ignored: could not match 'Quadruple' against
      'Triangulation_vertex_base_3'
operator==(const Quadruple<T1, T2, T3, T4>& x,
^
/usr/local/include/CGAL/iterator.h:641:6: note: candidate template ignored: could not match 'Filter_iterator' against
      'Triangulation_vertex_base_3'
bool operator==(const Filter_iterator<I,P>& it1,
     ^
/usr/local/include/CGAL/Compact_container.h:982:6: note: candidate template ignored: could not match 'Compact_container'
      against 'Triangulation_vertex_base_3'
bool operator==(const Compact_container<T, Allocator, Increment_policy, TimeStamper> &lhs,
     ^
/usr/local/include/CGAL/Compact_container.h:1267:8: note: candidate template ignored: could not match 'CC_iterator'
      against 'Triangulation_vertex_base_3'
  bool operator==(const CC_iterator<DSC, Const1> &rhs,
       ^
/usr/local/include/CGAL/Compact_container.h:1284:8: note: candidate template ignored: could not match 'CC_iterator'
      against 'Triangulation_vertex_base_3'
  bool operator==(const CC_iterator<DSC, Const> &rhs,
       ^
/usr/local/include/CGAL/Triangulation_simplex_3.h:165:1: note: candidate template ignored: could not match
      'Triangulation_simplex_3' against 'Triangulation_vertex_base_3'
operator==(Triangulation_simplex_3<TriangulationDataStructure_3> s0,
^
/usr/local/include/CGAL/internal/Triangulation_ds_circulators_3.h:181:1: note: candidate template ignored: could not match
      'Triangulation_ds_cell_circulator_3' against 'Triangulation_vertex_base_3'
operator==(typename Tds_::Cell_handle ch, Triangulation_ds_cell_circulator_3<Tds_> cc)
^
/usr/local/include/CGAL/Triangulation_3.h:6956:1: note: candidate template ignored: could not match 'Triangulation_3'
      against 'Triangulation_vertex_base_3'
operator==(const Triangulation_3<GT, Tds1, Lds>& t1,
^
/usr/local/include/CGAL/Periodic_3_triangulation_3.h:4331:1: note: candidate template ignored: could not match
      'Periodic_3_triangulation_3' against 'Triangulation_vertex_base_3'
operator==(const Periodic_3_triangulation_3<GT,TDS1>& t1,
^
1 error generated.
make[3]: *** [graph_triangulation.lo] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

Is there any way to solve this error? Thanks.

@jefftrull
Copy link

jefftrull commented Feb 3, 2019

@neuronphysics suspect your problem is the same as mine, reported here: https://git.skewed.de/count0/graph-tool/issues/509. Solution is to build from git...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment