无法构建 vibed:dmd 失败,退出代码为 255

Can't build vibed: dmd failed with exit code 255

我正在尝试构建 VPS 的 vibed 应用程序。我收到错误: dmd failed with exit code 255

这是完整的日志:

Compiling source/app.d...
Compiling source/dbconnect.d...
Compiling source/draft/database/collection.d...
Compiling source/draft/database/database.d...
Compiling source/draft/database/package.d...
Compiling source/draft/database/storage.d...
Compiling source/globals.d...
Compiling source/parseconfig.d...
Compiling source/users.d...
Compiling source/variantconfig.d...
Compiling ../../../../root/.dub/packages/vibe-d-0.7.30-alpha.1/vibe-d/source/vibe/appmain.d...
Linking...
cc: No such file or directory
--- errorlevel 255`

google不知道这个错误

你在 VPS 上安装了 GCC 吗?据我所知,DMD 在后台使用 GCC 链接器进行链接。从报错信息来看,好像是没有安装... 根据 VPS 的类型(基于 Debian、Redhat 等),您需要安装 GCC。

对于基于 Debian 的发行版,类似于:

apt-get install build-essential

应该会让你继续。如果不是在 Debian 衍生版上,请参阅特定发行版的文档以安装 GCC。

希望这对您有所帮助...