在Rockylinux上安装trae-cn,没有版本选择,只有Trae_CN-linux-x64.rpm,还一直无法启动

你的运行环境(版本号「点击帮助-关于-复制」):

NAME=“Rocky Linux”
VERSION=“9.7 (Blue Onyx)”

问题描述(你遇到了什么问题?):

在Rockylinux上安装trae-cn,没有版本选择,只有Trae_CN-linux-x64.rpm,还一直无法启动

复现步骤(如何才能重现这个 Bug/问题?):
/usr/share/trae-cn/trae-cn --no-sandbox --trace-deprecation --disable-hardware-acceleration

ProcessMonitor constructor
No config file found
(node:5314) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
at node:punycode:7:10
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:400:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
at loadBuiltinModule (node:internal/modules/helpers:121:7)
at ModuleLoader.builtinStrategy (node:internal/modules/esm/translators:418:18)
at #translate (node:internal/modules/esm/loader:546:20)
at afterLoad (node:internal/modules/esm/loader:596:29)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:601:12)
at #createModuleJob (node:internal/modules/esm/loader:624:36)
at #getJobFromResolveResult (node:internal/modules/esm/loader:343:34)
段错误 (核心已转储)

报错信息或截图(如有):

/usr/share/trae-cn/trae-cn --no-sandbox --trace-deprecation --disable-hardware-acceleration

ProcessMonitor constructor
No config file found
(node:5314) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
at node:punycode:7:10
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:400:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
at loadBuiltinModule (node:internal/modules/helpers:121:7)
at ModuleLoader.builtinStrategy (node:internal/modules/esm/translators:418:18)
at #translate (node:internal/modules/esm/loader:546:20)
at afterLoad (node:internal/modules/esm/loader:596:29)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:601:12)
at #createModuleJob (node:internal/modules/esm/loader:624:36)
at #getJobFromResolveResult (node:internal/modules/esm/loader:343:34)
段错误 (核心已转储)

2 个赞

从你的报错日志来看,这是在 Rocky Linux 上安装 TRAE CN 后启动时出现了段错误。首先确认一下:你是在 Rocky Linux 上直接运行 TRAE IDE 桌面版吗?还是在配置远程开发环境?

从日志里的 段错误 (核心已转储) 来看,这大概率是环境兼容性问题(比如 GLIBC 版本不匹配)。你可以先按以下步骤排查:

  1. 检查是否有 libstdc++ 版本冲突

    grep -r "version \`GLIBCXX_.*' not found" ~/.trae-cn-server/manager-logs/ 2>/dev/null
    
  2. 如果确实存在版本冲突,可以尝试重命名 TRAE 自带的旧 libstdc++.so.6,迫使程序使用系统的库:

    • 先找到 TRAE 的安装目录(通常在 /usr/share/trae-cn/ 下)
    • 进入包含 libstdc++.so.6 的目录(可能是 lib/trae-helper 或类似路径)
    • 备份并重命名:mv libstdc++.so.6 libstdc++.so.6.bak
  3. 另外,你提到「没有版本选择」——目前 TRAE CN 官方主要支持的 Linux 发行版是 Ubuntu/Debian,RPM 包可能是社区适配的,在 Rocky Linux 上确实可能出现兼容性问题。

你是想在 Rocky Linux 本地直接用 TRAE IDE,还是想配置远程开发环境(本地用 macOS/Windows,远程连 Rocky Linux)?这两种场景的解决方案不太一样。

2 个赞

grep -r “version `GLIBCXX_.*’ not found” ~/.trae-cn-server/manager-logs/ 2>/dev/null本身就不是环境的问题,新打包的trae-cn有问题

2 个赞

目前还不支持这个操作系统快速入门 - 文档 - TRAE CN

1 个赞