On Tuesday 21 May 2002 3:04 pm, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > | On Tuesday 21 May 2002 2:10 pm, Thomas Anders wrote: > >> Me, myself and I wrote: > >> > env CC=/net/bin/gcc CXX=/net/bin/g++ CPPFLAGS=-I/net/usr/include \ > >> > CFLAGS=-I/net/usr/include CXXFLAGS=-I/net/usr/include \ > >> > LDFLAGS=-L/net/usr/lib \ > >> > ./configure --prefix=/net/pub/lyx-1.2.0pre5 \ > >> > --exec-prefix=/net/pub/lyx-1.2.0pre5/osf \ > >> > --with-extra-prefix=/net/usr --with-included-string > >> > >> I also tried without "--with-included-string" (which was necessary > >> for me at least with 1.1.6fix1). It fails at the final linking stage: > | > | Thomas, would you like a compiled binary? I know that this won't resolve > | your problems compiling, but at least it'll enable you to use the > | thing... > | > | I'm downloading BRANCH-1_2_X now, so the Alpha binary will be available > | sometime this afternoon. > | > | Lars, where should I put the results of make bindist? > > Try putting it in ftp.devel.lyx.org:/incoming (or pub/incoming) > > But I would prefere if you did this with the rc1 release and not > directly from cvs.
But I can compile neither rc1 nor cvs unmodified anyway, so I prefer to use cvs. I have detailed all the changes I have made in README.bin. Attached. Angus
README file for the binary distribution of LyX 1.2.0 Created on a Dec Alpha running Tru64 Unix 4.0E ==================================================== Please read the file README for general information on LyX. To use this binary distribution of LyX, please follow these steps: 1) Unpack the distribution in the directory /usr/local (if you unpack it in a different place, please read the note below) 2) Configure LyX for you system by executing cd share/lyx ; ./configure 3) Make sure that the directory bin/ is in your path. For example, if you unpacked the distribution in /usr/local, your PATH environment variable should contain "/usr/local/bin". 4) If you want to use reLyX, the LaTeX-to-LyX translator, you will have to edit the first line of the script, which should read #!/usr/local/bin/perl if you have perl installed as /usr/local/bin/perl. Note that reLyX requires at least perl version 5.002. 5) I know of no problems with this binary distibution, but please feel free to contact me at [EMAIL PROTECTED] if it doesn't work for you. That's it. Happy LyXing ! If you did not unpack the distribution in /usr/local ---------------------------------------------------- LyX can perfectly work in this situation, except for one thing: as distributed, LyX expects to find its internationalization files in the directory /usr/local/share/locale. If you unpacked the distribution in directory /foo, you should set the environment variable LYX_LOCALEDIR to point to /foo/share/locale as follows: LYX_LOCALEDIR=/foo/share/locale (if you use sh or bash as shell) or setenv LYX_LOCALEDIR /foo/share/locale (for csh or tcsh) Note that, if if you do not have any interest in having LyX display its messages in other languages than english, you can safely skip this step. Detailed notes on how I made this --------------------------------- This binary snapshot was compiled from a 21 May 2002 snapshot of the BRANCH-1_2_X branch of the lyx-devel cvs tree obtained by: cvs co -d 1_2_X -r BRANCH-1_2_X lyx-devel I use a DEC Alpha running Tru64 Unix 4.0e and cxx version 6.1 and find that, with a little tweaking, I can compile LyX fine. This includes the cvs repository. Here I use a combination of autoconf 2.13 and automake 1.5. Having run ./autogen.sh, I use the following script to configure LyX. ------------------------------------------------------------------------------- #!/bin/sh # is it necessary to set the PATH? For me, yes. I have: # * /usr/bin for cc, cxx # * /usr/local/bin for gm4, automake, autoconf # * /usr/local/teTeX/bin for latex etc PATH=/usr/bin:/usr/local/bin:/usr/local/teTeX/bin export PATH echo PATH is ${PATH} CC="cc -std1" export CC echo CC is ${CC} CFLAGS="-O2" export CFLAGS echo CFLAGS is ${CFLAGS} CXX="cxx -std strict_ansi" export CXX echo CXX is ${CXX} CXXFLAGS="-nocleanup -ptr ${PWD}/lyx_cxx_repository -O2" export CXXFLAGS echo CXXFLAGS is ${CXXFLAGS} # Set up configure itself #======================== # I install lyx in /usr/local as lyx-1.2.0. To do this, set # --prefix=/usr/local --with-version-suffix # My xforms and xpm libraries are installed in /usr/local. # To enable them to be found, set the --with-extra-prefix flag. # I want LyX to run in languages other than English, so set the # --with-included-gettext flag. # You should, of course, use whatever configure options are appropriate to # your needs ;-) # "./configure --help" will give you more info. CONFIGURE="./configure --prefix=/usr/local --with-version-suffix --with-extra-prefix=/usr/local --with-included-gettext" ------------------------------------------------------------------------------- Some points to be aware of: o The code is to be installed in /usr/local. The binary is /usr/local/bin/lyx-1.2.0rc1. The support code is found in /usr/local/share/lyx-1.2.0rc1/ User preferences will be stored in $HOME/.lyx-1.2.0rc1 o I use the non-standard xforms-0.9999 and xpm-3.4.11 here so have linked these staticly into the binary. o On Tru64 Unix 4.0e, the STL library routine std::count is broken (/usr/include/cxx/algorithm.cc, line 289 on my machine). It calculates "n" but does not return it! The fix is to add "return n;" to the end of the (4-line long) routine. Angus 22 March, 2002. o On Tru64 Unix 4.0e, compilation of support/lyxsum.C dies horribly because the cxx compiler does not support templatised return types. The work-around is to use the old version, 1.18, of this routine. cvs update -r 1.18 src/support/lyxsum.C o On Tru64 Unix 4.0e, there _may_ be a bug in the STL ostringstream class that manifests itself as an inability to export the text class preamble. The following patch works for me: Index: src/LaTeXFeatures.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/LaTeXFeatures.C,v retrieving revision 1.60 diff -u -p -r1.60 LaTeXFeatures.C --- src/LaTeXFeatures.C 21 Mar 2002 17:25:07 -0000 1.60 +++ src/LaTeXFeatures.C 26 Mar 2002 17:21:13 -0000 @@ -336,6 +336,10 @@ string const LaTeXFeatures::getTClassPre tcpreamble << tclass[*cit].preamble(); } + // DEC's implementation of ostringstream _may_ have a bug which + // can be overcome with this forcing. + tcpreamble.seekp(0); + return tcpreamble.str().c_str(); } ------------------------------------------------------------------------------- Making these changes and all works beautifully for me. YMMV of course; feel free to contact me if you experience any problems. Angus <[EMAIL PROTECTED]> 21 May, 2002.