我正在努力让mkbundle工具在MacOSX10.7上工作。我安装了XCode 5,几个不同的Mono版本,从v2到v4。每次我试图编译我的代码时,我都会得到一个
sh: as: command not found当我试图找到这个命令时,它也不在我的系统上。谷歌搜索(因为" as“太通用而被过滤掉)相当困难,我根本找不到解决这个问题的方法。我能找到的最好的资源是XCode的本地编译器,但是我已经安装了.
有人能帮忙吗?
发布于 2015-07-20 20:48:21
您正在寻找Xcode汇编程序:
> man作为
NAME
as - Mac OS X Mach-O GNU-based assemblers
SYNOPSIS
as [ option ... ] [ file ... ]
DESCRIPTION
The as command translates assembly code in the named files to object code.
If no files are specified, as reads from stdin. All undefined symbols in
the assembly are treated as global. The output of the assembly is left in
the file a.out by default.
The program /usr/bin/as is actually a driver that executes assemblers for
specific target architectures. If no target architecture is specified, it
defaults to the architecture of the host it is running on.您是否安装了Xcode 和 it's cmd行工具?
> which as
/usr/bin/as
> file `which as`
/usr/bin/as: Mach-O 64-bit executable x86_64位于Xcode.app:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/x86_64/asXcode cmd-行文工具:
假设您已经通过App安装了“免费”Xcode包,则可以通过"xcode-select“安装cmd行工具。进入一个术语窗口,并:
xcode-选择--帮助
Usage: xcode-select [options]
Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).
Options:
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s <path>, --switch <path> set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools pathxcode-选择--安装
安装后,您将通过App获得更新
https://stackoverflow.com/questions/31525261
复制相似问题