Changeset 9f35d02


Ignore:
Timestamp:
12/05/2011 05:42:37 AM (12 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
da43460
Parents:
280dff9
Message:

Rewrote TeX Live installation procedures.
Added LIBS environmetn variable to nfs-utils configure.
Added tcpwrappers as an optional rpcbind dependency.
Added pkgconfig as a required libtirpc dependency.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9062 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • introduction/welcome/changelog.xml

    r280dff9 r9f35d02  
    4646      <itemizedlist>
    4747        <listitem>
     48          <para>[bdubbs] - Rewrote TeX Live procedures.</para>
     49        </listitem>
     50        <listitem>
    4851          <para>[wblaszcz] - Added libsndfile-1.0.23.</para>
    4952        </listitem>
  • networking/netlibs/libtirpc.xml

    r280dff9 r9f35d02  
    55  %general-entities;
    66
    7   <!ENTITY libtirpc-download-http "&sourceforge-repo2;projects/libtirpc/libtirpc-&libtirpc-version;.tar.bz2">
     7  <!ENTITY libtirpc-download-http "&sourceforge-repo;/project/libtirpc/libtirpc/&libtirpc-version;/libtirpc-&libtirpc-version;.tar.bz2">
    88  <!ENTITY libtirpc-download-ftp  " ">
    99  <!ENTITY libtirpc-md5sum        "74c41c15c2909f7d11d9c7bfa7db6273">
     
    7575    <bridgehead renderas="sect3">libtirpc Dependencies</bridgehead>
    7676
     77    <bridgehead renderas="sect4">Required</bridgehead>
     78    <para role="optional">
     79      <xref linkend="pkgconfig"/>
     80    </para>
     81   
    7782    <bridgehead renderas="sect4">Optional</bridgehead>
    7883    <para role="optional">
  • networking/netprogs/nfs-utils.xml

    r280dff9 r9f35d02  
    151151    the following commands:</para>
    152152
    153 <screen><userinput>./configure --prefix=/usr     \
    154             --sysconfdir=/etc \
    155             --disable-nfsv4   \
    156             --disable-nfsv41  \
    157             --disable-gss &amp;&amp;
     153<screen><userinput>LIBS=-lpthread ./configure --prefix=/usr     \
     154                           --sysconfdir=/etc \
     155                           --disable-nfsv4   \
     156                           --disable-nfsv41  \
     157                           --disable-gss &amp;&amp;
    158158make</userinput></screen>
    159159
  • networking/netprogs/rpcbind.xml

    r280dff9 r9f35d02  
    6565    </para>
    6666
     67    <bridgehead renderas="sect4">Optional</bridgehead>
     68    <para role="required">
     69      <xref linkend="tcpwrappers"/>
     70    </para>
     71
    6772    <para condition="html" role="usernotes">User Notes:
    6873    <ulink url="&blfs-wiki;/rpcbind"/></para>
     
    7782    <systemitem class="username">root</systemitem> user:</para>
    7883
    79 <screen><userinput>sed -i 's/^sunrpc/rpcbind' /etc/services</userinput></screen>
     84<screen><userinput>sed -i 's/^sunrpc/rpcbind/' /etc/services</userinput></screen>
    8085
    8186    <para>Install <application>rpcbind</application> by running the following
     
    108113<screen role="root"><userinput>make install-rpcbind</userinput></screen>
    109114
     115
     116      <note><para>If you build <application>rpcbind</application> with
     117      <xref linkend="tcpwrappers"/>, be sure to allow it in
     118      <filename>/etc/hosts.allow</filename>. For example:</para>
     119
     120<screen><userinput>rpcbind:  127.0.0.1</userinput></screen></note>
    110121
    111122    </sect3>
  • pst/typesetting/texlive.xml

    r280dff9 r9f35d02  
    55  %general-entities;
    66
     7  <!ENTITY texlive-installer           "http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz">
     8
    79  <!ENTITY texlive-source-download-http " ">
    810  <!ENTITY texlive-source-download-ftp  "ftp://tug.org/texlive/historic/2011/texlive-&texlive-version;-source.tar.xz">
     
    1517  <!ENTITY texlive-texmf-size           "1.2 GB">
    1618
    17   <!ENTITY texlive-buildsize            "~5 GB">
    18   <!ENTITY texlive-time                 "10 SBU">
     19  <!ENTITY texlive-buildsize            "5.4 GB">
     20  <!ENTITY texlive-time                 "9.7 SBU">
    1921]>
    2022
     
    3638    <title>Introduction to TeX Live</title>
    3739
    38     <para>The <application>TeX Live</application> package is the forked
    39     successor of the <application>teTeX</application> TeX document production
    40     system invented by Donald Knuth. Both packages have been maintained and
    41     supported through the <ulink url="http://www.tug.org/">TeX Users
    42     Group</ulink>, although <application>teTeX</application> has been
    43     unmaintained for several years now.</para>
    44 
     40    <para>The <application>TeX Live</application> package is a comprehensive
     41    TeX document production system.  It includes TEX, LaTeX2e, ConTEXt,
     42    Metafont, MetaPost, BibTeX and many other programs; an extensive collection
     43    of macros, fonts and documentation; and support for typesetting in many
     44    different scripts from around the world.</para>
     45   
    4546    <bridgehead renderas="sect3">Package Information</bridgehead>
    4647    <itemizedlist spacing="compact">
     
    6869    <itemizedlist spacing="compact">
    6970      <listitem>
    70         <para>Required TeX MetaFonts and additional components:
     71        <para>The TeX Live installer: <ulink url="&texlive-installer;"/></para>
     72      </listitem>
     73      <!--
     74      <listitem>
     75        <para>TeX MetaFonts and additional components:
    7176        <ulink url="&texlive-texmf-download-ftp;"/></para>
    7277      </listitem>
     
    7681      <listitem>
    7782        <para>Download size: &texlive-texmf-size;</para>
    78       </listitem>
     83      </listitem>-->
    7984    </itemizedlist>
    8085
    8186    <bridgehead renderas="sect3">TeX Live Dependencies</bridgehead>
    82 <!--
    83     <bridgehead renderas="sect4">Required</bridgehead>
    84     <para role="required"><xref linkend="xz-utils"/></para>
    85 -->
     87
    8688    <bridgehead renderas="sect4">Optional</bridgehead>
    8789    <para role="optional"><xref linkend="gs"/>,
    88     <xref linkend="poppler"/>,
    89     <xref linkend="freetype2"/>,
    90     <xref linkend="fontconfig"/>,
    91     <xref linkend="libpng"/>,
    92     <xref linkend="x-window-system"/>,
    93     <xref linkend="recode"/>,
    94     <xref linkend="icu"/>,
    95     <ulink url="http://www.libgd.org/Main_Page">GD</ulink>,
    96     <ulink url="http://www.sfr-fresh.com/linux/misc/t1lib">t1lib</ulink>,
    97     <ulink url="http://sourceforge.net/projects/zziplib/">ZZIPlib</ulink>,
    98     <ulink url="http://www.gnu.org/software/clisp/">CLISP</ulink>,
    99     <ulink url="http://www.lua.org/">Lua</ulink>,
    100     <ulink url="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=TECkitDownloads">TECkit</ulink>,
    101     and
    102     <ulink url="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;cat_id=RenderingGraphite">
     90      <xref linkend="poppler"/>,
     91      <xref linkend="freetype2"/>,
     92      <xref linkend="fontconfig"/>,
     93      <xref linkend="libpng"/>,
     94      <xref linkend="x-window-system"/>,
     95      <xref linkend="recode"/>,
     96      <xref linkend="icu"/>,
     97      <ulink url="http://www.libgd.org/Main_Page">GD</ulink>,
     98      <ulink url="http://www.sfr-fresh.com/linux/misc/t1lib">t1lib</ulink>,
     99      <ulink url="http://sourceforge.net/projects/zziplib/">ZZIPlib</ulink>,
     100      <ulink url="http://www.gnu.org/software/clisp/">CLISP</ulink>,
     101      <ulink url="http://www.lua.org/">Lua</ulink>,
     102      <ulink url="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=TECkitDownloads">TECkit</ulink>, and
     103      <ulink url="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;cat_id=RenderingGraphite">
    103104    Graphite</ulink></para>
    104105
     
    110111  <sect2 role="installation">
    111112    <title>Installation of TeX Live</title>
    112 <!--
    113     <para>Before building <application>TeX Live</application>, the macros and
    114     fonts package (<filename>texmf</filename> tarball) must be installed and
    115     two temporary symbolic links need to be created. Install the macros, fonts
    116     and symlinks using the following commands as the
    117     <systemitem class="username">root</systemitem> user:</para>
    118 
    119 <screen role="root"><userinput>tar -xf ../texlive-&texlive-version;-texmf.tar.xz -C /usr/share - -strip-components=1 &amp;&amp;
    120 
    121 ln -v -s share/texmf      /usr &amp;&amp;
    122 ln -v -s share/texmf-dist /usr</userinput></screen>
    123 -->
    124     <para>Install <application>TeX Live</application> by running the following
    125     commands:</para>
     113
     114    <para>The <application>TeX Live</application> set of programs with it's
     115    supporting documents, fonts, and utilities is very large.  The upstream
     116    maintainers recommend placing all files in a single directory structure.
     117    BLFS recommends <filename class='directory'>/opt/texlive</filename>.</para>
     118
     119    <para>First, unpack the installer and change into the installer's
     120    directory, <filename class='directory'>install-tl-20111204</filename>. 
     121    This directory name may change if the installer package is updated
     122    by the upstream maintainers.</para>
     123
     124<screen><userinput>tar -xf install-tl-unx.tar.gz &amp;&amp;
     125cd install-tl-20111204 </userinput></screen>
     126
     127    <note><para>The distribution binaries installed below use static linking
     128    for internal <application>TeX Live</application> libraries.  Additional
     129    libraries as specified in the dependencies section do not need to be
     130    present during the install, but the programs that need them will not run
     131    until their specific dependencies are installed.</para></note>
     132
     133    <para>Now, as the <systemitem class="username">root</systemitem>
     134    user:</para>
     135
     136<screen><userinput>TEXLIVE_INSTALL_PREFIX=/opt/texlive ./install-tl</userinput></screen>
     137
     138    <para>This command is interactive and allows selection or modification of
     139    platform, packages, directories, and other options.  The full installation
     140    scheme will require about 3 gigabytes of disk space.  The time to complete
     141    the download time will depend on your internet connection speed and the
     142    number of packages selected.</para>
     143
     144    <para>After the package download is complete, the next step is to make sure
     145    that the system can properly find the files.  If you set up your login
     146    scripts as recommended in <xref linkend='postlfs-config-profile'/>, update
     147    the needed paths by appending to the <filename>extrapaths.sh</filename> script.
     148    Be sure to adjust the paths below to reflect your actual installation
     149    location.  In addition, the path to the binaries will be affected by your
     150    system architecture.</para>
     151
     152<screen><userinput>cat &gt;&gt;> /etc/profile.d/extrapaths.sh &lt;&lt; "EOF"
     153pathappend /usr/share/man                   MANPATH
     154pathappend /opt/texlive/2011/texmf/doc/man  MANPATH
     155pathappend /usr/share/info                  INFOPATH
     156pathappend /opt/texlive/2011/texmf/doc/info INFOPATH
     157pathappend /opt/texlive/2011/bin/x86_64-linux
     158EOF</userinput></screen>
     159
     160    <note><para>The standard MANPATH and INFOPATH path are specified above to
     161    ensure they are included.  If they are already set in the boot script
     162    procedure, the pathappend function will ensure duplicates are
     163    removed, so including them here will do no harm.</para></note>
     164
     165    <para>The new paths can be immediately activated by running <command>source
     166    /etc/profile</command>.</para>
     167
     168    <para>At this point the installation is complete.  If building from
     169    source is desired, extract the source package as usual and continue.</para>
    126170
    127171    <note>
     
    135179<screen><userinput>./configure --prefix=/usr                  \
    136180            --disable-native-texlive-build \
    137             --enable-shared                \
    138181            --without-luatex               \
    139182            --enable-mktextex-default      \
     
    143186    <para>To test the results, issue: <command>make check</command>.</para>
    144187
    145     <para>The <userinput>make install</userinput> instructions does not
    146     honor the traditional installation directory options of
    147     <command>configure</command>.  It also can overwrite /usr/bin/man.  To
    148     overcome this problem, install the program to a temporary location and do some
    149     clean up:</para>
    150 
    151 <screen><userinput>
    152 make DESTDIR=$PWD/livetex-tmp install &amp;&amp;
    153 rm -v $PWD/livetex-tmp/usr/bin/man    &amp;&amp;
    154 for FN in $PWD/livetex-tmp/usr/bin `find  -type l`; do
    155     if [ `readlink $FN | grep "\.\./texmf"` ]; then
    156         ln -svf `readlink $FN | sed 's|\.\./texmf|../share/texmf|'` $FN
    157     fi
    158 done &amp;&amp;
    159 unset FN</userinput></screen>
    160 
    161     <para>Now, as the <systemitem class="username">root</systemitem> user,
    162     put the files in their permanent location:</para>
    163 
    164 <screen><userinput>
    165 cp -dRv livetex-tmp//usr/include/* /usr/include          &amp;&amp;
    166 cp -dRv livetex-tmp/usr/lib/*      /usr/lib              &amp;&amp;
    167 cp -dRv livetex-tmp/usr/bin/*      /usr/bin              &amp;&amp;
    168 cp -dRv livetex-tmp/usr/doc/man/*  /usr/share/man        &amp;&amp;
    169 
    170 tar -xf ../texlive-20110705-texmf.tar.xz -C /usr/share \
    171     --strip-components=1                                 &amp;&amp;
    172 
    173 cp -dRv livetex-tmp/usr/texmf      /usr/share/texmf      &amp;&amp;
    174 cp -dRv livetex-tmp/usr/texmf-dist /usr/share/texmf-dist &amp;&amp;
    175 
    176 for INFO in livetex-tmp/usr/texmf/doc/info/*.info; do
    177   install -v -m0644 $INFO /usr/share/info
    178   intall-info --info-dir=/usr/share/info $INFO
    179 done       &amp;&amp;
    180 unset INFO &amp;&amp;
    181 
    182 DOCDIR="/usr/share/doc/texlive-&texlive-version;" &amp;&amp;
    183 install -v -m755  -d $DOCDIR             &amp;&amp;
    184 
    185 for DOC in `find -name doc`; do
    186   DIR=`echo $DOC | cut -d/ -f2-`
    187   install -v -m755  -d $DOCDIR/$DIR
    188   cp -dRv $DOC/* $DOCDIR/$DIR
    189 done          &amp;&amp;
    190 unset DOC DIR &amp;&amp;
    191 
    192 install -v -m1777 -d /var/lib/livetex/fonts                     &amp;&amp;
    193 install -v -m755  -d /usr/share/texmf-{config,var,local}        &amp;&amp;
    194 
    195 ln  -s  -v           ../../texmf/doc \
    196                      /usr/share/doc/texlive-&texlive-version;/texmf      &amp;&amp;
    197 
    198 ln  -s  -v           ../../texmf-dist/doc \
    199                      /usr/share/doc/texlive-&texlive-version;/texmf-dist</userinput></screen>
    200   </sect2>
    201 
    202   <sect2 role="commands">
    203     <title>Command Explanations</title>
    204 
    205     <para><command>sed -i -e '...' -e '...' texk/kpathsea/texmf.cnf</command>:
    206     This command is used to modify the default so that local items are
    207     installed in <filename class="directory">/usr/share/texmf-local</filename>
    208     instead of <filename class="directory">/usr/texmf-local</filename>. It also
    209     changes the path for user-installed fonts to the run-time variable location
    210     <filename class="directory">/var/lib/livetex/fonts</filename>.</para>
    211 
    212     <para><parameter>--disable-native-texlive-build</parameter>: This parameter
    213     is required if the build is not for a binary distribution.</para>
    214 
    215     <para><parameter>--without-luatex</parameter>: This parameter is required
    216     if the <application>Lua</application> programming language is not
    217     installed. Remove this parameter if <application>Lua</application> is
    218     installed.</para>
    219 
    220     <para><parameter>--enable-mktextex-default</parameter>: This parameter
    221     is used so that TeX will automatically invoke mktextex if TeX source is
    222     missing.</para>
    223 
    224     <para><parameter>--with-banner-add=" - BLFS"</parameter>: This parameter
    225     is used so that the build can be easily recognized as a non-TUG binary
    226     build.</para>
    227 
    228     <para><option>--with-system-...</option> &amp;
    229     <option>--with-libgs-includes=/usr/include/ghostscript</option>: These
    230     options are required to use any system-installed libraries. Run
    231     <command>./configure --help</command> to see a full list of available
    232     options.</para>
    233 
    234     <para><command>for FN in `...`; do ...; done</command>This command is
    235     used to change the installed symbolic links to point to scripts installed
    236     in <filename class="directory">/usr/share/texmf</filename> instead of
    237     <filename class="directory">/usr/texmf</filename>.</para>
    238 
    239   </sect2>
    240 
    241   <sect2 role="configuration">
    242     <title>Configuring TeX Live</title>
    243 
    244     <sect3 id="texlive-config">
    245       <title>Config Files</title>
    246       <para>Several <filename class="extension">.cnf</filename> files are used
    247       in a complete TeX system. Typically these files are not directly modified
    248       (unless you know your way around a TeX system very well), but instead
    249       TeX programs are used to make the modifications.</para>
    250 
    251     </sect3>
    252 
    253     <sect3><title>Configuration Information</title>
    254 
    255       <para>Issue the following commands as the
    256       <systemitem class="username">root</systemitem> user to configure and
    257       finalize the TeX installation:</para>
    258 
    259 <screen role="root"><userinput>mktexlsr /usr/share/texmf        \
    260          /usr/share/texmf-config \
    261          /usr/share/texmf-dist   \
    262          /usr/share/texmf-var    \
    263          /usr/share/texmf-local  \
    264          /var/lib/livetex/fonts  &amp;&amp;
    265 
    266 texconfig-sys font rw            &amp;&amp;
    267 texconfig-sys paper letter       &amp;&amp;
    268 fmtutil-sys --all                &amp;&amp;
    269 updmap-sys                       &amp;&amp;
    270 
    271 mktexlsr /usr/share/texmf        \
    272          /usr/share/texmf-config \
    273          /usr/share/texmf-dist   \
    274          /usr/share/texmf-var    \
    275          /usr/share/texmf-local  \
    276          /var/lib/livetex/fonts  &amp;&amp;
    277 
    278 texlinks                         &amp;&amp;
    279 
    280 mktexlsr /usr/share/texmf        \
    281          /usr/share/texmf-config \
    282          /usr/share/texmf-dist   \
    283          /usr/share/texmf-var    \
    284          /usr/share/texmf-local  \
    285          /var/lib/livetex/fonts</userinput></screen>
    286 
    287     </sect3>
     188    <para>In order to gather the built files in one place, use
     189    <userinput>make install</userinput> to put then in a temproary location:</para>
     190
     191<screen><userinput>make DESTDIR=$PWD/livetex-tmp install</userinput></screen>
     192
     193    <para>Now copy the executables to the <application>TeX Live</application>
     194    binary directory.  Be sure to adjust the destination directory for your
     195    installation.  As the  <systemitem class="username">root</systemitem>
     196    user:</para>
     197
     198<screen><userinput>find livetex-tmp/usr/bin -type f -exec cp -v {} /opt/texlive/2011/bin/x86_64-linux \;</userinput></screen>
     199
     200    <note><para>If you passed the option <option>--enable-shared</option> to the
     201    configure command, the two libraries, ibkpathsea.so, libptexenc.so and their
     202    symbolic links will also need to be copied to /usr/lib.</para></note>
    288203
    289204  </sect2>
     
    299214      <seglistitem>
    300215        <seg>Over 300 binaries and symlinks to scripts</seg>
    301         <seg>libkpathsea.{so,a} and libptexenc.{so,a}</seg>
    302         <seg>/usr/include/kpathsea,
    303         /usr/include/ptexenc,
    304         /usr/share/doc/texlive-&texlive-version;,
    305         /usr/share/texmf-config,
    306         /usr/share/texmf-dist,
    307         /usr/share/texmf-local,
    308         /usr/share/texmf-var,
    309         /use/share/texmf, and
    310         /var/lib/livetex</seg>
     216        <seg>None</seg>
     217        <seg>/opt/texlive</seg>
    311218      </seglistitem>
    312219    </segmentedlist>
     
    318225
    319226      <varlistentry id="texlive-programs">
    320         <term><command>TeX programs</command></term>
     227        <term><command>TeX&nbsp;programs</command></term>
    321228        <listitem>
    322229          <para>included in the <application>TeX Live</application> package are
    323230          too numerous to individually list. Please refer to the individual
    324           program man pages and
    325           <ulink url="file:///usr/share/texmf/doc/texlive/index.html"/> for
    326           details, as well as a tour of the expansive
    327           <application>TeX Live</application> documentation.</para>
     231          program man and html pages in the installation directory's 2011/index.html
     232          directory.</para>
    328233          <indexterm zone="texlive texlive-programs">
    329234            <primary sortas="b-texlive-programs">TeX Live programs</primary>
     
    331236        </listitem>
    332237      </varlistentry>
    333 
     238<!--
    334239      <varlistentry id="libkpathseaTL">
    335240        <term><filename class='libraryfile'>libkpathsea.{so,a}</filename></term>
     
    342247        </listitem>
    343248      </varlistentry>
    344 
     249-->
    345250    </variablelist>
    346251
Note: See TracChangeset for help on using the changeset viewer.