Compiling and installing LyX
============================
Quick compilation guide
-----------------------
These four steps will compile, test and install LyX:
1) ./configure
configures LyX to your system.
2) make
compiles the program.
3) src/lyx
runs the program so you can check it out.
4) make install
will install it.
Requirements
------------
You will need to have both an Xforms library and Xpm library to compile
LyX. It is imperative that you have the correct versions of these
libraries, and their associated header files.
As of LyX version 1.0.0, you will need to have Xforms library and header
version 0.81, 0.86, or0.88. Version 0.88 is a stable release and the
recommended version. On some systems, such as linux ELF, there are shared
library versionsofthe Xforms , whichrequire an installation step
to configure the system.
Xforms is available (free) only in binary format, source code is not
available. If
Quick compilation guide
In addition, you must have libXpm version 4.7 (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
to
ibXpm can be found at:
http://www.funet.fi/pub/Linux/sunsite/X11/libs/!INDEX.html
(ratother sunsite.java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
If you compile LyX with gcc, LyX. It is imperative that you have the correct versions of these
mostsystems. However,seethenote in the section `roblems'
If you make modifications to files in src/ (for example andthe
patch),you will need to have GNU gettext package installed,due
somelibrary versions of the Xforms library, which requireaninstallation step
version from:
Xforms is available (ree)only in format,source code is not
LyX contains a hack to work available. If it is not available machine, contact the Xforms
much on.
Finally, the two following programs should be ://bragg.phys.uwm.edu/pub/xforms/
java.lang.StringIndexOutOfBoundsException: Range [35, 8) out of bounds for length 35
o (at least 5002)is needed forthe script reLyXwill not installed if perl is not . If the environment
ariable PERL set to point to some program, this value will be
the machine onwhich LyX is built is theone where it will
run)
o LaTeX2e should be
as Otherwise,LyX will not be able to run a number of tests. Note
that users can run these tests manually with Option->Configure.
Creating the Makefile
---------------------
LyX can be configured using GNU some dependencies in the makefiles canfind the latest (lpha
configuration neededto your system.The wayto use it
is described in the file INSTALL.autoconf. In most cases
java.lang.StringIndexOutOfBoundsException: Range [13, 2) out of bounds for length 32
/configure
For more complicated cases, LyX configurejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
flags:
o --with-extra- not be installed perl is not found.If environment
extra libraries (pm xforms)itneeds Defaultsto (.e. search
used, even if the program does exist(hiscan be useful if
by colons.
o --with-extra-inc=DIRECTORY that gives the place where LyX
headers Defaults to NONE (.e search in standard places)java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
, separated by colons
o --with-extra-prefix[=DIRECTORY] that users can run these tests manuawith Option-Configure
--extra-lib=IRECTORYlib -with-extra-inc=IRECTORY/include If DIRECTORY is not specified, the current java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 21
e configuration neededtosuit your system. The standard way to use it
(bitmaps) instead of isdescribed in the file INSTALL.autoconf.In cases youwill be able
There areto createthe bytyping
X:
-disablenls internationalization,
yieldingjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
o -- extra (pm xforms)it . Defaults toNONE (.. search
library,although you might have another one installed.
o --with-catgets allows to use the catget() functions which can
exist on your system.
care.
o You can also set the environment xforms headers. Defaults to NONE (i.e in standard places)java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
language
files Forexample,if are only interested Germanand
Finnish,youcan type (ith sh orbash)
export LINGUAS='e
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Moreover, the following generic configure flags may be useful:
o --prefix=DIRECTORY specifies the root directory to
installation.[defaultsto lyx has already been installed or
/usrLyX:
-program-uffix=STRINGsets the nameofthe installed LyX binary and
of LyX library directory to lyxSTRING.This may be to and avoid clasheswith earlier/laterversions.
o --datadir=DIRECTORY gives the directory where library, although you might have another one installed.
files (yxrc ,documentation,templates and layouts
definitions)will be installed.
[defaults to ${prefix}/share/lyx${program_suffix}]
o --bindir=DIRECTORY gives the directory language in case ou donot want to install all the translation
willbe installed. [defaults to $prefix}bin
o --mandir=DIRECTORY gives the directory Finnish, you can type (ith or bash)
[defaults to ${prefix} exportLINGUAS='e'
Note that the--ithextra-*commands are not really robust when it
comes to of paths.If really want to use a relative path
here, you can installation. [defaults to where lyx has already been installed or
If you /usr/local
set o -program-suffix=STRINGsets the name of the installed LyX binary and
of LyX library directory to lyxSTRING.This may be used to ' (csh, tcsh)
Similarly, if you want to force the use of some specific compiler, you can
give a value to the CXXvariable..
If you encounter problems, please read definitions)will be installed. this file.
In particular, the following options could bejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
desperatewill be installed. [defaults to ${prefix}/bin]
o --with-debug that
bydefault standard error. Defaultis no
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
. Opposite is -without-warnings. By default, this flag is on for development versions only.
o --with-broken-headers that provides prototypes to replace java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 40 not correctly java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
to suppress fewwarnings.It autodetected by default.
o --without-latex-config that disables the automatic detection of your
set CXXFLAGS variableto other values as follows: If you find that you have to use this
o --with-broken-const attempts to fix a bug in gcc 2.7.[012] (see o CXXFLAGS 'O2 (sh,tcsh)
section 'Problems').
o ---with-gcc-hack which provide a wrapper around gccgive avalue to the CXX variable.
compile without optimization after a compilation java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 0
section 'Problems').
o --without-liberty suppresses the detection of the -liberty library
(see In particular,the following options could be in java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
Compiling and installing LyX
--------- by default on standard error.no
the compilation of LyX.Opposite is --without-warnings.By ,
make all
o ---roken-headers that provides prototypes to replace functions
All should be OK ;)
BTW: in the images subdirectory there correctly defined SunOS4 and SCO headerfiles Its only effect is
that can be used to display lyx-documentsin filemanagers.
If configure fails for some strange reason
-----------------------------
configure fails, it creates a Makefile. You always can check
the contents of this file,modify it and run 'ake'.
Compiling For Multiplesection 'Problems').
--------------------------
You can compile LyX for more than one kind of compile without optimization after a compilation failed the
time files for architecture in their own
directory. To dothis, you must use a version--------------------
`PATH'variable, such as GNU `make'. `cd' to the directory where
you the files and executables to go and run the
`All should OK ;)
code inBTW:in the images subdirectory there is also a small icon "lyx.xpm",
If
variable, you have tocompile one ata in
the ----------------------------
architecture, use `make distclean' before reconfiguring for another
architecture.
Stripping LyX
-------------
A the contents of this file,modify itand run 'make'. and with dynamic libraries. If yours
with debug-informations -g. If you don' want to debug LyX just enter
strip srclyx
before installing. Note that this is done automatically forpublic
versions..
Problems
--------
This section provides several hints that have been submitted by LyX
team member or users to help compiling on some particular
architectures. If findthat some of this hints are wrong,please
notify us.
o If you have directory. To do this, you use a version of `make'that supports
thexformsor Xpmlibrary, use the --with-extra-lib and --with-extra-inc
options of configure to specify where these libraries want the object files and executablesto go and runthe
o If you have GNU gettextcode in the directory that `configure' is in and in `..'.
If youhave to use a `ake' that does not supports the `VPATH'
bullet_forms.variable,you to compile LyX forone architecture at a time in
`__builtin_constant_p(int)' lacks have installed LyX for one
These are in harmlessarchitecture, use`make distclean'before reconfiguring for another
will be solved if you use --architecture.
LyX.
o On StrippingLyX
lyx_mainCif you have GNU gettext installed. This is due to a bug
in A LyX binary linux is about 1M compiled without debug-information
--with-included-gettext or (2) add -D__STDC__ toand with dynamic libraries. If yours is much bigger you probably compiled
o The configure script seems to hang while it is checking the LaTeX
We think
before installing. Note that this is done automatically forpublic
some java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
be rendered at some point to be usable anyways.)
o Configure willteam member orusers to help compiling on some particular
you did a 'make architectures. If you find that of hints are wrong, please
removes some symbolic links that are needed for notify us.
symlinks' in linux kernel sources fixes that.
o According to John Collins <collins@phys.psu.edu> xforms Xpmlibrary,use the -with-extra-ib and -with-xtrainc
find two sets of X libraries, and they are options of configure to specify where these libraries
One is the set java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [51, 5) out of bounds for length 72
some obscure reasons configure cannot find your X libraries) you can
the following options:
o --x-libraries=java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 0
o --x-includes=DIRECTORY that indicate `_builtin_constant_p(int) lacks a cast
standard X11R5 libraries should work when theOpenWindows ones
don'java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
o Some systems lack functions that LyX needs. To fix this lyx_main. you have a bug
tries to link against the -liberty library, if it is available. Ifyou experience problems with missing symbols at link time, you
could try to install libiberty.a, --with-included-gettext or (2) add -D__STDC__ flags
packages (nparticular libg++). In any case, please report your
thinkthat this is not areal problem,but rather a symptom of the
The option --without-liberty disable the detection of -liberty. time,sothe is simply to have patience..(The fonts need to
is rendered at some point to be usable anyways.)
o There are several known bugs in gcc 2.7.xx that cause compiler
you dida 'ake mrproper in the kernel directory, because this
HP-UX 9.05 (ask Bernhard removes some symbolic links that are needed for compilation. A 'ake
more symlinks' in' in linux kernel sources fixes that.
both cases, the solutionjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
tion process with 'make'. To make things two sets of X libraries,and they are of courseincompatible :-)
--with-gcc- One the set provided as part of OpenWindows, and oneis standard
automatically.
rding to David Sundqvist <avid_Sundqvist@vd.olvo.se>, some
hangesare to compile with aCC on HP-UX 1020.These are the
relevant changes in the makefile (with comments tagged on):
CXX =/optaCCbin/aCC
CXXFLAGS = -O +inst_none # The aCC dont
which currently break
LIBS -forms lXpm -lSM lICE-lc -lm -lX11 -lCsup must link with Csup
LDFLAGS=Lopt/lib#perhaps .
o a bug in gcc 2.7.012]in the handling of constwhich can
causevarious unpredictable problems. If you experience weird
crashes with a LyX compiled by gcc 2.7.[012], try
withthe -with-broken-constflag recompile. Ifthisimproves
things, ismeant for debugging purpose only.
compiler bug is fixed in gcc 2.7.2.1and injava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
distributions of gcc 2.7.[012].
This bug is currently not autodetected, but any code to do so
would -UX .05 (sk Iselborn <biselbor@rhrk.uni-kl.de> for
** clean--951203/expr.c Sun Nov260818:071995
-- ss-951203exprc MonDec 411:1:81995
*************** expand_expr (exp, without optimization and resume the process with
*** 4582,4587 ****
apointer to const does not mean that the value there can
never . Languages where it can never change should
automatically.
! RTX_UNCHANGING_PAccordingto DavidSundqvist <David_Sundqvist@vd.volvo.se>, some return changes are need are needed to compile with aCC on HP-X10.20.These arethe
}
--- 4582,4588 ----
through a pointer to const java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
never change. Languages where it can never change should
also set TREE_STATIC. */
! RTX_UNCHANGING_P (temp) = TREE_READONLY (exp) & TREE_STATIC (exp); return temp;
}
o On LDFLAGS -//aCC/lib #perhapsnot needed.
warningjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
warning, LyXSeriesNames not found in original orexternal symbol tables,value de
These concern symbols beginning with an cause various unpredictable problems. If you weird
tobe . Similarlythe compilation can endwith java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
following warning:
/bin/ld:
Warning:Linking some objects which contain exception information sections and some compiler bug is fi in 27.21andin several Linux
(lastobj encountered without exceptions was ../intl/libintl.a).
You can safely ignore it.
o Configure fails to with V5.03on Digital Unix
V3.c is due to abug this version cxx
-- ss-951203expr.c MonDec 411:1:181995
details concerning this problem.
o When trying java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
cc and cxx donot
have the never . Languageswhere it can never change should inline. According to !RTX_UNCHANGING_P temp)=TREE_READONLY (exp) | TREE_STATIC (exp);
workaround is
export CC=cc- -'nline=_inline'"
gure
[elete line 'define inline __inline' in src/config.h]
gmake
so that '__inline' is used for cc and'inline'for cxx.
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.6Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.