在Ubuntu系统下安装luci的步骤和注意事项

来源:互联网 发布:域名查询ip 编辑:程序博客网 时间:2024/04/27 13:38

为了便于开发luci应用,需要搭建一个方便的环境,而通过不断编译烧写firmware的方法来进行luci应用的调试,显然是一个费时费力的过程。实际上,luci是可以安装在host系统上的。


0.准备工作:安装lua和luadev相关的header

1.进入feeds/luci目录,直接make

在make过程中,会有一个错误。需要进入feeds/luci/libs/luaneightbl/src对neightbl.c进行修改,添加一个包含文件:

#include <lauxlib.h>// ### manfeel : added for netlink.h expected specifier-qualifier-list before ‘sa_family_t’#include <bits/sockaddr.h>// ### manfeel #include <linux/rtnetlink.h>#include <sys/socket.h>
2.仍然在luci目录,make runuhttpd

3.浏览器中打开地址 http://127.0.0.1:8080


原创粉丝点击