您的位置:首页 > 运维架构

openwrt 开发,持续更新

2017-01-20 17:19 246 查看
1.首先安装linux虚拟机

2.更新Linux编译环境

1,ubantu 更新后先执行sudo apt-get update 更新软件源

如果出现

E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)

E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?错误

原因是有可能有其他的apt-get进程在活动。
解决办法,把apt-get进程找出来,杀死
ps aux | grep apt-get
sudo kill -9 <PID>


3.开启终端, 新建一个openwrt文件夹, // mkdir openwrt

4.安装git客户端, // apt install git

5. 更新git apt

6. 安装编译环境 sudo apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils subversion libncurses5-dev ncurses-term zlib1g-dev

7. 用git 下载openwrt 源码 git clone git://git.openwrt.org/14.07/openwrt.git
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: