root/tags/lgt2224/QUICK_START

Revision 1866, 3.3 KB (checked in by pmoura, 4 years ago)

Simplified installation instructions.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1=================================================================
2Logtalk - Object oriented extension to Prolog
3Release 2.22.4
4
5Copyright (c) 1998-2005 Paulo Moura.  All Rights Reserved.
6=================================================================
7
8
9Quick start
10===========
11
12
131. Install Logtalk by following the instructions on the "INSTALL" file.
14Depending on your operating-system, working environment, and favorite
15Prolog compiler, you may already have a shortcut installed for easily
16running Logtalk.
17
182. Open the "manuals/index.html" file with a web browser.
19
203. Select the "Tutorial" link. This will provide you with a basic understanding
21of the main Logtalk concepts.
22
234. Go back to the "index.html" file and select the "User Manual" link and then
24the Installing and running Logtalk links. This will provide you with a basic
25understanding of how to start Logtalk and compile and load Logtalk code.
26
27
28Assuming that Logtalk supports your Prolog compiler:
29
301. Read the "NOTES" file in the "configs" sub-directory to check if any patch
31or workaround is needed for your compiler.
32
332. Start your Prolog compiler.
34
353. Change the current working directory of your Prolog session to the Logtalk
36installation directory. If you don't know which predicate to use, check the
37"configs/NOTES" file or your Prolog compiler reference manual.
38
394. Compile and load the config file for your Prolog compiler.
40
415. Compile and load the Logtalk compiler/runtime found on the "compiler"
42sub-directory.
43
446. Adapt, if needed, the file "libpaths/libpaths.pl" to match your Logtalk
45installation, Prolog compiler, and operating-system, and then compile and
46load it.
47
48Note that both the configuration files, the compiler/runtime files, and the
49library paths file are Prolog files. The predicate used to load these files
50depends on your Prolog compiler (consult your Prolog compiler documentation
51or take a look at the definition of the predicate '$lgt_load_prolog_code'/1
52in the config file. For most command-line compilers, you could type at the
53Prolog prompt something like:
54
55    | ?- ['configs/foo.config', 'compiler/logtalk.pl', 'libpaths/libpaths.pl'].
56
57Replace the file name foo.config with the appropriated config file name for
58your compiler.
59
60
61Now you may try some of the included examples:
62
631. Open the examples sub-directory. There you find several sub-directories
64with ready to run examples and a NOTES file containing general instructions
65and a brief description of each example. Select and open one of the examples
66sub-directory.
67
682. Read the example NOTES file for a description of the example.
69
703. Open SCRIPT file for instructions on how to load the example and for sample
71queries that you may try by copying-and-pasting or dragging-and-droping them
72on your Prolog interpreter top-level.
73
74
75Ready to start writing your own programs?
76
771. Read the User Manual sections on "Programming in Logtalk" and "Running and
78debugging Logtalk programs".
79
802. Take a look at the "wenv" sub-directory. There you will find syntax
81configuration files for popular text editors that enable syntax coloring
82when editing Logtalk source files.
83
843. Create a sub-directory with a suitable name to hold all the files of your
85application.
86
874. Copy to this sub-directory a loader file from one of the example directories
88and modify it to load your own source files.
89
905. Have fun!
Note: See TracBrowser for help on using the browser.