我想构建 AsciiAsciiRevolution所以我检查了它并输入了 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
这是什么……这么神秘D Language我听说过?
$ 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 共享源系统)的一部分,是 D 包管理器的早期尝试。您可以在 Dsource 上的项目页面上找到更多信息:http://www.dsource.org/projects/dsss
这些工具已经很久没有维护了,今天很少使用。它们已被构建工具的 rdmd
(包含在编译器中)和 dub 取代。作为包管理器。
关于compiler-construction - 使用 rebuild 和 drebuild 编译带有 .d 扩展名的代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19665292/