Compiler construction 使用rebuild和DREBILD编译扩展名为.d的代码?

Compiler construction 使用rebuild和DREBILD编译扩展名为.d的代码?,compiler-construction,compilation,d,rebuild,Compiler Construction,Compilation,D,Rebuild,我想构建,所以我签出它并键入make $ make rebuild AAR.d -oqobj -I~/tango/ -Iycurses/modules -L-lncursesw -dc=ldc-posix-tango -version=Tango /bin/sh: 1: rebuild: not found 嗯?重建是什么 $ ls AAR.d asciiSprite.d graphics levels.txt README

我想构建,所以我签出它并键入
make

$ make
rebuild AAR.d -oqobj -I~/tango/ -Iycurses/modules -L-lncursesw -dc=ldc-posix-tango -version=Tango
/bin/sh: 1: rebuild: not found
嗯?重建是什么

$ ls
AAR.d                  asciiSprite.d   graphics       levels.txt  README          util
animatedAsciiSprite.d  backupDancer.d  input.d        Makefile    selectScreen.d  warningBar.d
arrow_charts           dancingMan.d    level.d        music       sounds          ycurses
arrowSection.d         dataScore.d     levelScreen.d  narwhal.d   types.d
什么是。。。这就是我听说过的神秘吗

$ cat Makefile
all:
    rebuild AAR.d -oqobj -I~/tango/ -Iycurses/modules -L-lncursesw -dc=ldc-posix-tango -version=Tango

james:
    drebuild AAR.d -oqobj -I/usr/include/d/ldc -Iycurses/modules -L-lncursesw -dc=ldc-posix-tango -version=Tango -I~/repos/tango

clean:
    rm AAR obj/*.o
好的,我只需要安装
rebuild
drebuild

$ sudo apt-get install rebuild drebuild
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package rebuild

此时,我尝试了
apt cache search rebuild
,但似乎与
dlang
无关。什么是
rebuild
,如何使用
apt-get
yum
安装它?

rebuild
是D的一个相当古老的构建工具。它是DSSS(D共享源代码系统)的一部分,DSSS是D包管理器的早期尝试。您可以在项目的Dsource页面上找到更多信息:


这些工具已经很长时间没有维护了,现在很少使用。它们已被构建工具的
rdmd
(包含在编译器中)以及作为包管理器替换。

添加到CyberShadow的响应中

这段代码是用一个非常古老的工具链开发的,特别是它使用D v1。幸运的是,这可能意味着有了正确的安装,建筑应该能正常工作


如果您要下载v2,则需要更新所有内容,如果您还不熟悉该语言及其工具,这将不是一件容易的事。

因此,听起来我不打算用
摆脱这个问题,我只需要手动下载并安装它。是的,我不认为这些工具是为任何发行而打包的。