Closed e6e6 closed 4 years ago
基于 19.07 编译,直接报不存在 libcap-bin
WARNING: Makefile 'package/new/luci-app-openclash/luci-app-openclash/Makefile' has a dependency on 'libcap-bin', which does not exist
暂时这个 libcap 先用 master 分支的来替代下
Same here, 19.07 release doesn't have libcap-bin
available in opkg repos, making OpenClash not usable.
应该是需要单独去选,19.07没有单独define
does that means kool lede v2.36 no longer supported?
For anyone not running snapshot build and looking for libcap
and libcap-bin
, download both packages from:
https://downloads.openwrt.org/snapshots/packages/${YOUR_ARCH}/packages
..., and install them manually.
Be sure to download both libcap
and libcap-bin
, since they need to be the same version.
手动安装出错,没有依赖包,建议先opkg update,再opkg install ***.ipk
Downloading https://openwrt.proxy.ustclug.org/snapshots/packages/x86_64/packages/libcap_2.43-1_x86_64.ipk Collected errors:
@laomao333 run opkg update
first.
@laomao333 run
opkg update
first.
I have already update the opkg,but it still have error as above
Then use official mirrors instead of ustclug.org
. The mirror might get out of sync (package vs checksum).
Just copy the related package from master to openwrt-19.07.
主分支的没问题,已经编译,还没安装,看着鬼哭狼嚎的有点紧张,先v2用着,明后天再说😂
Then use official mirrors instead of
ustclug.org
. The mirror might get out of sync (package vs checksum).
thank u for your guide , i change the opkg source to official mirrors ,then unpdate opkg again ,finally susess
Then use official mirrors instead of
ustclug.org
. The mirror might get out of sync (package vs checksum).thank u for your guide , i change the opkg source to official mirrors ,then unpdate opkg again ,finally susess
可以教下我如何解决么
如果是L大的,先opkg update,然后再安装openclash.ipk,肯定成功,安装ipk会自动下载依赖包
如果是编译基于 19.07 的固件,在某一步插入如下即可,用 master 分支的 libcap 来替换。
rm -rf feeds/packages/libs/libcap
svn co https://github.com/openwrt/packages/trunk/libs/libcap feeds/packages/libs/libcap
本身就用openwrt master 分支的,跟 openclash 一起编译固件的时候会自动选上依赖。
没多大问题,只是随口一问,我自己的固件是基于稳定版源代码编译的,所以来问一下。
我是官方openwrt 18.06,libcap-bin怎么获取
我是官方openwrt 18.06,libcap-bin怎么获取
从snapshot源手动下载 libcap libcap-bin两个包,ssh 到路由中本地安装即可。
thanks! opkg update first!
这个做法有点激进了吧,直接连最新的stable版本都不支持了。
如果是编译基于 19.07 的固件,在某一步插入如下即可,用 master 分支的 libcap 来替换。
rm -rf feeds/packages/libs/libcap svn co https://github.com/openwrt/packages/trunk/libs/libcap feeds/packages/libs/libcap
感谢,解决了。
实测18.06.4的stable可以 手动下载 libcap libcap-bin两个包,ssh下安装使用 https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap_2.43-1_x86_64.ipk https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap-bin_2.43-1_x86_64.ipk
实测18.06.4的stable可以 手动下载 libcap libcap-bin两个包,ssh下安装使用 https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap_2.43-1_x86_64.ipk https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap-bin_2.43-1_x86_64.ipk
安装这两个包后还是有这个问题:
# opkg list | grep libcap
libcap - 2.43-1 - Linux capabilities library library
libcap-bin - 2.43-1 - Linux capabilities . This package contains the libcap utilities.
libcap-ng - 0.8-1 - POSIX capabilities library library
libcap-ng-bin - 0.8-1 - POSIX capabilities library . This package contains the libcap-ng utilities.
在 0.40.8-beta 版本下,使用 opkg 手动安装提示(自动升级 0.40.8 面板会消失):
# opkg install luci-app-openclash_0.40.9-beta_all.ipk
Upgrading luci-app-openclash on root from 0.40.8-beta to 0.40.9-beta...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-openclash:
* kernel (= 5.4.70-1-873c32b25c3269121c39b38cae2aa9da)
* opkg_install_cmd: Cannot install package luci-app-openclash.
当前系统:OpenWrt R20.9.15 SPP v10.1[2020] Compiled by eSir
# cat /proc/version
Linux version 5.4.61 (esir@v14) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r2899-9a482a1)) #0 SMP Thu Sep 24 02:01:24 2020
Kernel dependency shouldn't affect normal operation. Use --force-depends
to proceed with installation.
实测18.06.4的stable可以 手动下载 libcap libcap-bin两个包,ssh下安装使用 https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap_2.43-1_x86_64.ipk https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap-bin_2.43-1_x86_64.ipk
谢谢大佬,安装后正常启动了
Kernel dependency shouldn't affect normal operation. Use
--force-depends
to proceed with installation.
Resolved, thx.
/usr/sbin/capsh -h
Error relocating /usr/sbin/capsh: cap_iab_set_proc: symbol not found
Error relocating /usr/sbin/capsh: cap_mode_name: symbol not found
Error relocating /usr/sbin/capsh: cap_iab_from_text: symbol not found
Error relocating /usr/sbin/capsh: cap_iab_get_proc: symbol not found
Error relocating /usr/sbin/capsh: cap_set_ambient: symbol not found
Error relocating /usr/sbin/capsh: cap_set_mode: symbol not found
Error relocating /usr/sbin/capsh: cap_setuid: symbol not found
Error relocating /usr/sbin/capsh: cap_set_secbits: symbol not found
Error relocating /usr/sbin/capsh: cap_get_secbits: symbol not found
Error relocating /usr/sbin/capsh: cap_get_mode: symbol not found
Error relocating /usr/sbin/capsh: cap_get_ambient: symbol not found
Error relocating /usr/sbin/capsh: cap_reset_ambient: symbol not found
Error relocating /usr/sbin/capsh: cap_max_bits: symbol not found
Error relocating /usr/sbin/capsh: cap_iab_to_text: symbol not found
Error relocating /usr/sbin/capsh: cap_setgroups: symbol not found
Error relocating /usr/sbin/capsh: cap_get_ambient: symbol not found
貌似有依赖问题?
@de-conf Check the version between libcap
and libcap-bin
. If you're running release version OpenWrt, make sure you install both from the snapshot repository, instead of just libcap-bin
@de-conf Check the version between
libcap
andlibcap-bin
. If you're running release version OpenWrt, make sure you install both from the snapshot repository, instead of justlibcap-bin
of course,but They are not dependent on each other。 Expect additional dependencies to be met。
They are indeed dependent. libcap-bin
links against libcap
. If their versions don't match, you will get the symbol not found
errors.
请问iptables-mod-extra哪里有下载?
src/gz snapshots https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/
直接添加这个源就可以解决了
@de-conf Check the version between
libcap
andlibcap-bin
. If you're running release version OpenWrt, make sure you install both from the snapshot repository, instead of justlibcap-bin
Thanks man resolved.
For x86 system, a workaround for me is:
curl -Ok https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap-bin_2.43-1_x86_64.ipk curl -Ok https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap_2.43-1_x86_64.ipk opkg remove libcap --force-depends opkg install libcap_2.43-1_x86_64.ipk opkg install libcap-bin_2.43-1_x86_64.ipk
Please check your system CPU architecture to chose the right package.
基于Lean大稳定版固件,在编译时,可采用如下方法解决,亲测可行。 一、用 master 分支的 libcap 来替换。 rm -rf feeds/packages/libs/libcap svn co https://github.com/openwrt/packages/trunk/libs/libcap feeds/packages/libs/libcap 二、修改OpenWrt依赖的Makefile文件,添加+libcap 路径:package/network/utils/iproute2/
define Package/ip-full
$(call Package/iproute2/Default)
TITLE:=Routing control utility (Full)
VARIANT:=full
PROVIDES:=ip
ALTERNATIVES:=300:/sbin/ip:/usr/libexec/ip-full
DEPENDS:=+libnl-tiny +libelf +libcap +(PACKAGE_devlink||PACKAGE_rdma):libml
endef
resolved
请问这种如何解决? Collected errors:
src/gz snapshots https://downloads.openwrt.org/snapshots/packages/ 用这个源,仍然出现从ui上消失的情况
step1: opkg update step2: 移除 libcab step3: 按装libcab libcab-bin
step4: (由于oc自动消失),手动安装
仍然提示Capsh异常,不能启动
内核版本:3.14.29, 在怎么自动,手动,换源,仍然出现capsh问题
Collected errors:
这个依赖安装不了,主程序也装不了了
妈呀……这项目都是哪些人在用呀,,各个 x86_64,人均软路由?
妈呀……这项目都是哪些人在用呀,,各个 x86_64,人均软路由?
是的吧,人均软路由 2333
x86添加源
src/gz snapshots https://downloads.openwrt.org/snapshots/packages/x86_64/packages
官方快照源在不久前将 libcap 和 libcap-bin 更新为了 libcap-ng 和 libcap-ng-bin 现在我正遭遇这个问题,并且没有可供使用的包了 ( ´_ゝ`) 或者有无老歌可以提供一下 mipsel_24kc 架构的相关包?
官方快照源在不久前将 libcap 和 libcap-bin 更新为了 libcap-ng 和 libcap-ng-bin 现在我正遭遇这个问题,并且没有可供使用的包了 ( ´_ゝ`) 或者有无老歌可以提供一下 mipsel_24kc 架构的相关包?
被移了位置而已,snapshot的二进制包还没来得及编译出来,多等等 https://github.com/openwrt/openwrt/commit/427acb71
现在已经出来了,修改下快照源,替换自己架构
src/gz snapshots https://downloads.openwrt.org/snapshots/packages/{architecture}/base
重新刷机吧,已经解决
nobody @.***> 于 2021年4月7日周三 07:53写道:
官方快照源在不久前将 libcap 和 libcap-bin 更新为了 libcap-ng 和 libcap-ng-bin 现在我正遭遇这个问题,并且没有可供使用的包了 ( ´_ゝ`) 或者有无老歌可以提供一下 mipsel_24kc 架构的相关包?
被移了位置而已,snapshot的二进制包还没来得及编译出来,多等等 @.*** https://github.com/openwrt/openwrt/commit/427acb71
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vernesong/OpenClash/issues/839#issuecomment-814505477, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBBANYET5DBL3BFNL5H64TTHONI7ANCNFSM4SMNLVMQ .
手动装完对应版本的还是不能用,离谱。
要编译固件,不编译的话就重新刷机吧
RainFlying @.***> 于 2021年4月23日周五 16:27写道:
手动安装 libcap-ng 和 libcap-ng-bin 之后,还是出错。 错误:Capsh异常,请尝试重新安装依赖【libcap】和相应的Capsh库,终止启动...
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vernesong/OpenClash/issues/839#issuecomment-825491608, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBBANZ642JJ3JW26ZPUQ3LTKEVNZANCNFSM4SMNLVMQ .
官方快照源在不久前将 libcap 和 libcap-bin 更新为了 libcap-ng 和 libcap-ng-bin 现在我正遭遇这个问题,并且没有可供使用的包了 ( ´_ゝ`) 或者有无老歌可以提供一下 mipsel_24kc 架构的相关包?
被移了位置而已,snapshot的二进制包还没来得及编译出来,多等等 openwrt/openwrt@427acb7
现在已经出来了,修改下快照源,替换自己架构
src/gz snapshots https://downloads.openwrt.org/snapshots/packages/{architecture}/base
折腾一晚上最后居然是换位置了,我吐了
去官方的源看了下 https://github.com/openwrt/packages/blob/openwrt-19.07/libs/libcap/Makefile https://github.com/openwrt/packages/blob/master/libs/libcap/Makefile
似乎以后 openclash 开始只支持 openwrt 的 master分支了么?