]> git.lyx.org Git - lyx.git/blob - development/lyx.rpm.README
Autotools: optimize with -Og when debugging
[lyx.git] / development / lyx.rpm.README
1 Here is what to do to make a binary rpm using the spec file lyx.spec.
2 The description below apply only to the Intel platform, but only minor
3 changes should be needed for other platforms.
4
5 1) Install qt-4.2.2 or later. If you are using RPMs, make sure to install
6    the qt-devel packages as well.
7
8 2) Install LaTeX. You can do this using RPMs from your distribution that
9    might be split in multiple packages (e.g. texlive, texlive-latex),
10    or you can install TeXLive straight from the DVD.
11
12 3) Copy lyx.spec to the SPECS directory (on Redhat, this is located at
13    /usr/src/redhat/SPECS, on other systems at /usr/src/packages/SPECS)
14
15 4) Copy the tarball (lyx-2.x.y.tar.gz) to your SOURCES directory (located
16    in the same path as SPECS, e.g. /usr/src/packages/SOURCES).
17
18 5) Issue the command
19
20         rpmbuild -bb /usr/src/packages/SPECS/lyx.spec
21
22 (adjust the path if needed)
23
24 This builds the binary rpm, and puts it in /usr/src/packages/RPMS/i386
25 (alternatively in /i586 or /x86_64, depending on your system).
26 Note that building lyx requires about 150M free space on your disk.
27
28 6) Now install the package:
29
30         rpm -Uvh /usr/src/redhat/RPMS/i386/lyx-2.x.y-1.i386.rpm
31
32 (again, adjust the path and filename as needed)
33
34 If you get dependency errors about qt4 or tetex/texlive, then you need to
35 use the --nodeps option (because you installed qt4 or TeX not in
36 rpm form):
37
38         rpm -Uvh --nodeps /usr/src/redhat/RPMS/i386/lyx-2.x.y-1.i386.rpm
39
40 (again, adjust the path and filename as needed)
41
42 You should not get any more errors.
43
44 mw@moni.msci.memphis.edu
45