我正在尝试使用 MacPorts 安装 Python 版 graph-tool,但由于某种原因,它无法安装。我检查了端口日志,发现了很多错误,如下所示:
:info:build ./../fast_vector_property_map.hh:136:7: note: candidate constructor (the implicit copy c\
onstructor) not viable: requires 1 argument, but 2 were provided
:info:build class unchecked_vector_property_map
:info:build ^
:info:build fatal error: too many errors emitted, stopping now [-ferror-limit=]
:info:build 20 errors generated.
和这个:
:info:build In file included from graph_eigenvector.cc:24:
:info:build ./graph_eigenvector.hh:44:23: error: no matching constructor for initialization of 'boos\
t::unchecked_vector_property_map<double, boost::vec_adj_list_vertex_id_map<boost::no_property, unsig\
ned long>>'
:info:build CentralityMap c_temp(vertex_index, num_vertices(g));
:info:build ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
最后
:info:build Exit code: 2
:error:build org.macports.build for port py27-graph-tool returned: command execution failed
:debug:build Error code: CHILDSTATUS 22204 2
:debug:build Backtrace: command execution failed
while executing
"system -nice 0 $fullcmdstring"
("eval" body line 1)
invoked from within
"eval system $notty $nice \$fullcmdstring"
invoked from within
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for py27-graph-tool: org.macports.activate org.macports.bu\
ild org.macports.destroot org.macports.install
我不太明白发生了什么。我还尝试手动安装 graph-tool,但无法使所有依赖项(特别是 pycairo)正常工作。可能发生了什么?MacPorts 是否可能错误地安装了某些依赖项