Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling code with .d extension using rebuild and drebuild?

I wanted to build AsciiAsciiRevolution so I checked it out and typed make

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

Huh? What's rebuild?

$ 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

What the... is this that mysterious D Language I've heard about?

$ 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

Okay, I just have to install rebuild and drebuild!

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

At this point I tried apt-cache search rebuild, but nothing there seemed related to dlang. What is rebuild, and how can I install it using apt-get or yum?

like image 274
Cory Klein Avatar asked Jun 01 '26 07:06

Cory Klein


1 Answers

rebuild is a rather old build tool for D. It is part of DSSS (D Shared Source System), which was an early attempt at a D package manager. You can find more information on the project's page on Dsource: http://www.dsource.org/projects/dsss

These tools have not been maintained for a long time and today are rarely used. They have been replaced by rdmd (included with the compiler) for the build tool, and dub as the package manager.

like image 68
Vladimir Panteleev Avatar answered Jun 04 '26 13:06

Vladimir Panteleev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!