Skip to content

Instantly share code, notes, and snippets.

@simpx
Created September 6, 2012 04:41
Show Gist options
  • Save simpx/3651314 to your computer and use it in GitHub Desktop.
Save simpx/3651314 to your computer and use it in GitHub Desktop.
openwrt 交叉编译 on Macos
1. 安装 homebrew
2. 使用磁盘工具,分出5G空间并挂载(日志式,区分大小写)
3. brew install coreutils gawk wget findutils gnu-getopt
3.1 macos中自带的getopt不兼容,需要手动将brew目录中的gnu-getopt link到/usr/bin中
4. 在trunk目录中执行make prereq,brew install安装依赖
@freestyletime
Copy link

感谢,3.1帮了大忙,原来是不兼容的问题。

@storypku
Copy link

3.1: It had better be linked to /usr/local/bin/getopt, and add /usr/local/bin to the PATH env before /usr/bin
e.g., export PATH=/usr/local/bin:$PATH in bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment