我正在运行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
如何解决这个问题?
答案 0 :(得分:2)
确保已安装 Xcode和Xcode命令行工具 ;否则$scope.getData = dataService.getData(function(response){
$scope.myData = response.data;
console.log($scope.myData);
});
将无法安装任何东西,你会收到这样的错误。 Xcode命令行工具提供了由MacPorts调用的$scope.getData = dataService.getData.bind(this, function(response) {
$scope.myData = response.data;
console.log($scope.myData);
});
应用程序。
如果在验证您安装了Xcode和Xcode命令行工具后仍然无法正常工作,那么很可能是由于 10.7.5是deader然后死了而不仅仅是 Apple不再支持该操作系统,也不支持大多数其他软件供应商。
很抱歉打破它,但可能是时候升级了。好消息,它很可能免费!
答案 1 :(得分:1)
你可以和MacPorts一起安装Homebrew,这就是我所做的,只要你说的很少。如果您对每个数据包管理器中安装的内容不小心,可能会出现问题,但如果您无法解决问题,例如您报告的问题,则无论如何都没有更多选项。
在任何情况下,您的问题可能是您没有/ usr / bin / make。 尝试在终端“/ usr / bin / make”中键入内容并报告您所获得的内容。