首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MacOSX10.7上的Mono mkbundle

MacOSX10.7上的Mono mkbundle
EN

Stack Overflow用户
提问于 2015-07-20 19:57:49
回答 1查看 263关注 0票数 0

我正在努力让mkbundle工具在MacOSX10.7上工作。我安装了XCode 5,几个不同的Mono版本,从v2到v4。每次我试图编译我的代码时,我都会得到一个

代码语言:javascript
复制
sh: as: command not found

当我试图找到这个命令时,它也不在我的系统上。谷歌搜索(因为" as“太通用而被过滤掉)相当困难,我根本找不到解决这个问题的方法。我能找到的最好的资源是XCode的本地编译器,但是我已经安装了.

有人能帮忙吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-07-20 20:48:21

您正在寻找Xcode汇编程序:

> man作为

代码语言:javascript
复制
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行工具?

代码语言:javascript
复制
> which as 
/usr/bin/as

> file `which as`
/usr/bin/as: Mach-O 64-bit executable x86_64

位于Xcode.app:

代码语言:javascript
复制
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/x86_64/as

Xcode cmd-行文工具:

假设您已经通过App安装了“免费”Xcode包,则可以通过"xcode-select“安装cmd行工具。进入一个术语窗口,并:

xcode-选择--帮助

代码语言:javascript
复制
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 path

xcode-选择--安装

安装后,您将通过App获得更新

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31525261

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档