blob: 0c3d46376849d7e87f7a9183ca23c48beff79f81 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001 To install the second extended file system management programs,
Theodore Ts'o3839e651997-04-26 13:21:57 +00002just follow the steps:
3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000041) Change directory into the top of the e2fsprogs source tree
Theodore Ts'o3839e651997-04-26 13:21:57 +00005
Theodore Ts'o50e1e101997-04-26 13:58:21 +000062) Create a build directory and cd into it:
Theodore Ts'o3839e651997-04-26 13:21:57 +00007
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008 mkdir build; cd build
Theodore Ts'o3839e651997-04-26 13:21:57 +00009
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000103) Run the configure script
Theodore Ts'o3839e651997-04-26 13:21:57 +000011
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012 ../configure
Theodore Ts'o3839e651997-04-26 13:21:57 +000013
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014 If you wish to turn on DLL shared libraries, add the option
15flag --enable-dll-shlibs. If you wish to turn on ELF shared
16libraries, add the option --enable-elf-shlibs. If you wish to build
17profiling libraries, add the option --enable-profile.
18
194) Compile the programs
20
21 make
22
Theodore Ts'o5c576471997-04-29 15:29:49 +0000235) Check to make sure the installation built correctly:
24
25 make check
26
276) Install the programs
Theodore Ts'o3839e651997-04-26 13:21:57 +000028
29 Run `make install'
30
Theodore Ts'o5c576471997-04-29 15:29:49 +0000317) Install the include files and libraries
Theodore Ts'o3839e651997-04-26 13:21:57 +000032
33 You can run `make install-libs' to install the include files and
34libraries. Please note that this installation is not needed for the
35programs to work. It is only needed if you expect to develop other
Theodore Ts'o6f4a1091997-04-26 13:32:25 +000036programs using the libraries or if you want to compile other program
37using these libraries (like the 4.4BSD dump and restore port).
Theodore Ts'o3839e651997-04-26 13:21:57 +000038
Theodore Ts'o5c576471997-04-29 15:29:49 +0000398) Remove any pre-formatted man pages.
Theodore Ts'o3839e651997-04-26 13:21:57 +000040
Theodore Ts'o50e1e101997-04-26 13:58:21 +000041 Some distributions will have pre-formatted manual pages which
42will always be displayed in preference to newer man pages in /usr/man.
43If this is the case, you may need to manually remove them in order to
44see the correct manual pages. The shell script in
45install-utils/remove_preformat_manpages may be helpful in doing so.
46
Theodore Ts'o5c576471997-04-29 15:29:49 +0000479) Make sure your /etc/fstab file is correct.
Theodore Ts'o6f4a1091997-04-26 13:32:25 +000048
49 Some distributions install an /etc/fstab which is missing the
50fifth and sixth field of filesystem entry, which are the dump
51frequency, and the fsck pass number, respectively. The problem with
52this is that the getmntent() library routine interprets those missing
53fields as "0", and a pass number of 0 is documented as meaning that
54fsck should not check that particular filesystem. If your entries in
55your /etc/fstab file look liks this:
56
57/dev/hda4 / ext2 defaults
58
59you should add "1 1" at the end of each line, so that they look like this:
60
61/dev/hda4 / ext2 defaults 1 1
62
Theodore Ts'o50e1e101997-04-26 13:58:21 +000063 There is a script in install-utils/convfstab (donated by
Theodore Ts'o6f4a1091997-04-26 13:32:25 +000064Michael Weller) that may help you correct your /etc/fstab file.
65