2017-10-25 12 views
1

Mein ultimatives Ziel ist Python-Paket graph_tool arbeiten auf meinem System und auch auf ipynb, wenn möglich. Ich habe schon brew install graph-tool, as indicated here, aber das ist immer noch nicht ausreichend.configure: error: CGAL-Bibliothek nicht gefunden

Also ich folge Anaconda instructions here, und ich mache einen ordentlichen Fortschritt, bis die CGAL Bibliothek nicht gefunden werden konnte.

Hinweis: mit den Anaconda Anweisungen zu erfüllen, habe ich installiert anaconda3 und eine neue Conda Umgebung (benannt py36env) zu Conda installieren alle benötigten Pakete (Pakete, die auch mit Python 3.6 entsprechen muss)

Die entire ./configure output. Unten ist ein Schnipsel:

(py36env) $ ./configure --prefix=/Users/tamtran/anaconda3/envs/py36env/ --with-python-module-path=/Users/tamtran/anaconda3/envs/py36env/lib/python3.6/site-packages --with-cgal=/Users/tamtran/anaconda3/envs/py36env/ 
. 
. 
checking whether CGAL is available in /Users/tamtran/anaconda3/envs/py36env/... no 
configure: error: CGAL library not found. 

Die entire config.log. Im Folgenden ist ein Ausschnitt:

configure:21200: checking whether CGAL is available in /Users/tamtran/anaconda3/envs/py36env/ 
configure:21236: g++ -std=gnu++14 -o conftest -fopenmp -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-deprecated -Wall -Wextra -ftemplate-backtrace-limit=0 -DNDEBUG -I/Users/tamtran/anaconda3/envs/py36env//include -pthread -I/usr/local/include -L/Users/tamtran/anaconda3/envs/py36env//lib -lCGAL -lCGAL_Core -lgmp -lboost_thread-mt -lpthread conftest.cpp -lgmp -lgmp >&5 
|  #include <CGAL/Exact_predicates_inexact_constructions_kernel.h> 
|  #include <CGAL/convex_hull_2.h> 
|  typedef CGAL::Exact_predicates_inexact_constructions_kernel K; 
|  CGAL::convex_hull_2(points.begin(),points.end(),std::back_inserter(result)); 
configure:21278: error: CGAL library not found. 
CGAL_CPPFLAGS='-I/Users/tamtran/anaconda3/envs/py36env//include' 
CGAL_FLAGS='' 
CGAL_LDFLAGS='-L/Users/tamtran/anaconda3/envs/py36env//lib -lCGAL -lCGAL_Core -lgmp -lboost_thread-mt -lpthread' 

Hinweis: Auch ohne den --with-cgal Tag tritt das gleiche Problem. Es ist auch wichtig (denke ich), dass das CGAL-Suchverzeichnis innerhalb von py36env liegt, da CGAL-Übereinstimmung mit python3.6 dort ist, während CGAL-python3.5 in der conda-root-Umgebung ist. Die einzigen Unterschiede von ./configure Ausgabe ohne CGAL Verzeichnis sind:

checking whether CGAL is available in /usr... no 
checking whether CGAL is available in /usr/local... no 
checking whether CGAL is available in /opt... no 
checking whether CGAL is available in /opt/local... no 
+0

Warum verwendet Homebrew ungenügend? Bitte posten Sie auch den gesamten Inhalt der 'config.log' Datei und die gesamte Ausgabe des' configure' Skripts, wenn Sie uns eine Chance geben wollen zu verstehen, warum der Build fehlschlägt. –

+0

Hi @TiagoPeixoto, wenn 'python3' und' from graph_tool.all import * ', Fehler auftritt' Symbol nicht gefunden: _PyClass_Type'. Ich werde auch versuchen, das wieder aufzunehmen. Aber die Installation von Anaconda hat mich in der Zwischenzeit verblüfft. Ich habe den Beitrag mit Links zum gesamten Logbuch und Ausgabeskript aktualisiert! – tamtam

Antwort

0

auf Mac OS X verwenden -lcgal muss (wird mit brauen)

zum Beispiel auf Fedoras Linux -lCGAL

Verwandte Themen