Skip to content

无效的ELF头报错 #57

Description

@Stark-X

环境

  • Ubuntu 24.04 LTS
  • hyprland

运行时报错

Image

ChatGPT 给的排查脚本

❯ echo "== arch =="
uname -m

echo
echo "== codex module file type =="
file /usr/lib/codex/resources/app.asar.unpacked/src/node_modules/better-sqlite3/build/Release/better_sqlite3.node

echo
echo "== ELF header =="
xxd -l 16 /usr/lib/codex/resources/app.asar.unpacked/src/node_modules/better-sqlite3/build/Release/better_sqlite3.node

echo
echo "== linked libs =="
ldd /usr/lib/codex/resources/app.asar.unpacked/src/node_modules/better-sqlite3/build/Release/better_sqlite3.node
== arch ==
x86_64

== codex module file type ==
/usr/lib/codex/resources/app.asar.unpacked/src/node_modules/better-sqlite3/build/Release/better_sqlite3.node: Mach-O 64-bit x86_64 bundle, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK>

== ELF header ==
00000000: cffa edfe 0700 0001 0300 0000 0800 0000  ................

== linked libs ==
        不是动态可执行文件

大概是 amd64.deb 安装包的构建过程中整成了 macOS 的库?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions