1
CoqIde Installation procedure.
3
CoqIde is a graphical interface to perform interactive proofs.
4
You should be able to do everything you do in coqtop inside CoqIde
5
excepted dropping to the ML toplevel.
7
DISCLAIMER: CoqIde is ongoing work. Although it should never let you
8
loose a proof, you may encounter unexpected bugs.
9
Do not hesitate to send suggestions/bug reports.
13
Your POSIX operating system may already contain precompiled packages
14
for Coq, including CoqIde, or a ready-to-compile... If the version
15
provided there suits you, follow the usual procedure for your
18
E.g., on Debian GNU/Linux (or Debian GNU/k*BSD or ...), do:
19
aptitude install coqide
20
On Gentoo GNU/Linux, do:
21
USE=ide emerge sci-mathematics/coq
23
Else, read the rest of this document to compile your own CoqIde.
26
- OCaml >= 3.07 with native threads support.
27
- make world must succeed.
28
- The graphical toolkit GTK+ 2.x. See http://www.gtk.org.
29
The official supported version is at least 2.8.x.
30
You may still compile CoqIde with older versions and
33
"pkg-config --modversion gtk+-2.0"
34
to check your version.
35
All recent distributions have precompiled packages.
36
Do not forget to install the developement headers packages.
38
On Debian, installing lablgtk2 (see below) will automatically
39
install GTK+. (But "aptitude install libgtk2.0-dev" will
40
install GTK+ 2.x should you need to force it for one reason
43
- The OCaml bindings for GTK+ 2.x, lablgtk2.
45
You need at least version 2.10.0.
47
Your distribution may contain precompiled packages. For
48
example, for Debian, run
49
aptitude install liblablgtk2-ocaml-dev
51
urpmi ocaml-lablgtk2-devel
54
http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html .
56
One official releases of lablgtk2 is here:
57
http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/dist/lablgtk-2.10.1.tar.gz
59
Note that even if its README requires ocaml > 3.07, it works
60
ok with 3.07. If you are in a hurry just run :
64
http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgtk-2.10.1.tar.gz && \
65
tar zxvf lablgtk-2.10.1.tar.gz && \
66
cd lablgtk-2.10.1 && \
71
You must have write access to the OCaml standard library path.
73
If this fails, read lablgtk-2.10.1/README.
77
0) For optimal performance, OCaml must support native threads (aka pthreads).
78
If this not the case, this means that Coq computations will be slow and
79
"make ide" will fail. Use "make bin/coqide.byte" instead. To fix this
80
problem, just recompile OCaml from source and configure OCaml with :
81
"./configure --with-pthreads".
82
In case you install over an existing copy of OCaml, you should better
83
empty the OCaml installation directory.
85
1) Go into your Coq source directory and, as usual, configure with:
89
This should detect the ability of making CoqIde; check that is
90
says it has detected this ability and activated the building of
101
In case you are upgrading from an old version you may need to run
104
3) You may now run bin/coqide
108
There are three configuration files located in your $(HOME) dir.
109
You may need to set HOME to some sensible value under Windows.
111
- .coqiderc is generated by coqide itself. It may be edited by hand or
112
by using the Preference menu from coqide. It will be generated the first time
113
you save your the preferences in Coqide.
115
- .coqide-gtk2rc is a standard Gtk2 configuration file. A sample file can be
116
found in the coq lib "ide" subdir.
118
- .coqide.keys is a standard Gtk2 accelerator dump. You may edit this file
119
to change the default shortcuts for the menus.
121
Read ide/FAQ for more informations.
126
- Problem with automatic templates
128
Some users may experiment problems with unwanted automatic
129
templates while using Coqide. This is due to a change in the
130
modifiers keys available through GTK. The straightest way to get
131
rid of the problem is to edit by hand your .coqiderc (either
132
/home/<user>/.coqiderc under Linux, or
133
C:\Documents and Settings\<user>\.coqiderc under Windows)
134
and replace any occurence of MOD4 by MOD1.