cvs commit: hints docbook.txt javafromscratch.txt mozilla.txt openoffice.txt

timothy at linuxfromscratch.org timothy at linuxfromscratch.org
Mon Sep 16 06:08:08 PDT 2002


timothy     02/09/16 06:08:08

  Modified:    .        docbook.txt javafromscratch.txt mozilla.txt
                        openoffice.txt
  Log:
  Updates by author.
  
  Revision  Changes    Path
  1.3       +60 -25    hints/docbook.txt
  
  Index: docbook.txt
  ===================================================================
  RCS file: /home/cvsroot/hints/docbook.txt,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- docbook.txt	7 Aug 2002 22:23:03 -0000	1.2
  +++ docbook.txt	16 Sep 2002 13:08:08 -0000	1.3
  @@ -5,11 +5,30 @@
   AUTHOR:		Tushar Teredesai <Tush at Yahoo.Com>
   
   SYNOPSIS:
  -	How to install docbook tools and openjade.
  +	How to install docbook DTDs, tools and utilities.
   
   HINT:
   
  +The primary location for this site is <http://tushar.lfsforum.org>, thanks to
  +Deutsche LFS Foren. The latest version of the hint and any relevant patches are
  +available at that site. Please refer to the primary location before submitting
  +bug-reports/enhancements to this hint.
  +
  +You may freely copy this document or create derivate works or distribute the
  +document in any format. At your discretion, you may give credit to the original
  +author:)
  +
  +Use the hint at your own risk. Neither the author, nor the Linux From Scratch
  +project accepts any reponsibility for anything that happens when using these
  +documents or associated files.
  +
  +An appropriate place to discuss this hint is blfs-support MailingList/NewsGroup
  +at LinuxFromScratch.Org.
  +
  +
   Change Log:
  +[2002-08-16]
  +	* Added files to be downloaded.
   [2002-08-07]
   	* Made some changes so that it is easier to upgrade.
   	* Added some more catalogs.
  @@ -20,16 +39,12 @@
   	* InfoZip Unzip <http://freshmeat.net/projects/unzip/>
   	* LibXML <http://freshmeat.net/projects/libxml/>
   
  +
   WARNING:
   This hint does not stick to the 80 column limit for the commands since the
   commands are very long and difficult to break strings without applying
   unneccessary variable manipulation.
   
  -Alternate site:
  -This hint is also available at <http://www.geocities.com/tush/lfs>. The latest
  -version of the hint is usually available there.
  -
  -
   We will install scripts so that will allow centralized SGML and XML catalogs and
   hence there won't be any need for setting the SGML_CATALOG_FILES variable. Most
   of the installation scripts are straight forward (install package & then install
  @@ -41,13 +56,20 @@
   package for the first time, do not set the PREVIOUS variable. Set the VERSION
   variable to the version you are installing.
   
  -The best way to use the instructions are to save the instructions into
  +The easiest way to use the instructions are to save the instructions into
   individual files and then source the file.
   
  +For each of the packages given below, I will mention the URLs of the files to be
  +downloaded followed by the instructions. Before downloading the files below,
  +download the files from the site mentioned above.
  +
  +
   sgml-common (0.6.3):
   
   * ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/
   
  +* ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/sgml-common-0.6.3.tgz
  +
   	./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man
   	make
   	if [ ! -z ${PREVIOUS} ]
  @@ -64,10 +86,9 @@
   
   * http://freshmeat.net/projects/openjade/
   
  -	./configure --prefix=/usr --enable-http --disable-static
  ---enable-default-catalog=/etc/sgml/catalog
  ---enable-default-search-path=/usr/share/sgml
  ---datadir=/usr/share/sgml/openjade-${VERSION}
  +* http://download.sourceforge.net/openjade/openjade-1.3.1.tar.gz
  +
  +	./configure --prefix=/usr --enable-http --disable-static --enable-default-catalog=/etc/sgml/catalog --enable-default-search-path=/usr/share/sgml --datadir=/usr/share/sgml/openjade-${VERSION}
   	make
   	if [ ! -z ${PREVIOUS} ]
   	then
  @@ -99,11 +120,17 @@
   	install-catalog --add /etc/sgml/sgml-docbook.cat /etc/sgml/openjade-${VERSION}.cat
   
   
  -docbook-sgml-dtd (3.1 & 4.1)
  +docbook-sgml-dtd (3.1, 4.1, 4.2)
   
  -* http://www.oasis-open.org/docbook/sgml/3.1/index.shtml
  -* http://www.oasis-open.org/docbook/sgml/4.1/index.shtml
  -* ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/
  +* http://www.oasis-open.org/docbook/sgml/
  +
  +* http://www.oasis-open.org/docbook/sgml/3.1/docbk31.zip
  +* http://www.oasis-open.org/docbook/sgml/4.1/docbk41.zip
  +* http://www.oasis-open.org/docbook/sgml/4.2/docbook-4.2.zip
  +* ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/docbook-dtd31-sgml-1.0.catalog.patch
  +* ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/docbook-dtd41-sgml-1.0.catalog.patch
  +* ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/docbook-dtd31-sgml-1.0.Makefile
  +* ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/docbook-dtd41-sgml-1.0.Makefile
   
   	V=${VERSION/.}
   	cat docbook-dtd${V}-sgml-1.0.catalog.patch | patch -Np0
  @@ -116,7 +143,8 @@
   docbook-dsssl (1.77)
   
   * http://freshmeat.net/projects/docbook/
  -* http://www.geocities.com/tush/lfs
  +
  +* http://download.sourceforge.net/docbook/docbook-dsssl-1.77.tar.gz
   
   	cat docbook-dsssl.Makefile > Makefile
   	if [ ! -z ${PREVIOUS} ]
  @@ -133,15 +161,19 @@
   
   * http://freshmeat.net/projects/docbook-utils/
   
  +* ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/docbook-utils-0.6.11.tar.gz
  +
   	./configure --prefix=/usr --sysconfdir=/etc
   	make
   	make install
   
   
  -docbook-xsl (1.53.0)
  +docbook-xsl (1.54.1)
   
   * http://freshmeat.net/projects/docbook/
   
  +* http://download.sourceforge.net/docbook/docbook-xsl-1.54.1.tar.gz
  +
   	install -d /usr/share/sgml/docbook/xsl-stylesheets-${VERSION}
   	cp -af common extensions fo html htmlhelp images javahelp lib template xhtml /usr/share/sgml/docbook/xsl-stylesheets-${VERSION}
   	if [ ! -f /etc/xml/catalog ]; then mkdir /etc/xml; xmlcatalog --noout --create /etc/xml/catalog; fi
  @@ -154,15 +186,18 @@
   	xmlcatalog --noout --add "delegateURI" "http://docbook.sourceforge.net/release/xsl/" "file:///etc/xml/docbook" /etc/xml/catalog
   
   
  -docbook-xml-dtd (4.1.2)
  +docbook-xml-dtd (4.1.2, 4.2)
   
   * http://www.oasis-open.org/docbook/xml/
   
  +* http://www.oasis-open.org/docbook/xml/4.1.2/docbkx412.zip
  +* http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip
  +
   	V=${VERSION/.}
   	XML_DTD_DIR=/usr/share/xml/docbook/xml-dtd-${VERSION}
   	ROOTCATALOG=/etc/xml/catalog
   	CATALOG=/etc/xml/docbook
  -	install -d ${XML_DTD_DIR}
  +	install -d ${XMfile:///home/users/tushar/DATA/LFS-hints/index.htmlL_DTD_DIR}
   	cp -af docbook.cat *.dtd ent/ *.mod ${XML_DTD_DIR}
   	if [ ! -e ${ROOTCATALOG} ]; then xmlcatalog --noout --create ${ROOTCATALOG}; fi
   	if [ ! -e ${CATALOG} ]; then xmlcatalog --noout --create ${CATALOG}; fi
  @@ -206,6 +241,8 @@
   
   * http://www.oasis-open.org/docbook/xml/simple/
   
  +* http://www.oasis-open.org/docbook/xml/simple/4.1.2.5/simple4125.zip
  +
   	V=${VERSION/.}
   	V=${V/.}
   	V=${V/.}
  @@ -218,10 +255,12 @@
   
   * http://freshmeat.net/projects/scrollkeeper/
   
  +* http://download.sourceforge.net/scrollkeeper/scrollkeeper-0.3.11.tar.gz
  +
   	./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static --with-omfdirs=/usr/share/omf:/opt/gnome/share/omf:/opt/kde/share/omf
   	make
   	make install
  -	xmlcatalog --noout --add "public" "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" "`echo "/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" |sed -e "s://:/:g"`" /etc/xml/catalog
  +	xmlcatalog --noout --add "public" "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" "/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" /etc/xml/catalog
   
   
   Following the approach mentioned in this hint, you can download and install more
  @@ -231,11 +270,7 @@
   how to remove catalogs that are no longer needed (e.g. if you install a new
   version and you need to remove the old one).
   
  -I am not an expert on sgml and this document is based on my findings trying to
  +I am not an expert on SGML and this document is based on my findings trying to
   install the prerequsites for GNOME-2. Hence there may be errors; if so please
   let me know.
  -
  -Don't forget to send me bug reports and enhancements so that I can keep the hint
  -updated. An appropriate place to discuss problems is the blfs-support mailing
  -list.
   
  
  
  
  1.4       +92 -33    hints/javafromscratch.txt
  
  Index: javafromscratch.txt
  ===================================================================
  RCS file: /home/cvsroot/hints/javafromscratch.txt,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- javafromscratch.txt	20 Jul 2002 04:34:01 -0000	1.3
  +++ javafromscratch.txt	16 Sep 2002 13:08:08 -0000	1.4
  @@ -10,7 +10,29 @@
   
   HINT:
   
  +The primary location for this site is <http://tushar.lfsforum.org>, thanks to
  +Deutsche LFS Foren. The latest version of the hint and any relevant patches are
  +available at that site. Please refer to the primary location before submitting
  +bug-reports/enhancements to this hint.
  +
  +You may freely copy this document or create derivate works or distribute the
  +document in any format. At your discretion, you may give credit to the original
  +author:)
  +
  +Use the hint at your own risk. Neither the author, nor the Linux From Scratch
  +project accepts any reponsibility for anything that happens when using these
  +documents or associated files.
  +
  +An appropriate place to discuss this hint is blfs-support MailingList/NewsGroup
  +at LinuxFromScratch.Org.
  +
   Change Log:
  +[2002-08-31]
  +	* Added discussion on renaming i386 directories to i?86.
  +[2002-07-24]
  +	* Added link to German translation.
  +[2002-07-19]
  +	* Added CLASSPATH mini-hint.
   [2002-07-18]
   	* Optmizing the build.
   	* Added Problems and Workarounds section.
  @@ -26,12 +48,18 @@
   compatiblity tests. In short don't use the resulting JDK except for your
   personal use.
   
  +Translations:
  +	* German by Jens Gutzeit
  +		<http://lfsforum.org/howtos/read.php?howto=7>
  +
   Pre-requisites (post LFS):
  -	* XFree86 <http://freshmeat.net/projects/xfree86/>
  -        * InfoZip Zip and Unzip <http://freshmeat.net/projects/zip/>
  +	* XFree86
  +		<http://freshmeat.net/projects/xfree86/>
  +        * InfoZip Zip and Unzip
  +		<http://freshmeat.net/projects/zip/>
           * InfoZip Unzip <http://freshmeat.net/projects/unzip/>
   	* GNU cpio <http://freshmeat.net/projects/cpio>
  -        * Turbo C Shell <http://freshmeat.net/projects/tcsh/>
  +        * Tenex C Shell <http://freshmeat.net/projects/tcsh/>
   	* Sun JDK 1.4 <http://freshmeat.net/projects/sunjdk/>
   
   The JDK has a circular dependency and hence requires a Java compiler to compile
  @@ -39,9 +67,8 @@
   for compiling the SDK and then delete it. Also, it needs a 1.4 version JDK
   according to Sun's website. If you don't want to install the jdk permenantly, I
   have included instructions on how to install it for the duration of the
  -compilation.
  -
  -Install cpio binary in /bin or make a symlink to the it from /bin.
  +compilation. BTW, you can use those same instructions to install the precompiled
  +JDK available from Sun.
   
   Note that when I build the SDK, I had many packages already installed, so I
   don't have the exact dependencies. If anyone runs into any problems regarding
  @@ -49,58 +76,53 @@
   
   Packages to download:
   	* Java 2 SDK Source <http://wwws.sun.com/software/java2/download.html>
  ->From Sun's website, download the following files:
  +From Sun's website, download the following files:
   	- j2sdk-1_4_0-src-scsl.zip
   	- j2sdk-1_4_0-motif-linux-i386.zip
   	- j2sdk-1_4_0-mozilla_headers-unix.zip
  +The last zip file is referred to as Mozilla binaries at the above URL.
   You will need to register at the website and agree to the "SUN COMMUNITY SOURCE
   LICENSE" before downloading the code. Note that the file
  -j2sdk-sec-1_4_0-src-scsl.zip is not needed.
  +j2sdk-sec-1_4_0-src-scsl.zip is not needed (unless you have a certificate from a
  +certificate authority).
   
   The Java Source doesn't work well with locally installed mozilla and motif
   headers and requires the download of the header files from the above site where
   you download the source.
   
  -	* My Patch <http://www.geocities.com/tush/lfs/>
  -The patch fixes some non-gcc3 compliant code and few missing library links. It
  +Also download the patches from the primary site of this hint.
  +The patches fix some non-gcc3 compliant code and few missing library links. It
   took me some time to understand the build process and to figure out how to link
   additional libraries. You agree that by downloading the patch, you accept the
   SUN COMMUNITY SOURCE LICENSE:)
   
  -Alternate site:
  -This hint is also available at <http://www.geocities.com/tush/lfs>. The latest
  -version of the hint is usually available there.
  -
   
   Compiling Java 2 SDK:
   
   This hint, unlike the mozilla and openoffice hints, is short and sweet:)
   
  -I will refer to the root of the source tree as $SRC.
  -	cd $SRC
  -
   If you don't have JDK 1.4 installed, you can install the JDK in the current
  -directory for the duration of the compilation.
  +directory for the duration of the compilation. If you want, you can have a dual
  +install of the precompiled jdk. Use the instructions below to install the
  +precompiled JDK.
   	chmod +x j2sdk-1_4_0_01-linux-i586.bin &&
   	./j2sdk-1_4_0_01-linux-i586.bin
   
   This location is referred to as JAVA_HOME. So set the variable now.
  -	export JAVA_HOME=$SRC/j2sdk1.4.0_01
  -Also since the JDK binary from Sun is linked against gcc2, download it from 
  -<http://www.linuxfromscratch.org/~timothy/misc/> and move it where the jdk can
  -find it.
  +	export JAVA_HOME=$PWD/j2sdk1.4.0_01
  +Also since the JDK binary from Sun is linked against gcc2, download the lib from
  +it from <http://www.linuxfromscratch.org/~timothy/misc/> and move it where the
  +jdk can find it.
   	mv libstdc++-* $JAVA_HOME/jre/lib/i386/
   Try running $JAVA_HOME/bin/java and if it reports any missing libraries, make
   appropriate links in $JAVA_HOME/jre/lib/i386.
  +	cd $JAVA_HOME/jre/lib/i386
  +	ln -sf libstdc++-libc6.2-2.so.3 libstdc++-libc6.1-1.so.2
   
  -Unzip all the files:
  +Unzip all the files where you plan to compile JDK:
   	cd $SRC &&
   	for i in j2sdk-1_4_0-*.zip ; do unzip $i; done
   
  -Apply the downloaded patch to fix some compilation problems.
  -	cd $SRC &&
  -	patch -Np1 -i j2sdk.patch
  -
   Now we will set some variables required by the build.
   	export ALT_BOOTDIR="$JAVA_HOME"
   
  @@ -125,7 +147,8 @@
   	export DEV_ONLY=true
   
   There is also a variable J2RE_ONLY which if set to true builds only the Runtime
  -Env. Avoid setting that. Or if you like adventure, set it and try...
  +Env. Avoid setting that. Or if you like adventure, set it and try... then do a
  +make clobber and come back to this point.
   
   This one took me a long time to figure out. After getting some build errors
   related to pthread variables, as per the standard practice I tried setting
  @@ -140,7 +163,9 @@
   I also remove any CFLAGS or CXXFLAGS settings since I don't like taking risks:)
   Well, that was before, now I do like taking risks:)) So do the following to get
   your CFLAGS and CXXFLAGS recognized. I have compiled with "-O3 -march=i686"
  -without problems. Also, I applied the combreloc patch to binutils:)
  +without problems. If you apply more optimizations and succeed, do let me know.
  +If you run into problems when using optimizations, before reporting problems,
  +try a build with CFLAGS and CXXFLAGS unset.
   	export OTHER_CFLAGS=${CFLAGS}
   	export OTHER_CXXFLAGS=${CXXFLAGS}
   	unset CFLAGS
  @@ -148,7 +173,7 @@
   
   The build also looks for a Redhat Release 6.1. Though the error is not show
   stopping, if you want you can make a file for the duration of the build. This is
  -entirely optional, I don't create the file.
  +entirely optional; I don't create the file.
   	echo "Red Hat Linux release 6.1 (LFS)" > /etc/redhat-release
   
   Now the most simple part of the build.
  @@ -167,7 +192,7 @@
   	mkdir -p /opt/java &&
   	cp -a j2sdk-image /opt/java/j2sdk-1.4.0-tt &&
   	cd /opt/java &&
  -	ln -s j2sdk-1.4.0-ttimage j2sdk
  +	ln -s j2sdk-1.4.0-tt j2sdk
   
   Add the following to your </etc/profile> or <~/.profile>. Many programs expect
   the JAVA_HOME variable to find the JDK.
  @@ -193,7 +218,41 @@
   * Harald Meier reported that if there are problems, try removing the "-z defs"
     from LDFLAGS_COMMON from line 263 in the file
     $SRC/j2sdk_ori/j2se/make/common/Defs-linux.gmk.
  +* Parkanyi Balazs and Kelledin reported that trying to manually run java_vm
  +  results in unresolved libraries. Adding the relevant directories to
  +  /etc/ld.so.conf does not fix the problem (unless of course you have a 386
  +  CPU.) The solution suggested was to rename the i386 directories to i<x>86
  +  where <x> should be replaced by whatever your CPU is. So for a Pentium, you
  +  would rename the i386 directories to i586. For more info, refer to
  +  <http://www.cs.helsinki.fi/linux/linux-kernel/2001-25/0014.html>. Note that
  +  Mozilla wrapper script takes care of all this when it loads the java_vm, so
  +  you only have to do this if you need to run java_vm on the command line.
  +
  +CLASSPATH script:
  +
  +This part is not related to compiling Java, but seemed like a nice place to put
  +this mini-hint:)
  +
  +It is a big pain to update the CLASSPATH everytime a new package is installed. A
  +nice trick I use is to create a directory called /opt/classes and whenever I
  +install a java related package that installs a jar file, I make a link to the
  +relevant jar files from /opt/classes. I use the following script to
  +automatically create the CLASSPATH entries.
  +	#!/bin/sh
  +	# SetClassPath
  +	if [ -z $CLASSPATH ]
  +	then
  +		CLASSPATH=.
  +	else
  +		CLASSPATH=$CLASSPATH:.
  +	fi
  +	for i in $(ls /opt/classes/*.jar)
  +	do
  +		CLASSPATH=$CLASSPATH:$i
  +	done
  +	echo $CLASSPATH
  +and in /etc/profile I add the following line.
  +	export CLASSPATH=`SetClassPath`
   
   Don't forget to send me bug reports and enhancements so that I can keep the hint
  -updated. An appropriate place to discuss problems is the blfs-support mailing
  -list.
  +updated.
  
  
  
  1.9       +114 -34   hints/mozilla.txt
  
  Index: mozilla.txt
  ===================================================================
  RCS file: /home/cvsroot/hints/mozilla.txt,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- mozilla.txt	7 Aug 2002 22:28:10 -0000	1.8
  +++ mozilla.txt	16 Sep 2002 13:08:08 -0000	1.9
  @@ -9,7 +9,35 @@
   
   HINT:
   
  +The primary location for this site is <http://tushar.lfsforum.org>, thanks to
  +Deutsche LFS Foren. The latest version of the hint and any relevant patches are
  +available at that site. Please refer to the primary location before submitting
  +bug-reports/enhancements to this hint.
  +
  +You may freely copy this document or create derivate works or distribute the
  +document in any format. At your discretion, you may give credit to the original
  +author:)
  +
  +Use the hint at your own risk. Neither the author, nor the Linux From Scratch
  +project accepts any reponsibility for anything that happens when using these
  +documents or associated files.
  +
  +An appropriate place to discuss this hint is blfs-support MailingList/NewsGroup
  +at LinuxFromScratch.Org.
  +
   Change Log:
  +[2002-09-12]
  +	* Changed location of nss headers from nss to security.
  +[2002-09-09]
  +	* Added lcms dependency.
  +[2002-09-08]
  +	* Added notes for Galeon suggested by Scot Mc Pherson.
  +[2002-08-30]
  +	* Added comment on LD_LIBRARY_PATH and /etc/ld.so.conf.
  +	* Added comment on dowloading gcc2 libraries for precompiled mozilla.
  +[2002-08-14]
  +	* Added warning regarding stripping mozilla-bin.
  +	* Added Problems and workarounds section.
   [2002-08-07]
   	* Made individual patches.
   [2002-07-12]
  @@ -37,18 +65,19 @@
   	* Added warning for CFLAGS, CXXFLAGS.
   	* Added warning for QT and XLib toolkits.
   	* Added info about pre-compiled distributions.
  -	* Added MOZILLA_FIVE_HOME to .mozconfig
  +	* Added MOZILLA_FIVE_HOME to .mozconfig.
   	* Added instructions to copy man page, header files and idl files.
   [2002-03-28]
   	* Fixed some typos.
   	* Environment variable to speed up Mozilla.
   	* First version as mozcompile.
   
  -Pre-requisites:
  +Pre-requisites (Post-LFS):
   	* X 4.2.0
   	* GLib & GTK >= 1.2 (<2.0)
   	* libIDL >= 0.6.3 && < 0.7
   	* JPEG, PNG, MNG Libraries (latest versions)
  +	* LCMS (latest version)
   
   Packages to download:
   	* Info Zip >= 2.3 <http://www.info-zip.org/Zip.html>
  @@ -56,12 +85,6 @@
   	* Mozilla:) <http://www.mozilla.org/releases>
   	* Mozilla SpellChecker <http://spellchecker.mozdev.org/source.html>
   
  -Alternate site:
  -This hint is also available at <http://www.geocities.com/tush/lfs>. The latest
  -version of the hint is available there.
  -
  -I also have various patches available at the site. Check it out.
  -
   Installing X:
   
   I have X-4.2.0. If possible use the latest version, there have been some
  @@ -82,7 +105,9 @@
   Installing libIDL:
   
   libIDL is a part of ORBIT (Orbit1, not Orbit2). If you have not installed
  -ORBIT1, download libIDL from mozilla's ftp site.
  +ORBIT1, download libIDL from mozilla's ftp site. Either get it from the Mozilla
  +site at ftp://ftp.mozilla.org/pub/mozilla/libraries/source/ or just install
  +ORBit1. Refer to the BLFS book.
   
   
   Installing Image Libraries (JPEG, PNG, MNG):
  @@ -90,6 +115,11 @@
   See the BLFS book for installation instructions. Get the latest versions.
   
   
  +Installing LCMS:
  +
  +See the BLFS book for instructions.
  +
  +
   Installing Zip:
   
   There are additional options, check out the unix/Makefile. I use:
  @@ -109,7 +139,10 @@
   
   Compiling Mozilla:
   
  -Apply patches that you think are useful from the site mentioned above.
  +Apply patches that you think are useful from the site mentioned above. Some of
  +the patches are specific to the Mozilla version. For Galeon users, it is better
  +to stick with Mozilla 1.0 for now. The VERSION variable refers to the Mozilla
  +version.
   
   One option is to pass the options to configure. Alternatively, these options can
   be placed in a file .mozconfig that is read by Mozilla's configure script. I
  @@ -126,12 +159,30 @@
   if you want to build the calendar interface (experimental).
   
   Set CFLAGS and CXXFLAGS based on your needs. It is reported that Mozilla crashes
  -on startup if -fomit-frame-pointer is used. I have had no problems setting both
  +on startup if -fomit-frame-pointer is used. I have had The primary location for this site is <http://tushar.lfsforum.org>, thanks to
  +Deutsche LFS Foren. The latest version of the hint and any relevant patches are
  +available at that site. Please refer to the primary location before submitting
  +bug-reports/enhancements to this hint.
  +
  +You may freely copy this document or create derivate works or distribute the
  +document in any format. At your discretion, you may give credit to the original
  +author.
  +
  +Use the hint at your own risk. Neither the author, nor the Linux From Scratch
  +project accepts any reponsibility for anything that happens when using these
  +documents or associated files.
  +
  +An appropriate place to discuss this hint is blfs-support MailingList/NewsGroup
  +at LinuxFromScratch.Org.
  +no problems setting both
   CFLAGS and CXXFLAGS to "-O3 -march=i686 -fforce-addr -funroll-loops
   -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4". YMMV.
   
   If you would like to compile the spellchecker, you will need to download the
  -spellchecker source code via cvs. First the login.
  +spellchecker source code via cvs. For this you should have CVS client installed,
  +check out the BLFS-book for installing CVS.
  +
  +First the login. 
   	cvs -d :pserver:guest at mozdev.org:/cvs login
   The password is guest. Now download the spellchecker code.
   	cvs -d :pserver:guest at mozdev.org:/cvs co spellchecker/spellcheck
  @@ -139,7 +190,7 @@
   	mv spellchecker/spellcheck $MOZSRC/extensions
   
   First try
  -	cd $MOZSRC &&
  +	cd $MOZ_SRC &&
   	./configure --help
   to understand all the options that are available to you.
   
  @@ -153,9 +204,9 @@
   options along with short descriptions.
   
   Mozilla now supports the "make install" option:) I prefer installing mozilla in
  -one of the standard locations such as /usr/X11R6.
  -install it with the same prefix as gnome.
  -	echo ac_add_options --prefix=/usr/X11R6 >> .mozconfig
  +one of the standard locations such as /usr/X11R6. You may prefer to install it
  +in /opt/mozilla. I will refer to this as MOZ_PREFIX.
  +	echo ac_add_options --prefix=$MOZ_PREFIX >> .mozconfig
   
   The --enable-default-mozilla-five-home is not relevant anymore since mozilla
   installs in the standard locations.
  @@ -223,7 +274,8 @@
   
   The QT and XLib toolkit support are not stable and may (!) fail to compile. Try
   compiling without these first and if all goes well, experiment with the other
  -toolkits.
  +toolkits. If you would like to help out with the QT port of Mozilla, check out
  +the Mozilla Developer NGs since they are looking for developers.
   
   <WARNING>
   According to the financial institutions, the following hack makes your browser
  @@ -246,8 +298,7 @@
   
   If anyone tells you MS-IE is user friendly, give them this example:)
   
  -Optionally you can apply the patch I mentioned in the begining of the hint to
  -enable the password hack.
  +Optionally you can apply the patch available at the site mentioned above.
   
   Now configure and compile the package as usual. If there are problems run
   configure again by removing the offending option.
  @@ -259,10 +310,20 @@
   distribution that can be installed on various computers.
   
   Installing mozilla on top of an existing installation creates some problems. So
  -I usually delete the previous installation before installing a new one.
  +I usually delete the previous installation before installing a new one. There is
  +no need to delete your profile, just delete the installed package.
   
   If you would like to install in the standard locations do the standard:
   	make install
  +The nss headers are not installed by default, so do the following.
  +	install -d $MOZ_PREFIX/include/mozilla-$VERSION/security
  +	cp -Lf dist/private/security/*.h dist/public/security/*.h \
  +		$MOZ_PREFIX/include/mozilla-$VERSION/security
  +
  +Also, if you are installing mozilla-1.0, then all header files are not copied
  +and hence packages (such as Galenon) that depend on mozilla cannot be compiled.
  +So do the following to verify that all header files are copied.
  +	cp -Lur dist/include/* $MOZ_PREFIX/include/
   
   Some apps look for netscape for starting the browser (RMS has started a movement
   so that these apps start recognizing the BROWSER env variable). Till then it is
  @@ -274,14 +335,14 @@
   	cd xpinstall/packager &&
   	make &&
   	cd /opt &&
  -	tar -xzf $MOZSRC/dist/mozilla-i686-pc-linux-gnu.tar.gz &&
  -	cd $MOZSRC/dist &&
  +	tar -xzf $MOZ_SRC/dist/mozilla-i686-pc-linux-gnu.tar.gz &&
  +	cd $MOZ_SRC/dist &&
   	cp -LfR man /opt/mozilla &&
   	cp -LfR idl /opt/mozilla &&
   	cp -LfR include /opt/mozilla &&
  -	mkdir /opt/mozilla/include/nss &&
  -	cp -Lf private/security/*.h /opt/mozilla/include/nss &&
  -	cp -Lf public/security/*.h /opt/mozilla/include/nss &&
  +	mkdir /opt/mozilla/include/security &&
  +	cp -Lf private/security/*.h /opt/mozilla/include/security &&
  +	cp -Lf public/security/*.h /opt/mozilla/include/security &&
   	cd /opt &&
   	tar -cvzf mozilla-dist.tar.gz mozilla/
   The above commands create a binary distribution, installs it in /opt/mozilla,
  @@ -294,8 +355,11 @@
   is in your PATH. Also you may add the man page to your MANPATH.
   	export PATH=$PATH:/opt/mozilla
   	export MANPATH=$MANPATH:/opt/mozilla/man
  -You may also add /opt/mozilla to /etc/ld.so.conf (not required and not
  -recommended). Remember to run ldconfig if you do.
  +In addition, if you plan on using Galeon, then you will need to export
  +MOZILLA_FIVE_HOME, though it is not required for running Mozilla. There is no
  +need to add the mozilla libraries to /etc/ld.so.conf since the startup script
  +automatically adjusts the library paths that it requires (such as the Mozilla
  +libraries, the plugin directories, etc.).
   
   To make your Mozilla build go faster, add:
   	export XPCOM_CHECK_THREADSAFE=0
  @@ -317,11 +381,17 @@
   following (useful if you are automating the build). Note that the
   MOZILLA_FIVE_HOME and LD_LIBRARY_PATH are not relevant anymore when running
   mozilla.
  -	export LD_LIBRARY_PATH=/usr/X11R6/mozilla-1.0.0:$LD_LIBRARY_PATH
  -	export MOZILLA_FIVE_HOME=/usr/X11R6/mozilla-1.0.0
  -	/usr/X11R6/mozilla-1.0.0/regxpcom
  -	/usr/X11R6/mozilla-1.0.0/regchrome
  -	touch `find /usr/X11R6/mozilla-1.0.0 -name *.rdf`
  +	export LD_LIBRARY_PATH=/usr/X11R6/mozilla-$VERSION:$LD_LIBRARY_PATH
  +	export MOZILLA_FIVE_HOME=/usr/X11R6/mozilla-$VERSION
  +	/usr/X11R6/mozilla-$VERSION/regxpcom
  +	/usr/X11R6/mozilla-$VERSION/regchrome
  +	touch `find /usr/X11R6/mozilla-$VERSION -name *.rdf`
  +
  +Please note that you shouldn't need any modifications with /etc/ld.so.conf
  +and/or LD_LIBRARY_PATH env variable. The mozilla wrapper scripts takes care of
  +adding all the required libraries to LD_LIBRARY_PATH before running mozilla-bin.
  +So don't modify either LD_LIBRARY_PATH or /etc/ld.so.conf. IMO, /etc/ld.so.conf
  +should only list the standard system wide library locations.
   
   Enzoy:)
   
  @@ -347,6 +417,10 @@
   Remember to follow the instructions for multi-user installs in the notes, else
   a core dump may occur at startup.
   
  +If your system is gcc3 based, and the precompiled distro is linked against gcc2,
  +download the libraries from <http://www.linuxfromscratch.org/~timothy/misc/> and
  +move it to where mozilla can find it (such as the MOZILLA_FIVE_HOME).
  +
   
   Relevant URLs:
   
  @@ -438,10 +512,16 @@
   	http://www.codeweavers.com/products/crossover/
   for more info.
   
  +Problems and Workarounds:
  +
  +* If you are using the gcc2 compatible patch when compiling for gcc3, avoid
  +stripping the mozilla-bin binary. If you follow the instructions mentioned
  +above, the binaries are stripped of debugging information. So no need to strip
  +further. Credit for the problem and the workaround goes to Kelledin.
  +
   
   Have fun mozzing around.
   
   Don't forget to send me bug reports and enhancements so that I can keep the hint
  -updated. An appropriate place to discuss problems is the blfs-support mailing
  -list.
  +updated.
   
  
  
  
  1.4       +85 -65    hints/openoffice.txt
  
  Index: openoffice.txt
  ===================================================================
  RCS file: /home/cvsroot/hints/openoffice.txt,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- openoffice.txt	23 Jun 2002 14:27:00 -0000	1.3
  +++ openoffice.txt	16 Sep 2002 13:08:08 -0000	1.4
  @@ -9,7 +9,25 @@
   
   HINT:
   
  +The primary location for this site is <http://tushar.lfsforum.org>, thanks to
  +Deutsche LFS Foren. The latest version of the hint and any relevant patches are
  +available at that site. Please refer to the primary location before submitting
  +bug-reports/enhancements to this hint.
  +
  +You may freely copy this document or create derivate works or distribute the
  +document in any format. At your discretion, you may give credit to the original
  +author:)
  +
  +Use the hint at your own risk. Neither the author, nor the Linux From Scratch
  +project accepts any reponsibility for anything that happens when using these
  +documents or associated files.
  +
  +An appropriate place to discuss this hint is blfs-support MailingList/NewsGroup
  +at LinuxFromScratch.Org.
  +
   Change Log:
  +[2002-09-11]
  +	* Upgraded to OpenOffice 1.0.1.
   [2002-06-20]
   	* Added optimization hint.
   [2002-06-19]
  @@ -23,40 +41,60 @@
   </WARNING>
   
   Pre-requisites (post LFS):
  +	* Freetype 2.1 <http://freshmeat.net/projects/freetype/>
   	* XFree86 4.2.0 <http://freshmeat.net/projects/xfree86/>
   	* Sun JDK 1.4 <http://freshmeat.net/projects/sunjdk/>
   	* InfoZip Zip and Unzip <http://freshmeat.net/projects/zip/>
   	* InfoZip Unzip <http://freshmeat.net/projects/unzip/>
  -	* Turbo C Shell <http://freshmeat.net/projects/tcsh/>
  +	* Tenex C Shell <http://freshmeat.net/projects/tcsh/>
   	* Linux PAM <http://freshmeat.net/projects/linux-pam/>
   Notes:
  -Previous version of X will probably work though I have not tested them. You will
  -need JDK 1.4 since the patch I provided checks for that version. If you are
  -using another JDK version, you can install JDK 1.4 to an alternate location and
  -point JAVA_HOME to this location. You don't need to install PAM unless you are
  -already using it. You just need the PAM headers in /usr/include/security. You
  -can either download PAM and do a "./configure --prefix=/tmp
  ---includedir=/usr/include && make install" or download the headers from
  -<http://linuxfromscratch.org/~timothy/misc/tush/>. If you have set the LS_COLORS
  -variable, do a export LS_COLORS="" to prevent tcsh from reading bash syntax for
  -LS_COLORS.
  +* The patches are for gcc-3.2 system and may work for future versions. If you
  +  using a previous version, correct the configure.in patch before applying.
  +* Previous version of X will probably work though I have not tested them.
  +* JDK 1.3 may work, no guarantees.
  +* You don't need to install PAM You just need the PAM headers in
  +  /usr/include/security. You can either download PAM and do a "./configure
  +  --prefix=/tmp --includedir=/usr/include && make install" or download the
  +  headers from <http://linuxfromscratch.org/~timothy/misc/tush/>.
  +* If you have set the LS_COLORS variable, do a export LS_COLORS="" to prevent
  +  tcsh from reading bash syntax for LS_COLORS.
   
   Packages to download:
  +	* Berkeley DB 4.0.14 <http://freshmeat.net/projects/berkeleydb/>
  +	* STLport 4.5.3 <http://freshmeat.net/projects/stlport/>
   	* OpenOffice.Org:) <http://freshmeat.net/projects/openoffice/>
   	* General Polygon Clipper <http://freshmeat.net/projects/gpclib/>
  -	* Patch for OOo <http://linuxfromscratch.org/~timothy/misc/tush/>
  +
   Notes:
  -The patch is a mega patch consisting of fixes primarily from Debian. The patch
  -also includes fixes I had to make to prevent some compilation errors. The
  -highlights of the fixes are:
  -* Recognize gcc-3.1 and fix compilation errors.
  -* Recognize jdk-1.4 and fix compilation errors.
  -* Add a clean target to make.
  -Thanks are due to Debian and Gentoo developers for providing hints and patches.
  -
  -Alternate site:
  -This hint is also available at <http://www.geocities.com/tush/lfs>. The latest
  -version of the hint is available there.
  +Thanks are due to Debian and Redhat developers for providing hints and patches.
  +
  +
  +The OOo source comes with some of the packages I have mentioned above, but the
  +versions are slightly old and may have problems with gcc-3.2. Hence I decided to
  +use system installed versions wherever possible.
  +
  +
  +Compiling Berkeley DB:
  +
  +Install Berkeley DB using the following commands.
  +
  +	cd build_unix
  +	../dist/configure --prefix=/usr --enable-compat185 --enable-cxx --enable-java
  +	make
  +	make docdir=/usr/share/doc/db install
  +
  +Compiling STLport:
  +
  +The patches for STLport are available at the primary site for this hint.
  +	PATH_HOLD=$PATH
  +	export PATH=$PWD/stlport:$PATH
  +	cd src
  +	sed -e "s:\-O2:$CFLAGS:" gcc-linux.mak > Makefile
  +	make
  +	make INSTALLDIR=/usr install
  +	export PATH=$PATH_HOLD
  +
   
   
   Compiling OOo:
  @@ -64,14 +102,7 @@
   Untar both OOo and gpc and copy the gpc.c and gpc.h files from the gpc package
   to <$OOSRC/external/gpc>.
   
  -Apply the downloaded patch to fix many compilation problems.
  -
  -We will now copy some system libraries to the location in the source tree where
  -OOo expects it to be.
  -	mkdir -p $OOSRC/solver/641/unxlngi4.pro/lib &&
  -	cd $OOSRC/solver/641/unxlngi4.pro/lib/ &&
  -	cp -f /usr/lib/libstdc++.so.4* . &&
  -	cp -f /lib/libgcc_s.so* .
  +Apply the patches that you have downloaded.
   
   If you need to set optimization flags, set the CFLAGS variable and do the
   following to incorporate those into the configuration files. My setting for
  @@ -85,54 +116,43 @@
   	cp unxlngi4.mk unxlngi4.mk.orig &&
   	sed -e "s:^CFLAGSOPT=.*:CFLAGSOPT=${CFLAGS}:g" \
   		unxlngi4.mk.orig > unxlngi4.mk
  -The above two files contain the flags CFLAGSCC and CFLAGSCXX that set the
  --mcpu=pentiumpro option. If you are compiling for a non-pentium-pro, remove
  -these flags. Thanks to Gaspare Giuliano Bruno for pointing this out.
  -
  -Set the C and C++ compiler we will be using:
  -	export CC="gcc"
  -	export CXX="g++"
   
   Configure OOo with the options. This will generate LinuxIntelEnv.Set in $OOSRC
  -directory.
  +directory. We need to run autoconf since in the above patches we patch
  +configure.in but not configure.
   	cd $OOSRC/config_office/ &&
  +	autoconf &&
   	./configure --enable-gcc3 --with-jdk-home=${JAVA_HOME} \
  -		--with-lang=ENUS --with-x
  +		--with-lang=ENUS --with-x --with-stlport4-home=/usr
   I configured for US English, you can enable more languages or all languages by
   using --with-lang=ALL.
   
  -Edit $OOSRC/LinuxIntelEnv.Set file. There were some settings that were incorrect
  -for my setup, particularly the PATH variable. The path /usr/X11R6/bin was not
  -included, instead the older non-standard /usr/bin/X11 was included. This gave an
  -error during compilation since xmkmf was not found.
  +Verify that the $OOSRC/LinuxIntelEnv.Set file is correct.
   
   If when compiling gcc, you included java in the list of languages, then you will
   have a file /usr/include/jni.h which will give you problems since it appears
   first in the include path. So move the file to a different location and remember
  -to restore it back after compiling OOo.
  +to restore it back after compiling OOo. (To avoid this problem, I compile gcc
  +with --includedir=/usr/include/gcc)
  +
  +Now some workarounds to 'fix' the build process. If you do a "make clean"
  +remember to repeat the following steps again.
  +	cd $OOSRC
  +	mkdir -p solver/641/unxlngi4.pro/inc/
  +	touch solver/641/unxlngi4.pro/inc/minormkchanged.flg
  +	mkdir -p solver/641/unxlngi4.pro/lib/
  +	cp -f /usr/lib/libstdc++.so.5* /usr/lib/libgcc_s.so* solver/641/unxlngi4.pro/lib/
  +	chmod +x solenv/bin/zipdep.pl
   
   Now run the bootstrapping program which will build the pre-requisites such as
   dmake that are required for building OOo.
  -	cd $OOSRC &&
  -	./bootstrap
  +	tcsh -c "source LinuxIntelEnv.Set; ./bootstrap"
   This will run for sometime and build the required tools.
   
  -When I tried running make after this, I got some errors because some files were
  -already patched when bootstrapping and make tried to patch them again. Hence do
  -the following before proceeding. This also has the advantage that it removes the
  -build files that are no longer required.
  -	cd $OOSRC/solver/641 &&
  -	mv unxlngi4.pro unxlngi4.PRO &&
  -	cd $OOSRC &&
  -	tcsh -c "source LinuxIntelEnv.Set; dmake clean" &&
  -	cd $OOSRC/solver/641 &&
  -	mv unxlngi4.PRO unxlngi4.pro
  -
   Now to compiling the package. Remember looks are deceiving:) Though a one liner,
   the following command does everything except for the kitchen sink:) It will
   build all the sub-projects of OOo and then copy them to the appropriate
   locations and then make suitable installation sets.
  -	cd $OOSRC &&
   	tcsh -c "source LinuxIntelEnv.Set; dmake"
   
   Once the package is built, now on to installation.
  @@ -144,12 +164,13 @@
   directory are all you need to keep.
   
   Edit the install script. I prefer making the following changes
  -	oo_home=openoffice
  -	oo_default_prefix=/opt
  +	cp install install.orig
  +	sed -e "s:oo_home=OpenOffice.org1.0:oo_home=openoffice:" install.orig > install
  +	chmod +x install
   
   Now install OOo. Note that though the script does not open any windows it needs
   permission to open the display. So set the DISPLAY variable accordingly.
  -	./install
  +	./install --prefix=/opt
   
   I prefer creating symbolic links to the programs from a standard location
   (/usr/X11R6/bin) rather than including the directory where the OOo programs
  @@ -157,7 +178,7 @@
   If you prefer to do that, do the following:
   	for appl in swriter scalc sdraw simpress smath soffice
   	do
  -	ln -s /opt/openoffice/program/$appl /usr/X11R6/bin/$appl
  +	ln -sf /opt/openoffice/program/$appl /usr/X11R6/bin/$appl
   	done 
   
   If you had moved /usr/include/jni.h, remember to restore it to its proper
  @@ -168,6 +189,5 @@
   will create the user directories that OOo can use.
   
   Don't forget to send me bug reports and enhancements so that I can keep the hint
  -updated. An appropriate place to discuss problems is the blfs-support mailing
  -list.
  +updated.
   
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe hints' in the subject header of the message



More information about the hints mailing list