Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 在mac上使用macports安装gdal时出错_Macos_Macports_Gdal - Fatal编程技术网

Macos 在mac上使用macports安装gdal时出错

Macos 在mac上使用macports安装gdal时出错,macos,macports,gdal,Macos,Macports,Gdal,我正在运行Mac10.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 gda

我正在运行Mac10.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

如何修复此问题?

确保已安装Xcode和Xcode命令行工具;否则,
端口
将无法安装任何东西,您将收到类似这样的错误。Xcode命令行工具提供了MacPorts调用的
/usr/bin/make
应用程序


如果在验证您是否安装了Xcode和Xcode命令行工具后,它仍然无法工作,那么很可能是因为10.7.5已经过时,不仅苹果不再支持该操作系统,大多数其他软件供应商也不支持该操作系统


很抱歉打断您,可能是时候升级了。好消息是,它可能是免费的

您可以将自制软件与MacPorts一起安装,考虑到您所说的很少,我也会这么做。如果您不小心在每个数据包管理器中安装什么,您可能会遇到问题,但是如果您不能解决您报告的问题,那么您就没有更多的选择了

无论如何,您的问题可能是您没有/usr/bin/make。
尝试键入Terminal“/usr/bin/make”并报告您得到的结果。

不想使用自制软件,因为不建议将其与macports一起安装。如果您在internet上做任何事情或在Mac上使用公共Wi-Fi网络,您将面临严重的风险。10.7.5实际上已经死了。有没有办法接近支持的安装?感谢@ HRBRMSTR,我可以考虑更新到一个较新的MAC版本,如果没有它不能使这项工作。但是,这个mac作为一个内部集群,我不确定更新它是否会破坏每个人的利益。您是否查看了/opt/local/var/macports/logs/\u opt\u local\u var\u macports\u sources\u rsync.macports.org\u release\u tarballs\u ports\u gis\u gdal/gdal/main.log以了解更多详细信息,如错误消息中所述?谢谢@mico,我已经查看了。我问题中的错误消息来自main.log文件