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

http://blog.csdn.net/manfeel/article/details/14168941

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


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

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

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

  1. #include <lauxlib.h>  
  2. // ### manfeel : added for netlink.h expected specifier-qualifier-list before ‘sa_family_t’  
  3. #include <bits/sockaddr.h>  
  4. // ### manfeel   
  5. #include <linux/rtnetlink.h>  
  6. #include <sys/socket.h>  

2.仍然在luci目录,make runuhttpd

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

 

在我这里没有出现这样的错误,不过会提示说iwinfo.h不存在。解决的方法是把

tf@ubuntu:~/projects/openwrt1407/build_dir/target-mips_34kc_uClibc-0.9.33.2/libiwinfo/include$ sudo cp -r * /usr/include/

iwinfo.h及目录拷贝到/usr/include下面去,这样/usr/include下面会有iwinfo文件夹和iwinfo.h文件了。

运行make runuhttpd就可以了。

 

在进行网页调试的时候可能常常会碰到更改了HTML代码而浏览器上反映不出来的情况,这很可能是你的Cookie在捣蛋,这时你应该清除你的History然后使用Private模式进行调试。

posted @ 2014-11-19 14:29  Merlin-magic  阅读(3703)  评论(0编辑  收藏  举报