【问题标题】:Compiling code with .d extension using rebuild and drebuild?使用rebuild和drebuild编译带有.d扩展名的代码?
【发布时间】:2013-10-29 17:33:03
【问题描述】:

我想构建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

好的,我只需要安装rebuilddrebuild

$ 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-getyum 安装它?

【问题讨论】:

    标签: compiler-construction compilation d rebuild


    【解决方案1】:

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

    这些工具已经很久没有维护了,今天也很少使用了。它们已被替换为 rdmd(包含在编译器中)作为构建工具,dub 作为包管理器。

    【讨论】:

    • 所以听起来我不会去apt-get我的出路,我只需要手动下载并安装它。
    • 是的,我不认为这些工具是为任何发行版打包的。
    【解决方案2】:

    添加到 Cyber​​Shadow 的响应中。

    该代码是使用非常古老的工具链开发的,特别是它使用带有Tango 的D v1。幸运的是,这可能意味着安装正确后,构建应该可以工作。

    如果您要下载 v2,则需要更新所有内容,如果您还不熟悉该语言及其工具,这将不简单。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-30
      • 1970-01-01
      相关资源
      最近更新 更多