Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | To install the second extended file system management programs, |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 2 | just follow the steps: |
| 3 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4 | 1) Change directory into the top of the e2fsprogs source tree |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 5 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6 | 2) Create a build directory and cd into it: |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 7 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 8 | mkdir build; cd build |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 9 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10 | 3) Run the configure script |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 11 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12 | ../configure |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 13 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14 | If you wish to turn on DLL shared libraries, add the option |
| 15 | flag --enable-dll-shlibs. If you wish to turn on ELF shared |
| 16 | libraries, add the option --enable-elf-shlibs. If you wish to build |
| 17 | profiling libraries, add the option --enable-profile. |
| 18 | |
| 19 | 4) Compile the programs |
| 20 | |
| 21 | make |
| 22 | |
Theodore Ts'o | 5c57647 | 1997-04-29 15:29:49 +0000 | [diff] [blame] | 23 | 5) Check to make sure the installation built correctly: |
| 24 | |
| 25 | make check |
| 26 | |
| 27 | 6) Install the programs |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 28 | |
| 29 | Run `make install' |
| 30 | |
Theodore Ts'o | 5c57647 | 1997-04-29 15:29:49 +0000 | [diff] [blame] | 31 | 7) Install the include files and libraries |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 32 | |
| 33 | You can run `make install-libs' to install the include files and |
| 34 | libraries. Please note that this installation is not needed for the |
| 35 | programs to work. It is only needed if you expect to develop other |
Theodore Ts'o | 6f4a109 | 1997-04-26 13:32:25 +0000 | [diff] [blame] | 36 | programs using the libraries or if you want to compile other program |
| 37 | using these libraries (like the 4.4BSD dump and restore port). |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 38 | |
Theodore Ts'o | 5c57647 | 1997-04-29 15:29:49 +0000 | [diff] [blame] | 39 | 8) Remove any pre-formatted man pages. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 40 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 41 | Some distributions will have pre-formatted manual pages which |
| 42 | will always be displayed in preference to newer man pages in /usr/man. |
| 43 | If this is the case, you may need to manually remove them in order to |
| 44 | see the correct manual pages. The shell script in |
| 45 | install-utils/remove_preformat_manpages may be helpful in doing so. |
| 46 | |
Theodore Ts'o | 5c57647 | 1997-04-29 15:29:49 +0000 | [diff] [blame] | 47 | 9) Make sure your /etc/fstab file is correct. |
Theodore Ts'o | 6f4a109 | 1997-04-26 13:32:25 +0000 | [diff] [blame] | 48 | |
| 49 | Some distributions install an /etc/fstab which is missing the |
| 50 | fifth and sixth field of filesystem entry, which are the dump |
| 51 | frequency, and the fsck pass number, respectively. The problem with |
| 52 | this is that the getmntent() library routine interprets those missing |
| 53 | fields as "0", and a pass number of 0 is documented as meaning that |
| 54 | fsck should not check that particular filesystem. If your entries in |
| 55 | your /etc/fstab file look liks this: |
| 56 | |
| 57 | /dev/hda4 / ext2 defaults |
| 58 | |
| 59 | you 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'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 63 | There is a script in install-utils/convfstab (donated by |
Theodore Ts'o | 6f4a109 | 1997-04-26 13:32:25 +0000 | [diff] [blame] | 64 | Michael Weller) that may help you correct your /etc/fstab file. |
| 65 | |