INSTALL 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. # ;; -*- mode: org; coding: utf-8 -*-
  2. #+TITLE: Guile-Squee INSTALL
  3. * Guile-Squee
  4. A PostgreSQL binding for the Guile Scheme language using Guile's modern
  5. FFI
  6. ** Dependencies
  7. Guile-Squee needs the following software to run:
  8. guile >= 2.0.11
  9. libpq5 >= 9.4
  10. ** Quickstart
  11. The latest release is guile-squee-0.1.0.tar.gz [other releases are
  12. available here: <fixme>
  13. Assuming you have satisfied the dependencies, open a terminal and
  14. proceed with the following steps:
  15. cd <download-path>
  16. tar zxf guile-squee-0.1.0.tar.gz
  17. cd guile-squee-0.1.0
  18. ./configure [--prefix=/your/prefix]
  19. make
  20. make install
  21. Happy Guile-Squee!
  22. *** Notes
  23. [1] In the above configure step, --prefix=/your/prefix is optional. The
  24. default value is /usr/local.
  25. [2] To install Guile-Squee, you must have write permissions to (a) the
  26. $prefix dir and its subdirs, (b) guile's global site dir and (c)
  27. guile’s site-ccache dir [see below].
  28. [3] Guile-Squee's modules are installed in Guile's global site dir.
  29. Guile-Squee's compiled modules are installed in Guile's site-ccache
  30. directory. If you'd like to know where that is, enter the following
  31. expressions in a terminal:
  32. guile -c "(display (%global-site-dir)) (newline)"
  33. guile -c "(display (%site-ccache-dir)) (newline)"
  34. [4] Like for any other GNU Tool Chain compatible software, you may
  35. install the documentation locally using 'make install-html'
  36. [or 'make install-pdf' ...].
  37. * The GNU standard INSTALL file content
  38. Installation Instructions
  39. *************************
  40. Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
  41. Inc.
  42. Copying and distribution of this file, with or without modification,
  43. are permitted in any medium without royalty provided the copyright
  44. notice and this notice are preserved. This file is offered as-is,
  45. without warranty of any kind.
  46. Basic Installation
  47. ==================
  48. Briefly, the shell command `./configure && make && make install'
  49. should configure, build, and install this package. The following
  50. more-detailed instructions are generic; see the `README' file for
  51. instructions specific to this package. Some packages provide this
  52. `INSTALL' file but do not implement all of the features documented
  53. below. The lack of an optional feature in a given package is not
  54. necessarily a bug. More recommendations for GNU packages can be found
  55. in *note Makefile Conventions: (standards)Makefile Conventions.
  56. The `configure' shell script attempts to guess correct values for
  57. various system-dependent variables used during compilation. It uses
  58. those values to create a `Makefile' in each directory of the package.
  59. It may also create one or more `.h' files containing system-dependent
  60. definitions. Finally, it creates a shell script `config.status' that
  61. you can run in the future to recreate the current configuration, and a
  62. file `config.log' containing compiler output (useful mainly for
  63. debugging `configure').
  64. It can also use an optional file (typically called `config.cache'
  65. and enabled with `--cache-file=config.cache' or simply `-C') that saves
  66. the results of its tests to speed up reconfiguring. Caching is
  67. disabled by default to prevent problems with accidental use of stale
  68. cache files.
  69. If you need to do unusual things to compile the package, please try
  70. to figure out how `configure' could check whether to do them, and mail
  71. diffs or instructions to the address given in the `README' so they can
  72. be considered for the next release. If you are using the cache, and at
  73. some point `config.cache' contains results you don't want to keep, you
  74. may remove or edit it.
  75. The file `configure.ac' (or `configure.in') is used to create
  76. `configure' by a program called `autoconf'. You need `configure.ac' if
  77. you want to change it or regenerate `configure' using a newer version
  78. of `autoconf'.
  79. The simplest way to compile this package is:
  80. 1. `cd' to the directory containing the package's source code and type
  81. `./configure' to configure the package for your system.
  82. Running `configure' might take a while. While running, it prints
  83. some messages telling which features it is checking for.
  84. 2. Type `make' to compile the package.
  85. 3. Optionally, type `make check' to run any self-tests that come with
  86. the package, generally using the just-built uninstalled binaries.
  87. 4. Type `make install' to install the programs and any data files and
  88. documentation. When installing into a prefix owned by root, it is
  89. recommended that the package be configured and built as a regular
  90. user, and only the `make install' phase executed with root
  91. privileges.
  92. 5. Optionally, type `make installcheck' to repeat any self-tests, but
  93. this time using the binaries in their final installed location.
  94. This target does not install anything. Running this target as a
  95. regular user, particularly if the prior `make install' required
  96. root privileges, verifies that the installation completed
  97. correctly.
  98. 6. You can remove the program binaries and object files from the
  99. source code directory by typing `make clean'. To also remove the
  100. files that `configure' created (so you can compile the package for
  101. a different kind of computer), type `make distclean'. There is
  102. also a `make maintainer-clean' target, but that is intended mainly
  103. for the package's developers. If you use it, you may have to get
  104. all sorts of other programs in order to regenerate files that came
  105. with the distribution.
  106. 7. Often, you can also type `make uninstall' to remove the installed
  107. files again. In practice, not all packages have tested that
  108. uninstallation works correctly, even though it is required by the
  109. GNU Coding Standards.
  110. 8. Some packages, particularly those that use Automake, provide `make
  111. distcheck', which can by used by developers to test that all other
  112. targets like `make install' and `make uninstall' work correctly.
  113. This target is generally not run by end users.
  114. Compilers and Options
  115. =====================
  116. Some systems require unusual options for compilation or linking that
  117. the `configure' script does not know about. Run `./configure --help'
  118. for details on some of the pertinent environment variables.
  119. You can give `configure' initial values for configuration parameters
  120. by setting variables in the command line or in the environment. Here
  121. is an example:
  122. ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  123. *Note Defining Variables::, for more details.
  124. Compiling For Multiple Architectures
  125. ====================================
  126. You can compile the package for more than one kind of computer at the
  127. same time, by placing the object files for each architecture in their
  128. own directory. To do this, you can use GNU `make'. `cd' to the
  129. directory where you want the object files and executables to go and run
  130. the `configure' script. `configure' automatically checks for the
  131. source code in the directory that `configure' is in and in `..'. This
  132. is known as a "VPATH" build.
  133. With a non-GNU `make', it is safer to compile the package for one
  134. architecture at a time in the source code directory. After you have
  135. installed the package for one architecture, use `make distclean' before
  136. reconfiguring for another architecture.
  137. On MacOS X 10.5 and later systems, you can create libraries and
  138. executables that work on multiple system types--known as "fat" or
  139. "universal" binaries--by specifying multiple `-arch' options to the
  140. compiler but only a single `-arch' option to the preprocessor. Like
  141. this:
  142. ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  143. CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  144. CPP="gcc -E" CXXCPP="g++ -E"
  145. This is not guaranteed to produce working output in all cases, you
  146. may have to build one architecture at a time and combine the results
  147. using the `lipo' tool if you have problems.
  148. Installation Names
  149. ==================
  150. By default, `make install' installs the package's commands under
  151. `/usr/local/bin', include files under `/usr/local/include', etc. You
  152. can specify an installation prefix other than `/usr/local' by giving
  153. `configure' the option `--prefix=PREFIX', where PREFIX must be an
  154. absolute file name.
  155. You can specify separate installation prefixes for
  156. architecture-specific files and architecture-independent files. If you
  157. pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  158. PREFIX as the prefix for installing programs and libraries.
  159. Documentation and other data files still use the regular prefix.
  160. In addition, if you use an unusual directory layout you can give
  161. options like `--bindir=DIR' to specify different values for particular
  162. kinds of files. Run `configure --help' for a list of the directories
  163. you can set and what kinds of files go in them. In general, the
  164. default for these options is expressed in terms of `${prefix}', so that
  165. specifying just `--prefix' will affect all of the other directory
  166. specifications that were not explicitly provided.
  167. The most portable way to affect installation locations is to pass the
  168. correct locations to `configure'; however, many packages provide one or
  169. both of the following shortcuts of passing variable assignments to the
  170. `make install' command line to change installation locations without
  171. having to reconfigure or recompile.
  172. The first method involves providing an override variable for each
  173. affected directory. For example, `make install
  174. prefix=/alternate/directory' will choose an alternate location for all
  175. directory configuration variables that were expressed in terms of
  176. `${prefix}'. Any directories that were specified during `configure',
  177. but not in terms of `${prefix}', must each be overridden at install
  178. time for the entire installation to be relocated. The approach of
  179. makefile variable overrides for each directory variable is required by
  180. the GNU Coding Standards, and ideally causes no recompilation.
  181. However, some platforms have known limitations with the semantics of
  182. shared libraries that end up requiring recompilation when using this
  183. method, particularly noticeable in packages that use GNU Libtool.
  184. The second method involves providing the `DESTDIR' variable. For
  185. example, `make install DESTDIR=/alternate/directory' will prepend
  186. `/alternate/directory' before all installation names. The approach of
  187. `DESTDIR' overrides is not required by the GNU Coding Standards, and
  188. does not work on platforms that have drive letters. On the other hand,
  189. it does better at avoiding recompilation issues, and works well even
  190. when some directory options were not specified in terms of `${prefix}'
  191. at `configure' time.
  192. Optional Features
  193. =================
  194. If the package supports it, you can cause programs to be installed
  195. with an extra prefix or suffix on their names by giving `configure' the
  196. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  197. Some packages pay attention to `--enable-FEATURE' options to
  198. `configure', where FEATURE indicates an optional part of the package.
  199. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  200. is something like `gnu-as' or `x' (for the X Window System). The
  201. `README' should mention any `--enable-' and `--with-' options that the
  202. package recognizes.
  203. For packages that use the X Window System, `configure' can usually
  204. find the X include and library files automatically, but if it doesn't,
  205. you can use the `configure' options `--x-includes=DIR' and
  206. `--x-libraries=DIR' to specify their locations.
  207. Some packages offer the ability to configure how verbose the
  208. execution of `make' will be. For these packages, running `./configure
  209. --enable-silent-rules' sets the default to minimal output, which can be
  210. overridden with `make V=1'; while running `./configure
  211. --disable-silent-rules' sets the default to verbose, which can be
  212. overridden with `make V=0'.
  213. Particular systems
  214. ==================
  215. On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  216. CC is not installed, it is recommended to use the following options in
  217. order to use an ANSI C compiler:
  218. ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  219. and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  220. HP-UX `make' updates targets which have the same time stamps as
  221. their prerequisites, which makes it generally unusable when shipped
  222. generated files such as `configure' are involved. Use GNU `make'
  223. instead.
  224. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  225. parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  226. a workaround. If GNU CC is not installed, it is therefore recommended
  227. to try
  228. ./configure CC="cc"
  229. and if that doesn't work, try
  230. ./configure CC="cc -nodtk"
  231. On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  232. directory contains several dysfunctional programs; working variants of
  233. these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  234. in your `PATH', put it _after_ `/usr/bin'.
  235. On Haiku, software installed for all users goes in `/boot/common',
  236. not `/usr/local'. It is recommended to use the following options:
  237. ./configure --prefix=/boot/common
  238. Specifying the System Type
  239. ==========================
  240. There may be some features `configure' cannot figure out
  241. automatically, but needs to determine by the type of machine the package
  242. will run on. Usually, assuming the package is built to be run on the
  243. _same_ architectures, `configure' can figure that out, but if it prints
  244. a message saying it cannot guess the machine type, give it the
  245. `--build=TYPE' option. TYPE can either be a short name for the system
  246. type, such as `sun4', or a canonical name which has the form:
  247. CPU-COMPANY-SYSTEM
  248. where SYSTEM can have one of these forms:
  249. OS
  250. KERNEL-OS
  251. See the file `config.sub' for the possible values of each field. If
  252. `config.sub' isn't included in this package, then this package doesn't
  253. need to know the machine type.
  254. If you are _building_ compiler tools for cross-compiling, you should
  255. use the option `--target=TYPE' to select the type of system they will
  256. produce code for.
  257. If you want to _use_ a cross compiler, that generates code for a
  258. platform different from the build platform, you should specify the
  259. "host" platform (i.e., that on which the generated programs will
  260. eventually be run) with `--host=TYPE'.
  261. Sharing Defaults
  262. ================
  263. If you want to set default values for `configure' scripts to share,
  264. you can create a site shell script called `config.site' that gives
  265. default values for variables like `CC', `cache_file', and `prefix'.
  266. `configure' looks for `PREFIX/share/config.site' if it exists, then
  267. `PREFIX/etc/config.site' if it exists. Or, you can set the
  268. `CONFIG_SITE' environment variable to the location of the site script.
  269. A warning: not all `configure' scripts look for a site script.
  270. Defining Variables
  271. ==================
  272. Variables not defined in a site shell script can be set in the
  273. environment passed to `configure'. However, some packages may run
  274. configure again during the build, and the customized values of these
  275. variables may be lost. In order to avoid this problem, you should set
  276. them in the `configure' command line, using `VAR=value'. For example:
  277. ./configure CC=/usr/local2/bin/gcc
  278. causes the specified `gcc' to be used as the C compiler (unless it is
  279. overridden in the site shell script).
  280. Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  281. an Autoconf limitation. Until the limitation is lifted, you can use
  282. this workaround:
  283. CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
  284. `configure' Invocation
  285. ======================
  286. `configure' recognizes the following options to control how it
  287. operates.
  288. `--help'
  289. `-h'
  290. Print a summary of all of the options to `configure', and exit.
  291. `--help=short'
  292. `--help=recursive'
  293. Print a summary of the options unique to this package's
  294. `configure', and exit. The `short' variant lists options used
  295. only in the top level, while the `recursive' variant lists options
  296. also present in any nested packages.
  297. `--version'
  298. `-V'
  299. Print the version of Autoconf used to generate the `configure'
  300. script, and exit.
  301. `--cache-file=FILE'
  302. Enable the cache: use and save the results of the tests in FILE,
  303. traditionally `config.cache'. FILE defaults to `/dev/null' to
  304. disable caching.
  305. `--config-cache'
  306. `-C'
  307. Alias for `--cache-file=config.cache'.
  308. `--quiet'
  309. `--silent'
  310. `-q'
  311. Do not print messages saying which checks are being made. To
  312. suppress all normal output, redirect it to `/dev/null' (any error
  313. messages will still be shown).
  314. `--srcdir=DIR'
  315. Look for the package's source code in directory DIR. Usually
  316. `configure' can determine that directory automatically.
  317. `--prefix=DIR'
  318. Use DIR as the installation prefix. *note Installation Names::
  319. for more details, including other options available for fine-tuning
  320. the installation locations.
  321. `--no-create'
  322. `-n'
  323. Run the configure checks, but stop before creating any output
  324. files.
  325. `configure' also accepts some other, not widely useful, options. Run
  326. `configure --help' for more details.