Go to the first, previous, next, last section, table of contents.


1.5 Building GNU Parted

If you want to compile GNU Parted, this is generally done with:

$ ./configure
$ make

However, there are a few options for @command{configure}:

--without-readline
turns off use of readline. This is useful for making rescue disks, etc., where few libraries are available.
--disable-debug
don't include assertions
--disable-dynamic-loading
disables dynamic loading of some libraries (only libreiserfs for now, although we hope to expand this). Dynamic loading is useful because it allows you to reuse libparted shared libraries even when you don't know when if some libraries will be available. It has a small overhead (mainly linking with libdl), so it may be useful to disable it on bootdisks if you don't need the flexibility.
--disable-fs
disable all filesystem support
--disable-nls
turns off native language support. This is useful for use with old versions of glibc, or a trimmed down version of glibc suitable for rescue disks.
--disable-shared
turns off shared libraries. This may be necessary for use with old versions of GNU libc, if you get a compile error about a "spilled register". Also useful for boot/rescue disks.
--disable-Werror
ignore warning messages in compilation
--enable-all-static
builds the Parted binary as a fully static binary. This is convienient for boot disks, because you don't need to install any libraries on the boot disk (although, other programs may require them...) Note: you will also want to run strip(1).
--enable-discover-only
support only reading/probing
--enable-mtrace
enable malloc() debugging
--enable-read-only
disable writing (for debugging)


Go to the first, previous, next, last section, table of contents.