0

我想在 Ubuntu 16.04 上安装 Luci Web 界面。我尝试使用 git clone 单独安装 Luci。但是在运行make文件之后

sudo make runuhttpd 

我收到一些错误:

rm -f host/luci
ln -s ./usr/lib/lua/luci host/luci
rm -rf /tmp/luci-* || true
build/hostenv.sh /home/NEWUSER/Desktop/openwrt/build/uci/build/luci/host /usr/lib/lua /usr/lib/lua "/home/NEWUSER/Desktop/openwrt/build/uci/build/luci/host/bin/uci-defaults --exclude luci-freifunk-*"
/home/NEWUSER/Desktop/openwrt/build/uci/build/luci/host/bin/../etc/uci-defaults/luci-upnp: line 3: /etc/init.d/miniupnpd: No such file or directory
/home/NEWUSER/Desktop/openwrt/build/uci/build/luci/host/bin/../etc/uci-defaults/luci-minidlna: line 3: /etc/init.d/minidlna: No such file or directory
cp /home/NEWUSER/Desktop/openwrt/build/uci/build/luci/build/luci.cgi /home/NEWUSER/Desktop/openwrt/build/uci/build/luci/host/www/cgi-bin/luci
build/hostenv.sh /home/NEWUSER/Desktop/openwrt/build/uci/build/luci/host /usr/lib/lua /usr/lib/lua "/home/NEWUSER/Desktop/openwrt/build/uci/build/luci/host/usr/sbin/uhttpd -p 8080 -h /home/NEWUSER/Desktop/openwrt/build/uci/build/luci/host/www -f"
build/hostenv.sh: 8: build/hostenv.sh: /home/NEWUSER/Desktop/openwrt/build/uci/build/luci/host/usr/sbin/uhttpd: not found
Makefile:64: recipe for target 'runuhttpd' failed
make: *** [runuhttpd] Error 127

关于这个错误有什么建议吗?谢谢

4

2 回答 2

1

我也面临同样的问题

home/engineer/repo/chetan_luci/luci/host/bin/../etc/uci-defaults/luci-minidlna:第 3 行:/etc/init.d/minidlna:没有这样的文件或目录

/home/engineer/repo/chetan_luci/luci/host/bin/../etc/uci-defaults/luci-upnp:第 3 行:/etc/init.d/miniupnpd:没有这样的文件或目录 c/luci/host /usr/sbin/uhttpd:未找到 Makefile:64:目标“runuhttpd”的配方失败 make:*** [runuhttpd] 错误 127

于 2017-05-05T09:29:53.297 回答
0

Openwrt 的包在 makefile 中标记了一些依赖项,要在 x86 平台上运行任何包,您必须使用所有依赖项编译它。在这种情况下,从共享日志中可以清楚地看出 Luci 正在尝试启动 uhttd(Luci 的默认 Web 服务器)不存在,因此出现了错误。

于 2017-04-29T18:01:40.877 回答