How to Build D DBI
To build current trunk and future releases, use DSSS and the provided dsss.conf.
Building earlier releases
Note: Build is required. Go to its homepage for the current version.
The current recommended way to build dbi.lib is to use buildme.d. It comes in the directory below dbi.
To build a release version of D DBI with every module, use any of the following:
dmd -run buildme.d all gdmd -run buildme.d all gdc -o buildme buildme.d buildme all
That is the equivalent of compiling everything using build with the DMD switches -inline, -O, -ofdbi.lib, -release, -clean, and -full.
If the program is compiled using -debug, the DMD switches used are -debug, -g, -ofdbi.lib, -w, -clean, and -full.
buildme also has several other capabilities. If you can remove them from the list with a "-" as shown with.
dmd -debug -run buildme.d all -oracle -odbc -inline gdmd -debug -run buildme.d all -oracle -odbc -inline gdc -fdebug -o buildme buildme.d buildme all -oracle -odbc -inline
This will generate a debug version (see above) of D DBI with every database except oracle and odbc. Functions will also be inlined wherever that's possible.
If you would prefer to build D DBI with only a couple databases, use, for example,
dmd -run buildme.d mysql pg gdmd -run buildme.d mysql pg gdc -o buildme buildme.d buildme mysql pg
For more details, see the documentation in the file itself.
Notes
Debian/Ubuntu machines must have package libmysqlclient16-dev installed