2017年4月18日星期二

debian/ubuntu/openwrt/lede编译环境

openwrt/lede编译环境

在 Debian 7(Wheezy) 编译 libev 版本需要开启 debian-backports 来安装 dh-systemd 和 init-system-helpers.
首先要在 debian 的源列表中添加 backports 源
/etc/apt/sources.list
然后在末尾出添加
deb http://ftp.debian.org/debian wheezy-backports main

在 Debian 7(Wheezy)添加nodejs源
curl -sL https://deb.nodesource.com/setup | bash -

32位(x86)请执行下列命令:
apt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev patch unzip zlib1g-dev ccache g++ bison flex autoconf make gcc subversion libtool sphinx-common mercurial sharutils ncurses-term git-core texinfo curl debhelper dh-systemd init-system-helpers pkg-config xmlto libpcre3-dev libc-ares2 libglib2.0-dev libgsasl7 libntlm0 libssl-dev libssl-doc libv8-dev msmtp nodejs p7zip p7zip-full pkg-config gcc-multilib wget nano -y

64位(x86_64)请执行下列命令:
apt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev patch unzip zlib1g-dev ccache g++ bison flex autoconf make gcc subversion libtool sphinx-common mercurial sharutils ncurses-term git-core texinfo curl debhelper dh-systemd init-system-helpers pkg-config xmlto libpcre3-dev libc-ares2 libglib2.0-dev libgsasl7 libntlm0 libssl-dev libssl-doc libv8-dev msmtp nodejs p7zip p7zip-full pkg-config gcc-multilib wget nano lib32gcc1 libc6-dev-i386 -y

没有评论:

发表评论