当前较新的版本(1.18.5-4,通过 archlinuxcn 源安装)的进程分流功能不生效,查看日志可以看到:
level=debug msg="[Process] find process 157.240.20.18 error: process of uid(1000),inode(96671) not found"
这个AUR包版本老一点,但我找不到更合适的地方来反馈。问题似乎是 clash-meta 默认以专属的用户身份运行,无法获取 UID=1000 的用户的进程信息。
| Git Clone URL: | https://aur.archlinux.org/mihomo.git (read-only, click to copy) |
|---|---|
| Package Base: | mihomo |
| Description: | Mihomo Kernel by MetaCubeX, formerly known as Clash.Meta |
| Upstream URL: | https://github.com/MetaCubeX/mihomo |
| Licenses: | GPL3 |
| Conflicts: | clash-meta |
| Provides: | clash-meta |
| Submitter: | handsomexdd1024 |
| Maintainer: | Kizumi |
| Last Packager: | Kizumi |
| Votes: | 20 |
| Popularity: | 1.89 |
| First Submitted: | 2023-12-02 15:01 (UTC) |
| Last Updated: | 2026-04-08 13:50 (UTC) |
当前较新的版本(1.18.5-4,通过 archlinuxcn 源安装)的进程分流功能不生效,查看日志可以看到:
level=debug msg="[Process] find process 157.240.20.18 error: process of uid(1000),inode(96671) not found"
这个AUR包版本老一点,但我找不到更合适的地方来反馈。问题似乎是 clash-meta 默认以专属的用户身份运行,无法获取 UID=1000 的用户的进程信息。
Seems like checksum might be incorrect, my sha265sum for clash-meta-1.18.5.tar.gz is 463f54384a144b63e499db44e3383c7a412a1572809053a42810e4c154b51f5e.
现在从零构建会出现
-linkmode requires external (cgo) linking, but cgo is not enabled
这样的错误,应该是依赖了某些需要cgo的包但默认 CGO_ENABLED 未开启,希望排查一下。 相关讨论见 https://aur.archlinux.org/packages/clash-nyanpasu 的评论区。
好像是github改名了?
@chust Thanks for the reminder. ldflags have been updated.
The buildtime and version ldflags in the build function should be updated since the package name renamed.
-X "github.com/metacubex/mihomo/constant.Version=$(VERSION)" \
-X "github.com/metacubex/mihomo/constant.BuildTime=$(BUILDTIME)"
Since mihomo renamed from clash-meta, you should replace the conflict package and provide package to mihomo as well.
Pinned Comments
sukanka commented on 2023-02-15 01:05 (UTC)
If you want use tun mode, add the following pacman hook.