INSTALL 2.06 KB
Newer Older
Theodore Ts'o's avatar
Theodore Ts'o committed
1
	To install the second extended file system management programs,
Theodore Ts'o's avatar
Theodore Ts'o committed
2 3
just follow the steps:

Theodore Ts'o's avatar
Theodore Ts'o committed
4
1) Change directory into the top of the e2fsprogs source tree
Theodore Ts'o's avatar
Theodore Ts'o committed
5

Theodore Ts'o's avatar
Theodore Ts'o committed
6
2) Create a build directory and cd into it:
Theodore Ts'o's avatar
Theodore Ts'o committed
7

Theodore Ts'o's avatar
Theodore Ts'o committed
8
	mkdir build; cd build
Theodore Ts'o's avatar
Theodore Ts'o committed
9

Theodore Ts'o's avatar
Theodore Ts'o committed
10
3)  Run the configure script
Theodore Ts'o's avatar
Theodore Ts'o committed
11

Theodore Ts'o's avatar
Theodore Ts'o committed
12
	../configure
Theodore Ts'o's avatar
Theodore Ts'o committed
13

14 15 16
	If you wish to turn on ELF shared libraries, add the option
--enable-elf-shlibs.  If you wish to build profiling libraries, add
the option --enable-profile.
Theodore Ts'o's avatar
Theodore Ts'o committed
17 18 19 20 21

4)  Compile the programs

	make

Theodore Ts'o's avatar
Theodore Ts'o committed
22 23 24 25 26
5)   Check to make sure the installation built correctly:

	make check

6)  Install the programs
Theodore Ts'o's avatar
Theodore Ts'o committed
27 28 29

	Run `make install'

Theodore Ts'o's avatar
Theodore Ts'o committed
30
7)  Install the include files and libraries
Theodore Ts'o's avatar
Theodore Ts'o committed
31 32 33 34

	You can run `make install-libs' to install the include files and
libraries.  Please note that this installation is not needed for the
programs to work.  It is only needed if you expect to develop other
Theodore Ts'o's avatar
Theodore Ts'o committed
35 36 37
programs using the libraries or if you want to compile other program
using these libraries (like the 4.4BSD dump and restore port).

Theodore Ts'o's avatar
Theodore Ts'o committed
38
8)  Remove any pre-formatted man pages.  
Theodore Ts'o's avatar
Theodore Ts'o committed
39 40 41 42 43 44

	Some distributions will have pre-formatted manual pages which
will always be displayed in preference to newer man pages in /usr/man.
If this is the case, you may need to manually remove them in order to
see the correct manual pages.  The shell script in
install-utils/remove_preformat_manpages may be helpful in doing so.
Theodore Ts'o's avatar
Theodore Ts'o committed
45

Theodore Ts'o's avatar
Theodore Ts'o committed
46
9)  Make sure your /etc/fstab file is correct.
Theodore Ts'o's avatar
Theodore Ts'o committed
47 48 49 50 51 52 53 54 55 56 57 58 59 60

	Some distributions install an /etc/fstab which is missing the
fifth and sixth field of filesystem entry, which are the dump
frequency, and the fsck pass number, respectively.  The problem with
this is that the getmntent() library routine interprets those missing
fields as "0", and a pass number of 0 is documented as meaning that
fsck should not check that particular filesystem.  If your entries in
your /etc/fstab file look liks this:

/dev/hda4       /        ext2        defaults

you should add "1 1" at the end of each line, so that they look like this:

/dev/hda4       /        ext2        defaults	1	1
Theodore Ts'o's avatar
Theodore Ts'o committed
61

Theodore Ts'o's avatar
Theodore Ts'o committed
62
	There is a script in install-utils/convfstab (donated by
Theodore Ts'o's avatar
Theodore Ts'o committed
63
Michael Weller) that may help you correct your /etc/fstab file.
Theodore Ts'o's avatar
Theodore Ts'o committed
64