【发布时间】:2014-07-13 05:19:28
【问题描述】:
我正在尝试关注these directions 来安装 Google Protocol Buffers。创建脚本后,我尝试使用以下命令运行它:
$ ./build-proto-ios.sh
我收到以下输出:
mkdir: ios-build: File exists
Platform is iPhoneSimulator
./build-proto-ios.sh: line 40: ./configure: No such file or directory
make: error: unable to find utility "make", not a developer tool or in PATH
make: error: unable to find utility "make", not a developer tool or in PATH
cp: src/.libs/libprotobuf-lite.a: No such file or directory
Platform is iPhoneOS
./build-proto-ios.sh: line 40: ./configure: No such file or directory
make: error: unable to find utility "make", not a developer tool or in PATH
make: error: unable to find utility "make", not a developer tool or in PATH
cp: src/.libs/libprotobuf-lite.a: No such file or directory
Platform is iPhoneOS
./build-proto-ios.sh: line 40: ./configure: No such file or directory
make: error: unable to find utility "make", not a developer tool or in PATH
make: error: unable to find utility "make", not a developer tool or in PATH
cp: src/.libs/libprotobuf-lite.a: No such file or directory
make: error: unable to find utility "make", not a developer tool or in PATH
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: ios-build/libprotobuf-lite-armv7.a (No such file or directory)
所以,我查找了以下信息:
无法找到实用程序“make”,而不是开发人员工具或在 PATH 中
我发现 this information 用于安装 Xcode 命令行工具,因为我认为这可能是原因。但即使在为 OS X Mavericks 安装了最新的命令行工具后,我仍然会收到此错误。
有什么想法吗?
【问题讨论】:
-
在你的 shell 提示符下,尝试
which make -
这两个都试过了。它在 PATH 中
-
/usr/bin/make只是一个转发器,它在 quellish 的答案中转发到路径上的 make。确保您有权访问该路径。试试他的xcrun make看看会产生什么,我猜它不会起作用,但也许 :) 您看到的错误消息是转发器找不到合适的真正二进制文件来使用。跨度>
标签: ios command-line protocol-buffers