Chapter 8 – DC3dd Compile
Here is a quick overview of how to compile DC3dd in Cygwin. Visit the Sourceforge website and download the latest source code release. On a Microsoft Windows system, the easiest way is to install Cygwin, a Unix-like environment for Windows.
Cygwin website www.cygwin.com
Be sure to select the additional required packages, gcc and make, in Cygwin. On a Linux system, use your package manager to ensure you have gcc and make installed, if you don’t already. Then extract the DC3dd tarball, run the ./configure command, and then run make. After a few minutes, the DC3dd binary should be in the src directory. Sample output of the process in a Cygwin environment is shown next:
user@cygwin / $ cd /tmp/dc3dd/ user@cygwin /tmp/dc3dd $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk <snip> config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile user@cygwin /tmp/dc3dd $ make cd . && /bin/sh /tmp/dc3dd/build-aux/missing --run aclocal-1.10 -I m4 configure.ac:44: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body /usr/src/packages/autoconf/26/autoconf2.5-2.68-1/src/autoconf-2.68/lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... <snip> make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/tmp/dc3dd make[1]: Leaving directory `/tmp/dc3dd' user@cygwin /tmp/dc3dd $ cd src user@cygwin /tmp/dc3dd/src $ ./dc3dd.exe dc3dd 7.1.614 started at 2012-04-12 23:17:35 -0400 compiled options: command line: ./dc3dd sector size: 512 bytes (assumed) 0 bytes (0) copied (??%), 2.18152 s, 0 K/s
When the compilation is complete, install the binaries, libraries, and documentation by running the make install command. This will allow you to run DC3dd easily, because it will now be in your path.