Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

过来关注请教下 #2

Closed
yfdoor opened this issue Mar 4, 2020 · 9 comments
Closed

过来关注请教下 #2

yfdoor opened this issue Mar 4, 2020 · 9 comments

Comments

@yfdoor
Copy link

yfdoor commented Mar 4, 2020

一直对这种官方的加某些插件包的感兴趣。自己也试过,可是总是出各种问题。clone 官方源码,然后把lean的包直接放到 package 下后。
我目前的尝试有:
修改feeds.config 文件,添加lean的package

src-git packages https://git.openwrt.org/feed/packages.git
src-git luci https://git.openwrt.org/project/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
src-git lean https://github.com/coolsnowwolf/packages.git

并在 tools 下添加缺少的upx, ucl 依赖并修改make file。可是在编译到V2ray 的时候还是总是出错。方便的话,请指导下这种混合的包如何搞,给点思路,谢谢

@iyuangang
Copy link
Owner

一直对这种官方的加某些插件包的感兴趣。自己也试过,可是总是出各种问题。clone 官方源码,然后把lean的包直接放到 package 下后。
我目前的尝试有:
修改feeds.config 文件,添加lean的package

src-git packages https://git.openwrt.org/feed/packages.git
src-git luci https://git.openwrt.org/project/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
src-git lean https://github.com/coolsnowwolf/packages.git

并在 tools 下添加缺少的upx, ucl 依赖并修改make file。可是在编译到V2ray 的时候还是总是出错。方便的话,请指导下这种混合的包如何搞,给点思路,谢谢

遇到同好,握手握手。
踩过不少坑,总结的经验如下。

  1. 下载官方 stable release 下的 最新稳定版本
    wget https://github.com/openwrt/openwrt/archive/v19.07.2.tar.gz
  2. 将L大的package/lean 拷贝到 上面的package 下
  3. 将L大的tools/upxtools/ucl 拷贝到上面的 tools 下
  4. 修改 tools 下的 Makefile
  5. 开始编译

@yfdoor
Copy link
Author

yfdoor commented Mar 4, 2020

一直对这种官方的加某些插件包的感兴趣。自己也试过,可是总是出各种问题。clone 官方源码,然后把lean的包直接放到 package 下后。
我目前的尝试有:
修改feeds.config 文件,添加lean的package

src-git packages https://git.openwrt.org/feed/packages.git
src-git luci https://git.openwrt.org/project/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
src-git lean https://github.com/coolsnowwolf/packages.git

并在 tools 下添加缺少的upx, ucl 依赖并修改make file。可是在编译到V2ray 的时候还是总是出错。方便的话,请指导下这种混合的包如何搞,给点思路,谢谢

遇到同好,握手握手。
踩过不少坑,总结的经验如下。

  1. 下载官方 stable release 下的 最新稳定版本
    wget https://github.com/openwrt/openwrt/archive/v19.07.2.tar.gz
  2. 将L大的package/lean 拷贝到 上面的package 下
  3. 将L大的tools/upxtools/ucl 拷贝到上面的 tools 下
  4. 修改 tools 下的 Makefile
  5. 开始编译

我基本上就是这么操作的啊,只是第一步直接用的 clone https://github.com/openwrt/openwrt.git ,其他都和你一样啊,难道就是不能直接用master 导致的?回头我在试试

@iyuangang
Copy link
Owner

一直对这种官方的加某些插件包的感兴趣。自己也试过,可是总是出各种问题。clone 官方源码,然后把lean的包直接放到 package 下后。
我目前的尝试有:
修改feeds.config 文件,添加lean的package

src-git packages https://git.openwrt.org/feed/packages.git
src-git luci https://git.openwrt.org/project/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
src-git lean https://github.com/coolsnowwolf/packages.git

并在 tools 下添加缺少的upx, ucl 依赖并修改make file。可是在编译到V2ray 的时候还是总是出错。方便的话,请指导下这种混合的包如何搞,给点思路,谢谢

遇到同好,握手握手。
踩过不少坑,总结的经验如下。

  1. 下载官方 stable release 下的 最新稳定版本
    wget https://github.com/openwrt/openwrt/archive/v19.07.2.tar.gz
  2. 将L大的package/lean 拷贝到 上面的package 下
  3. 将L大的tools/upxtools/ucl 拷贝到上面的 tools 下
  4. 修改 tools 下的 Makefile
  5. 开始编译

我基本上就是这么操作的啊,只是第一步直接用的 clone https://github.com/openwrt/openwrt.git ,其他都和你一样啊,难道就是不能直接用master 导致的?回头我在试试

刚才回复你的时候发现 OpenWrt 19.07.1 更新到 OpenWrt 19.07.2 ,今天顺便发个新 release 玩。
欢迎常来。

@iyuangang
Copy link
Owner

OpenWrt 19.07.2 新稳定版加L大新特性集成 ssr plus +release
欢迎使用。

@yfdoor
Copy link
Author

yfdoor commented Mar 8, 2020

请问你遇到过这种问题吗?将 lean 的包编译进19.07.2去是没问题的,固件也可以安装成功,可是用Lean 的插件luci会报错,例如:

Failed to execute cbi dispatcher target for entry '/admin/services/adbyby'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:938: module 'luci.cbi' not found:
no field package.preload['luci.cbi']
no file './luci/cbi.lua'
no file '/usr/share/lua/luci/cbi.lua'
no file '/usr/share/lua/luci/cbi/init.lua'
no file '/usr/lib/lua/luci/cbi.lua'
no file '/usr/lib/lua/luci/cbi/init.lua'
no file './luci/cbi.so'
no file '/usr/lib/lua/luci/cbi.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/lib/lua/luci/dispatcher.lua:938: in function </usr/lib/lua/luci/dispatcher.lua:937>

@yfdoor yfdoor reopened this Mar 8, 2020
@iyuangang
Copy link
Owner

请问你遇到过这种问题吗?将 lean 的包编译进19.07.2去是没问题的,固件也可以安装成功,可是用Lean 的插件luci会报错,例如:

Failed to execute cbi dispatcher target for entry '/admin/services/adbyby'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:938: module 'luci.cbi' not found:
no field package.preload['luci.cbi']
no file './luci/cbi.lua'
no file '/usr/share/lua/luci/cbi.lua'
no file '/usr/share/lua/luci/cbi/init.lua'
no file '/usr/lib/lua/luci/cbi.lua'
no file '/usr/lib/lua/luci/cbi/init.lua'
no file './luci/cbi.so'
no file '/usr/lib/lua/luci/cbi.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/lib/lua/luci/dispatcher.lua:938: in function </usr/lib/lua/luci/dispatcher.lua:937>

已经给你提交PR了,你看看

@iyuangang
Copy link
Owner

请问你遇到过这种问题吗?将 lean 的包编译进19.07.2去是没问题的,固件也可以安装成功,可是用Lean 的插件luci会报错,例如:

Failed to execute cbi dispatcher target for entry '/admin/services/adbyby'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:938: module 'luci.cbi' not found:
no field package.preload['luci.cbi']
no file './luci/cbi.lua'
no file '/usr/share/lua/luci/cbi.lua'
no file '/usr/share/lua/luci/cbi/init.lua'
no file '/usr/lib/lua/luci/cbi.lua'
no file '/usr/lib/lua/luci/cbi/init.lua'
no file './luci/cbi.so'
no file '/usr/lib/lua/luci/cbi.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/lib/lua/luci/dispatcher.lua:938: in function </usr/lib/lua/luci/dispatcher.lua:937>

来自官方 Release Note
The new version of LuCI, the integrated web interface for OpenWrt, implements client-side rendering of views. This improves performance by offloading some work that was done on the device (Lua code) to the client browser (Javascript code)

The LuCI ecosystem is large, and not all LuCI apps have been adapted to this change, which may result in crashes involving cbi.lua. In that case, install the luci-compat package.

@yfdoor
Copy link
Author

yfdoor commented Mar 8, 2020

请问你遇到过这种问题吗?将 lean 的包编译进19.07.2去是没问题的,固件也可以安装成功,可是用Lean 的插件luci会报错,例如:

Failed to execute cbi dispatcher target for entry '/admin/services/adbyby'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:938: module 'luci.cbi' not found:
no field package.preload['luci.cbi']
no file './luci/cbi.lua'
no file '/usr/share/lua/luci/cbi.lua'
no file '/usr/share/lua/luci/cbi/init.lua'
no file '/usr/lib/lua/luci/cbi.lua'
no file '/usr/lib/lua/luci/cbi/init.lua'
no file './luci/cbi.so'
no file '/usr/lib/lua/luci/cbi.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/lib/lua/luci/dispatcher.lua:938: in function </usr/lib/lua/luci/dispatcher.lua:937>

来自官方 Release Note
The new version of LuCI, the integrated web interface for OpenWrt, implements client-side rendering of views. This improves performance by offloading some work that was done on the device (Lua code) to the client browser (Javascript code)

The LuCI ecosystem is large, and not all LuCI apps have been adapted to this change, which may result in crashes involving cbi.lua. In that case, install the luci-compat package.

抱拳。。。多谢

@iyuangang
Copy link
Owner

请问你遇到过这种问题吗?将 lean 的包编译进19.07.2去是没问题的,固件也可以安装成功,可是用Lean 的插件luci会报错,例如:

Failed to execute cbi dispatcher target for entry '/admin/services/adbyby'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:938: module 'luci.cbi' not found:
no field package.preload['luci.cbi']
no file './luci/cbi.lua'
no file '/usr/share/lua/luci/cbi.lua'
no file '/usr/share/lua/luci/cbi/init.lua'
no file '/usr/lib/lua/luci/cbi.lua'
no file '/usr/lib/lua/luci/cbi/init.lua'
no file './luci/cbi.so'
no file '/usr/lib/lua/luci/cbi.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/lib/lua/luci/dispatcher.lua:938: in function </usr/lib/lua/luci/dispatcher.lua:937>

来自官方 Release Note
The new version of LuCI, the integrated web interface for OpenWrt, implements client-side rendering of views. This improves performance by offloading some work that was done on the device (Lua code) to the client browser (Javascript code)
The LuCI ecosystem is large, and not all LuCI apps have been adapted to this change, which may result in crashes involving cbi.lua. In that case, install the luci-compat package.

抱拳。。。多谢

yfdoor/OpenWrt pulls 里 Merge 我的提交就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants