【发布时间】:2016-03-17 21:08:27
【问题描述】:
我正在运行 Mac 10.7.5 并想使用 macports 安装 GDAL。我这样做:
sudo port install gdal
但我收到此错误:
---> Computing dependencies for gdal
---> Building gdal
Error: org.macports.build for port gdal returned: command execution failed
Please see the log file for port gdal for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port gdal failed
main.log文件中错误的最后一部分是:
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.0.2" && /usr/bin/make -j24 -w
:info:build Exit code: 2
:error:build org.macports.build for port gdal returned: command execution failed
:debug:build Error code: CHILDSTATUS 78620 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
"portbuild::build_main org.macports.build"
("eval" body line 1)
invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for gdal: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port gdal for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/main.log
如何解决这个问题?
【问题讨论】:
-
不想使用自制软件,因为不建议与 macports 共同安装
-
如果您在 Internet 上进行任何操作或在 Mac 上使用公共 Wi-Fi 网络,您将面临严重的风险。 10.7.5 实际上已经死了。有没有办法接近受支持的安装?
-
感谢@hrbrmstr,如果没有它无法完成这项工作,我可以考虑更新到更新的 mac 版本。但是,此 mac 充当内部集群,不确定更新它是否会影响所有人。
-
您是否查看过 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/main.log 以了解更多详细信息,如错误消息中所述?
-
谢谢@mico,我有。我的问题中的错误消息来自那个 main.log 文件