Next: , Previous: , Up: Top   [Contents]


2 How to compile the program?

Requirements for compiling the full version of the program:

Type

./configure

to configure the program for your system.

If you do not wish support for a filesystem, give the --enable-FS=no option to ‘./configure’ (FS=EXT234, NTFS, XFS, REISERFS, REISER4, FAT, MINIX, JFS, HFSP, OCFS).

If you do not wish support for a particular wiping operation, give the --enable-OPER=no option to ‘./configure’ (OPER=wfs, unrm, part - these are wiping free space, undelete data and partially-used blocks, respectively). You cannot disable all of these.

Run ‘./configure --help’ for details.

If you do NOT wish WipeFreeSpace to use the network or get the computer’s IP address, get LibHideIP>=0.2 and LibNetBlock and configure WipeFreeSpace with

./configure --enable-LIBHIDEIP --enable-LIBNETBLOCK

NOTE: this may cause network filesystem wiping to fail.

Type

make

to compile the program.

Documentation is compiled, but may be recompiled, if you have the makeinfo program (texinfo package). Translations will be compiled, if you have the gettext package.

NOTE: if you have trouble compiling, send me:

  1. the compiler name and version (e.g. ‘gcc version 10’),
  2. the C standard library name and version (e.g. ‘glibc version 2.x’),
  3. the output of the configure script. You can capture it by running ‘./configure > configure-output.txt 2>&1’,
  4. the generated config.log file,
  5. the generated config.h file, if it exists,
  6. the output of the make command. You can capture it by running ‘make > make-output.txt 2>&1’,
  7. any other error messages,
  8. any other information that you think could lead to solving the problem.

Type

make install

to install the program.

NOTE: ‘make install’ is NOT recommended. Create and install an RPM package instead, if possible.

To create an RPM package:

  1. copy the wipefreespace.spec file to $HOME/rpmbuild/SPECS
  2. copy the source package wipefreespace-3.0.tar.gz to $HOME/rpmbuild/SOURCES
  3. type ‘rpmbuild -bb $HOME/rpmbuild/SPECS/wipefreespace.spec
  4. get the RPMs from $HOME/rpmbuild/RPMS/your_cpu_arch

To create an RPM package (the old way):

  1. copy the wipefreespace.spec file to /usr/src/redhat/SPECS
  2. copy the source package wipefreespace-3.0.tar.gz to /usr/src/redhat/SOURCES
  3. type ‘rpmbuild -bb /usr/src/redhat/SPECS/wipefreespace.spec
  4. get the RPMs from /usr/src/redhat/RPMS/your_cpu_arch

NOTE: some systems may use other directories than these.


Next: , Previous: , Up: Top   [Contents]