1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
General:
--------
Additional information about obtaining the libraries and tools needed
to install Kaya is available at http://kayalang.org/download/compiling
Please contact us by emailing kaya@kayalang.org, or by subscribing to
the kaya-devel@kayalang.org mailing list, if you have problems with
any part of these instructions on your system.
Before starting:
----------------
Make sure your system has:
- The usual development tools (make, g++, etc)
- The Glasgow Haskell Compiler (ghc)
- The Happy parser generator
- The libraries and development headers for:
* libgc
* zlib
* libgcrypt
* libpcre
* libgnutls
- On Windows, libintl-2.dll
- Any optional libraries and development headers
(database access, curses, etc)
Building on Linux/Unix/MacOS X:
-------------------------------
Compiling Kaya on Unix based systems is generally fairly
straightforward, and all the required development libraries should be
available from your distribution.
Building on Windows:
--------------------
Compiling Kaya on Windows is not yet as easy as we'd like, and you
should read http://kayalang.org/download/compiling/windows for
windows-specific instructions. Unless you are already a MinGW user,
you will need to construct your build environment from scratch, which
will take some time. Please ask on the mailing list for help if you
have problems with this.
Building Kaya:
--------------
Building Kaya should usually be a simple matter of
./configure && make
'configure' will warn you about missing essential libraries at this
stage. On Windows, use './configure --prefix=c:/kaya' (or wherever you
want to install).
'make' will then go through the build process, building the compiler,
run-time system, standard and optional libraries, extra tools, and
library API documentation.
If 'make' exits with an error, this may be a bug in kaya, but is most
likely to be an oddity of your build environment - either way, please
let us know at the email addresses above so we can investigate and
help fix it. Generally, however, if 'configure' has been able to
detect the needed libraries, 'make' will work normally.
You may then want to run the regression tests with 'make test'. All
tests should pass (test019 is known to fail on Windows, but this is
harmless).
Finally, do 'make install' to install the compiler, libraries and
documentation.
After installation:
-------------------
Make sure you add the location you installed the compiler to your PATH.
The default is ~/bin
You will then be able to run the 'kayac' compiler.
If you would like to receive notices of future Kaya version releases,
subscribe to the kaya-announce mailing list at
http://lists.kayalang.org/lists/listinfo/kaya-announce
This is a very low-traffic list only used for new version releases and
other very important announcements.
If you have any comments about Kaya, or would like help with any
aspect of Kaya programming, email kaya@kayalang.org or join the
kaya-devel mailing list at
http://lists.kayalang.org/lists/listinfo/kaya-devel
|