INSTALL 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. -*- Text -*-
  2. This is the GRUB. Welcome.
  3. This file contains instructions for compiling and installing the GRUB.
  4. The Requirements
  5. ================
  6. GRUB depends on some software packages installed into your system. If
  7. you don't have any of them, please obtain and install them before
  8. configuring the GRUB.
  9. * GCC 4.1.3 or later
  10. * GNU Make
  11. * GNU Bison 2.3 or later
  12. * GNU gettext 0.17 or later
  13. * GNU binutils 2.9.1.0.23 or later
  14. * Other standard GNU/Unix tools
  15. If you use a development snapshot or want to hack on GRUB you may
  16. need the following.
  17. * Ruby 1.6 or later
  18. * Python 2.5.2 or later
  19. * Autoconf 2.60 or later
  20. * Automake 1.10.1 or later
  21. Prerequisites for make-check:
  22. * qemu, specifically the binary 'qemu-system-i386'
  23. Configuring the GRUB
  24. ====================
  25. The `configure' shell script attempts to guess correct values for
  26. various system-dependent variables used during compilation. It uses
  27. those values to create a `Makefile' in each directory of the package.
  28. It may also create one or more `.h' files containing system-dependent
  29. definitions. Finally, it creates a shell script `config.status' that
  30. you can run in the future to recreate the current configuration, a
  31. file `config.cache' that saves the results of its tests to speed up
  32. reconfiguring, and a file `config.log' containing compiler output
  33. (useful mainly for debugging `configure').
  34. If you need to do unusual things to compile the package, please try to
  35. figure out how `configure' could check whether to do them, and mail
  36. diffs or instructions to the address given in the `README' so they can
  37. be considered for the next release. If at some point `config.cache'
  38. contains results you don't want to keep, you may remove or edit it.
  39. The file `configure.ac' is used to create `configure' by a program
  40. called `autoconf'. You only need `configure.in' if you want to change
  41. it or regenerate `configure' using a newer version of `autoconf'.
  42. Building the GRUB
  43. =================
  44. The simplest way to compile this package is:
  45. 1. `cd' to the directory containing the package's source code. If
  46. you don't use a release tarball you have to type `./autogen.sh'.
  47. Type `./configure' to configure the package for your system.
  48. If you're using `csh' on an old version of System V, you might
  49. need to type `sh ./configure' instead to prevent `csh' from trying
  50. to execute `configure' itself.
  51. Running `configure' takes awhile. While running, it prints some
  52. messages telling which features it is checking for.
  53. 2. Type `make' to compile the package.
  54. 3. Optionally, type `make check' to run any self-tests that come with
  55. the package.
  56. 4. Type `make install' to install the programs and any data files and
  57. documentation.
  58. 5. You can remove the program binaries and object files from the
  59. source code directory by typing `make clean'. To also remove the
  60. files that `configure' created (so you can compile the package for
  61. a different kind of computer), type `make distclean'. There is
  62. also a `make maintainer-clean' target, but that is intended mainly
  63. for the package's developers. If you use it, you may have to get
  64. all sorts of other programs in order to regenerate files that came
  65. with the distribution.
  66. Compiling For Multiple Architectures
  67. ====================================
  68. You can compile the package for more than one kind of computer at the
  69. same time, by placing the object files for each architecture in their
  70. own directory. `cd' to the directory where you want the object files
  71. and executables to go and run the `configure' script. `configure'
  72. automatically checks for the source code in the directory that
  73. `configure' is in and in `..'.
  74. Installation Names
  75. ==================
  76. By default, `make install' will install the package's files in
  77. `/usr/local/bin', `/usr/local/man', etc. You can specify an
  78. installation prefix by giving `configure' the option `--prefix=PATH'.
  79. You can specify separate installation prefixes for
  80. architecture-specific files and architecture-independent files. If
  81. you give `configure' the option `--exec-prefix=PATH', the package will
  82. use PATH as the prefix for installing programs and libraries.
  83. Documentation and other data files will still use the regular prefix.
  84. In addition, if you use an unusual directory layout you can give
  85. options like `--bindir=PATH' to specify different values for
  86. particular kinds of files. Run `configure --help' for a list of the
  87. directories you can set and what kinds of files go in them.
  88. If the package supports it, you can cause programs to be installed
  89. with an extra prefix or suffix on their names by giving `configure'
  90. the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  91. Please note, however, that the GRUB knows where it is located in the
  92. filesystem. If you have installed it in an unusual location, the
  93. system might not work properly, or at all. The chief utility of these
  94. options for the GRUB is to allow you to "install" in some alternate
  95. location, and then copy these to the actual root filesystem later.
  96. Sharing Defaults
  97. ================
  98. If you want to set default values for `configure' scripts to share,
  99. you can create a site shell script called `config.site' that gives
  100. default values for variables like `CC', `cache_file', and `prefix'.
  101. `configure' looks for `PREFIX/share/config.site' if it exists, then
  102. `PREFIX/etc/config.site' if it exists. Or, you can set the
  103. `CONFIG_SITE' environment variable to the location of the site script.
  104. A warning: not all `configure' scripts look for a site script.
  105. Operation Controls
  106. ==================
  107. `configure' recognizes the following options to control how it
  108. operates.
  109. `--cache-file=FILE'
  110. Use and save the results of the tests in FILE instead of
  111. `./config.cache'. Set FILE to `/dev/null' to disable caching, for
  112. debugging `configure'.
  113. `--help'
  114. Print a summary of the options to `configure', and exit.
  115. `--quiet'
  116. `--silent'
  117. `-q'
  118. Do not print messages saying which checks are being made.
  119. `--srcdir=DIR'
  120. Look for the package's source code in directory DIR. Usually
  121. `configure' can determine that directory automatically.
  122. `--version'
  123. Print the version of Autoconf used to generate the `configure'
  124. script, and exit.