Changeset 23102484
- Timestamp:
- 01/17/2006 08:46:21 PM (18 years ago)
- Children:
- f658b21
- Parents:
- 5aa74f2
- Location:
- chapter05
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/adjusting.xml
r5aa74f2 r23102484 9 9 <?dbhtml filename="adjusting.html"?> 10 10 11 <title>A justar las herramientas</title>11 <title>Adjusting the Toolchain</title> 12 12 13 <para> Ahora que se han instalado las librerías de C temporales, todas las14 herramientas que compilemos en el resto de este capítulo deberían enlazarse15 contra ellas. Para conseguirlo, deben ajustarse el enlazador y el fichero16 specs del compilador.</para>13 <para>Now that the temporary C libraries have been installed, all 14 tools compiled in the rest of this chapter should be linked against 15 these libraries. In order to accomplish this, the linker and the 16 compiler's specs file need to be adjusted.</para> 17 17 18 <para> El enlazador, que se ajustó al final del primer paso deBinutils,19 se instala ejecutando el siguiente comando desde el directorio20 <filename class="directory">binutils-build</filename> :</para>18 <para>The linker, adjusted at the end of the first pass of Binutils, 19 is installed by running the following command from within the 20 <filename class="directory">binutils-build</filename> directory:</para> 21 21 22 22 <screen><userinput>make -C ld install</userinput></screen> 23 23 24 <para> Desde ahora todo se enlazará solamente contra las librerías que hay en25 <filename class="directory">/tools/lib</filename>.</para>24 <para>From this point onwards, everything will link only against the 25 libraries in <filename class="directory">/tools/lib</filename>.</para> 26 26 27 27 <note> 28 <para> Si por alguna razón olvidaste el aviso sobre conservar los directorios29 de las fuentes y de construcción del primer paso de Binutils, ignora el30 com ando anterior. El resultado es la pequeña pega de que los siguientes31 program as de pruebas se enlazarán contra las librerías del anfitrión. Esto32 no es lo ideal, pero no es un gran problema. La situación se corregirá33 cuando instalemos un poco más adelante la segunda fase de Binutils.</para>28 <para>If the earlier warning to retain the Binutils source and 29 build directories from the first pass was missed, ignore the above 30 command. This results in a small chance that the subsequent testing 31 programs will link against libraries on the host. This is not ideal, 32 but it is not a major problem. The situation is corrected when the 33 second pass of Binutils is installed later.</para> 34 34 </note> 35 35 36 <para> Ahora que se ha instalado el enlazador ajustado, debes eliminar los37 directori os de las fuentes y de construcción de Binutils.</para>36 <para>Now that the adjusted linker is installed, the Binutils build and source 37 directories should be removed.</para> 38 38 39 <para> Lo siguiente esapuntar GCC al nuevo enlazador dinámico. Esto se hace40 volcando el fichero <quote>specs</quote>de GCC a un lugar en el que GCC lo41 b usque por defecto. Entonces una simple sustitución <command>sed</command>42 altera el enlazdor inámic que GCC usará:</para>39 <para>The next task is to point GCC to the new dynamic linker. This is done by 40 dumping GCC's <quote>specs</quote> file to a location where GCC will look for it 41 by default. A simple <command>sed</command> substitution then alters the 42 dynamic linker that GCC will use:</para> 43 43 44 <!-- Ampersands are needed to allow c utand paste -->44 <!-- Ampersands are needed to allow copy and paste --> 45 45 <screen><userinput>SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs && 46 46 gcc -dumpspecs > $SPECFILE && … … 49 49 unset SPECFILE</userinput></screen> 50 50 51 <para> <phrase condition="html">Recomendamos que copies y pegues lo anterior52 para asegurar que no hay errores.</phrase> Alternativamente, puedes editar el53 fichero specs a mano si quieres. Esto se hace reemplazando cada aparición de54 <quote>/ lib/ld-linux.so.2</quote> con <quote>/tools/lib/ld-linux.so.2</quote>.</para>51 <para>It is recommended that the above command be copy-and-pasted in order to 52 ensure accuracy. Alternatively, the specs file can be edited by hand. This is 53 done by replacing every occurrence of <quote>/lib/ld-linux.so.2</quote> with 54 <quote>/tools/lib/ld-linux.so.2</quote></para> 55 55 56 <para> Asegúrate de revisar visualmente el fichero specs para57 verificar que se han hecho los cambios deseados.</para>56 <para>Be sure to visually inspect the specs file in order to verify the 57 intended changes have been made.</para> 58 58 59 59 <important> 60 <para> Si estás trabajando sobre una plataforma en la que el nombre del61 enlazador dinámico no es<filename class="libraryfile">ld-linux.so.2</filename>,62 en el anterior comando debes sustituir <filename>ld-linux.so.2</filename> con63 el nombre del enlazador dinámico de tu plataforma. En caso necesario consulta64 l a <xref linkend="ch-tools-toolchaintechnotes"/>.</para>60 <para>If working on a platform where the name of the dynamic linker is 61 something other than <filename class="libraryfile">ld-linux.so.2</filename>, 62 replace <quote>ld-linux.so.2</quote> with the name of the platform's 63 dynamic linker in the above commands. Refer back to <xref 64 linkend="ch-tools-toolchaintechnotes" role=","/> if necessary.</para> 65 65 </important> 66 66 67 <para>Dur ante el proceso de construcción, GCC ejecuta un guión68 (<command>fixincludes</command>) que explora el sistema buscando ficheros de69 cabecera que puedan necesitar ser corregidos (que pueden contener errores de70 sintaxis, por ejemplo), e instala las versiones corregidas en un directorio71 p rivado. Existe la posibilidad de que, como resultado de este proceso, algunos72 ficheros de cabecera del sistema anfitrión se hayan colado dentro de dicho73 directorio privado de cabeceras de GCC. Como el resto de este capítulo sólo74 necesita las cabeceras de GCC y Glibc, que ya han sido instaladas, cualquier75 cabecera <quote>fijada</quote> puede borrarse sin problemas. Esto ayuda a76 evitar que cualquier cabecera del anfitrión contamine el entorno de77 construcción. Ejecuta los siguientes comandos para eliminr dichos ficheros de78 c abecera (puede que encuentres más facil copiar y pegar estos comandos en vez79 de teclearlos, debido a su longitud):</para>67 <para>During the build process, GCC runs a script 68 (<command>fixincludes</command>) that scans the system for header files 69 that may need to be fixed (they might contain syntax errors, for example), 70 and installs the fixed versions in a private include directory. There is a 71 possibility that, as a result of this process, some header files from the 72 host system have found their way into GCC's private include directory. As 73 the rest of this chapter only requires the headers from GCC and Glibc, 74 which have both been installed at this point, any <quote>fixed</quote> 75 headers can safely be removed. This helps to avoid any host headers 76 polluting the build environment. Run the following commands to remove the 77 header files in GCC's private include directory (you may find it easier to 78 copy and paste these commands, rather than typing them by hand, due to 79 their length):</para> 80 80 81 81 <!-- && used to ease copy and pasting --> … … 86 86 87 87 <caution> 88 <para> En este punto es obligatorio parar y asegurarse de que las operaciones89 básicas (compilación y enlazado) de las nuevas herramientas funcionan como90 se espera. Para esto vamos a hacer una simple comprobación:</para>88 <para>At this point, it is imperative to stop and ensure that the basic 89 functions (compiling and linking) of the new toolchain are working as 90 expected. To perform a sanity check, run the following commands:</para> 91 91 92 92 <screen><userinput>echo 'main(){}' > dummy.c … … 94 94 readelf -l a.out | grep ': /tools'</userinput></screen> 95 95 96 <para> Si todo funciona correctamente, no debe haber errores y la salida del97 último comando debe ser:</para>96 <para>If everything is working correctly, there should be no errors, 97 and the output of the last command will be of the form:</para> 98 98 99 99 <screen><computeroutput>[Requesting program interpreter: 100 /tools/lib/ld-linux.so.2]101 102 [Intérprete de programa solicitado:103 100 /tools/lib/ld-linux.so.2]</computeroutput></screen> 104 101 105 <para> Confirma que<filename class="directory">/tools/lib</filename>106 ap arezca como el prefijo de tu enlazador dinámico.</para>102 <para>Note that <filename class="directory">/tools/lib</filename> 103 appears as the prefix of the dynamic linker.</para> 107 104 108 <para>Si no recibes una salida como la mostrada arriba, o no hay salida 109 alguna, algo está seriamente mal. Investiga y revisa tus pasos para 110 encontrar el problema y corregirlo. El problema debe resolverse antes de 111 continuar. Primero, repite la comprobación de sanidad usando 112 <command>gcc</command> en vez de <command>cc</command>. Si esto funciona 113 significa que falta el enlace simbólico <filename 114 class="symlink">/tools/bin/cc</filename>. Vuelve a la <xref 115 linkend="ch-tools-gcc-pass1"/> e instala el enlace simbólico. Seguidamente, 116 asegúrate de que tu <envar>PATH</envar> es correcto. Puedes comprobarlo 117 ejecutando <command>echo $PATH</command> y verificando que <filename 118 class="directory">/tools/bin</filename> está en cabeza de la lista. Si 119 el <envar>PATH</envar> está mal puede significar que no has ingresado 120 como usuario <systemitem class="username">lfs</systemitem> o que algo 121 salió mal en la <xref linkend="ch-tools-settingenviron"/>. Otra opción es 122 que algo pudo ir mal en el anterior arreglo del fichero specs. En este caso, 123 repite el arreglo del fichero<phrase condition="html"> asegurándote de 124 copiar y pegar los comandos como se recomendó</phrase>.</para> 105 <para>If the output is not shown as above or there was no output at all, 106 then something is wrong. Investigate and retrace the steps to find out 107 where the problem is and correct it. This issue must be resolved before 108 continuing on. First, perform the sanity check again, using 109 <command>gcc</command> instead of <command>cc</command>. If this works, 110 then the <filename class="symlink">/tools/bin/cc</filename> symlink is 111 missing. Revisit <xref linkend="ch-tools-gcc-pass1" role=","/> and install 112 the symlink. Next, ensure that the <envar>PATH</envar> is correct. This 113 can be checked by running <command>echo $PATH</command> and verifying that 114 <filename class="directory">/tools/bin</filename> is at the head of the 115 list. If the <envar>PATH</envar> is wrong it could mean that you are not 116 logged in as user <systemitem class="username">lfs</systemitem> or that 117 something went wrong back in <xref linkend="ch-tools-settingenviron" 118 role="."/> Another option is that something may have gone wrong with the 119 specs file amendment above. In this case, redo the specs file amendment, 120 being careful to copy-and-paste the commands.</para> 125 121 126 <para> Cuando todo esté bien, borra los ficheros de prueba:</para>122 <para>Once all is well, clean up the test files:</para> 127 123 128 124 <screen><userinput>rm -v dummy.c a.out</userinput></screen> 129 125 130 <para> La construcción de TCL en la siguiente sección servirá como comprobación131 adicional de que las herramientas se han construido correctamente. Si la132 construcción de TCL falla, esto es una indicación de que algo fué mal durante133 la instalación de Binutils, GCC o Glibc, pero no con el propio TCL.</para>126 <para>Building TCL in the next section will serve as an additional check that 127 the toolchain has been built properly. If TCL fails to build, it is an 128 indication that something has gone wrong with the Binutils, GCC, or Glibc 129 installation, but not with TCL itself.</para> 134 130 </caution> 135 131 -
chapter05/bash.xml
r5aa74f2 r23102484 13 13 <indexterm zone="ch-tools-bash"> 14 14 <primary sortas="a-Bash">Bash</primary> 15 <secondary> herramientas</secondary>15 <secondary>tools</secondary> 16 16 </indexterm> 17 17 … … 40 40 41 41 <sect2 role="installation"> 42 <title>Instal ación deBash</title>42 <title>Installation of Bash</title> 43 43 44 <para>Prepar a Bash para su compilación:</para>44 <para>Prepare Bash for compilation:</para> 45 45 46 46 <screen><userinput>./configure --prefix=/tools --without-bash-malloc</userinput></screen> 47 47 48 48 <variablelist> 49 <title> Significado de la opción de configure:</title>49 <title>The meaning of the configure options:</title> 50 50 51 51 <varlistentry> 52 52 <term><parameter>--without-bash-malloc</parameter></term> 53 53 <listitem> 54 <para>Esta opción desactiva el uso de la función de ubicación de memoria 55 (<function>malloc</function>) de Bash, que se sabe que provoca 56 violaciones de segmento. Al desactivar esta opción Bash utilizará la 57 función <function>malloc</function> de Glibc, que es más estable.</para> 54 <para>This options turns off the use of Bash's memory allocation 55 (<function>malloc</function>) function which is known to cause 56 segmentation faults. By turning this option off, Bash will use 57 the <function>malloc</function> functions from Glibc which are 58 more stable.</para> 58 59 </listitem> 59 60 </varlistentry> 61 60 62 </variablelist> 61 63 62 <para>Compil a el paquete:</para>64 <para>Compile the package:</para> 63 65 64 66 <screen><userinput>make</userinput></screen> 65 67 66 <para> Para comprobar los resultados, ejecuta:68 <para>To test the results, issue: 67 69 <userinput>make tests</userinput>.</para> 68 70 69 <para>Instal a el paquete:</para>71 <para>Install the package:</para> 70 72 71 73 <screen><userinput>make install</userinput></screen> 72 74 73 <para> Crea un enlace para los programas que usan <command>sh</command>74 como intérprete de comandos:</para>75 <para>Make a link for the programs that use <command>sh</command> for 76 a shell:</para> 75 77 76 78 <screen><userinput>ln -vs bash /tools/bin/sh</userinput></screen> … … 81 83 <title/> 82 84 83 <para> Los detalles sobre este paquete se encuentran en la <xref84 linkend="contents-bash"/>.</para>85 <para>Details on this package are located in 86 <xref linkend="contents-bash" role="."/></para> 85 87 86 88 </sect2> -
chapter05/binutils-pass1.xml
r5aa74f2 r23102484 9 9 <?dbhtml filename="binutils-pass1.html"?> 10 10 11 <title>Binutils-&binutils-version; - Fase1</title>11 <title>Binutils-&binutils-version; - Pass 1</title> 12 12 13 13 <indexterm zone="ch-tools-binutils-pass1"> 14 14 <primary sortas="a-Binutils">Binutils</primary> 15 <secondary> herramientas, fase1</secondary>15 <secondary>tools, pass 1</secondary> 16 16 </indexterm> 17 17 … … 40 40 41 41 <sect2 role="installation"> 42 <title>Instal ación deBinutils</title>42 <title>Installation of Binutils</title> 43 43 44 <para>Es importante que Binutils sea el primer paquete que compiles, pues 45 tanto Glibc como GCC llevan a cabo varias comprobaciones sobre el enlazador y 46 el ensamblador disponibles para determinar qué características activar.</para> 44 <para>It is important that Binutils be the first package compiled 45 because both Glibc and GCC perform various tests on the available 46 linker and assembler to determine which of their own features to 47 enable.</para> 47 48 48 <para> La documentación de Binutils recomienda construirlo en un directorio49 dedicado, fuera del árbol de las fuentes:</para>49 <para>The Binutils documentation recommends building Binutils outside of the 50 source directory in a dedicated build directory:</para> 50 51 51 52 <screen><userinput>mkdir -v ../binutils-build … … 53 54 54 55 <note> 55 <para> Si quieres que los valores de los SBUs mostrados en el resto del56 libro sean de utilidad, mide el tiempo que se tarda en construir este57 paquete desde la compilación hasta la primera instalación. Para ello,58 envuelve los comandos dentro de un comando <command>time</command> de59 esta forma: <userinput>time { ./configure ... && make &&60 make install; }</userinput>.</para>56 <para>In order for the SBU values listed in the rest of the book 57 to be of any use, measure the time it takes to build this package from 58 the configuration, up to and including the first install. To achieve 59 this easily, wrap the three commands in a <command>time</command> 60 command like this: <userinput>time { ./configure ... && make 61 && make install; }</userinput>.</para> 61 62 </note> 62 63 63 <para> Prepara Binutils para su compilación:</para>64 <para>Now prepare Binutils for compilation:</para> 64 65 65 66 <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools --disable-nls</userinput></screen> 66 67 67 68 <variablelist> 68 <title> Significado de las opciones de configure:</title>69 <title>The meaning of the configure options:</title> 69 70 70 71 <varlistentry> 71 72 <term><parameter>--prefix=/tools</parameter></term> 72 73 <listitem> 73 <para> Esto le indica al guión configure que los programas de74 Binutils se instalarán en el directorio <filename75 class="directory">/tools</filename>.</para>74 <para>This tells the configure script to prepare to install the 75 Binutils programs in the <filename class="directory">/tools</filename> 76 directory.</para> 76 77 </listitem> 77 78 </varlistentry> … … 80 81 <term><parameter>--disable-nls</parameter></term> 81 82 <listitem> 82 <para> Esta opción desactiva la internacionalización, pues i18n no es83 necesario en las herramientas temporales.</para>83 <para>This disables internationalization as i18n is not needed for the 84 temporary tools.</para> 84 85 </listitem> 85 86 </varlistentry> … … 87 88 </variablelist> 88 89 89 <para>Co mpila el paquete:</para>90 <para>Continue with compiling the package:</para> 90 91 91 92 <screen><userinput>make</userinput></screen> 92 93 93 <para>La compilación se ha completado. Normalmente deberíamos ejecutar 94 ahora el banco de pruebas, pero en esta temprana fase el entorno de 95 trabajo para los bancos de pruebas (Tcl, Expect y DejaGnu) todavía no 96 está en su sitio. Los beneficios de ejecutar las pruebas ahora son mínimos, 97 pues los programas de esta primera fase pronto serán sustituidos por los 98 de la segunda.</para> 94 <para>Compilation is now complete. Ordinarily we would now run the 95 test suite, but at this early stage the test suite framework (Tcl, 96 Expect, and DejaGNU) is not yet in place. The benefits of running the 97 tests at this point are minimal since the programs from this 98 first pass will soon be replaced by those from the second.</para> 99 99 100 <para>Instal a el paquete:</para>100 <para>Install the package:</para> 101 101 102 102 <screen><userinput>make install</userinput></screen> 103 103 104 <para> Prepara el enlazador para la posterior fase de105 <quote>ajuste</quote>:</para>104 <para>Next, prepare the linker for the <quote>Adjusting</quote> phase 105 later on:</para> 106 106 107 107 <screen><userinput>make -C ld clean … … 109 109 110 110 <variablelist> 111 <title> Significado de los parámetros de make:</title>111 <title>The meaning of the make parameters:</title> 112 112 113 113 <varlistentry> 114 114 <term><parameter>-C ld clean</parameter></term> 115 115 <listitem> 116 <para> Esto le indica al programa make que elimine todos los ficheros117 compilados que haya en el subdirectorio118 <filename class="directory">ld</filename>.</para>116 <para>This tells the make program to remove all compiled 117 files in the <filename class="directory">ld</filename> 118 subdirectory.</para> 119 119 </listitem> 120 120 </varlistentry> … … 123 123 <term><parameter>-C ld LIB_PATH=/tools/lib</parameter></term> 124 124 <listitem> 125 <para> Esta opción vuelve a construir todo dentro del subdirectorio126 <filename class="directory">ld</filename>. Especificar la variable127 <envar>LIB_PATH</envar> del Makefile en la línea de comandos nos128 permite obviar su valor por defecto y apuntar a nuestro directorio129 de herramientas temporales. El valor de esta variable especifica130 la ruta de búsqueda de librerías por defecto del enlazador. Estos131 preparativos se utilizan más tarde en este capítulo.</para>125 <para>This option rebuilds everything in the <filename 126 class="directory">ld</filename> subdirectory. Specifying the 127 <envar>LIB_PATH</envar> Makefile variable on the command line 128 allows us to override the default value and point it to the 129 temporary tools location. The value of this variable specifies 130 the linker's default library search path. This preparation is 131 used later in the chapter.</para> 132 132 </listitem> 133 133 </varlistentry> … … 136 136 137 137 <warning> 138 <para><emphasis> No borres</emphasis> los directorios de fuentes y de139 construcción de Binutils. Los necesitarás un poco más adelante en este140 capítulo en el estado en que se encuentran ahora.</para>138 <para><emphasis>Do not</emphasis> remove the Binutils build and source 139 directories yet. These will be needed again in their current state later 140 in this chapter.</para> 141 141 </warning> 142 142 … … 146 146 <title/> 147 147 148 <para> Los detalles sobre este paquete se encuentran en la149 <xref linkend="contents-binutils" />.</para>148 <para>Details on this package are located in 149 <xref linkend="contents-binutils" role="."/></para> 150 150 151 151 </sect2> -
chapter05/binutils-pass2.xml
r5aa74f2 r23102484 6 6 ]> 7 7 8 <sect1 id="ch-tools-binutils-pass2" >8 <sect1 id="ch-tools-binutils-pass2" role="wrap"> 9 9 <?dbhtml filename="binutils-pass2.html"?> 10 10 11 <title>Binutils-&binutils-version; - Fase2</title>11 <title>Binutils-&binutils-version; - Pass 2</title> 12 12 13 13 <indexterm zone="ch-tools-binutils-pass2"> 14 14 <primary sortas="a-Binutils">Binutils</primary> 15 <secondary> herramientas, fase2</secondary>15 <secondary>tools, pass 2</secondary> 16 16 </indexterm> 17 17 … … 40 40 41 41 <sect2 role="installation"> 42 <title>Re instalación deBinutils</title>42 <title>Re-installation of Binutils</title> 43 43 44 <para> Vuelve a crear un directorio dedicado para la construcción:</para>44 <para>Create a separate build directory again:</para> 45 45 46 46 <screen><userinput>mkdir -v ../binutils-build 47 47 cd ../binutils-build</userinput></screen> 48 48 49 <para>Prepar a Binutils para su compilación:</para>49 <para>Prepare Binutils for compilation:</para> 50 50 51 51 <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \ … … 53 53 54 54 <variablelist> 55 <title> Significado de la nueva opción de configure:</title>55 <title>The meaning of the new configure options:</title> 56 56 57 57 <varlistentry> 58 58 <term><parameter>--with-lib-path=/tools/lib</parameter></term> 59 59 <listitem> 60 <para>Esto le indica al guión configure que especifique la ruta 61 de búsqueda de librerías por defecto durante la compilación de 62 Binutils, resultando en que se le pase <filename 63 class="directory">/tools/lib</filename> al enlazador. Esto evita 64 que el enlazador busque en los directorios de librerías del 65 anfitrión.</para> 60 <para>This tells the configure script to specify the library 61 search path during the compilation of Binutils, resulting in 62 <filename class="directory">/tools/lib</filename> being passed 63 to the linker. This prevents the linker from searching through 64 library directories on the host.</para> 66 65 </listitem> 67 66 </varlistentry> … … 69 68 </variablelist> 70 69 71 <para>Compil a el paquete:</para>70 <para>Compile the package:</para> 72 71 73 72 <screen><userinput>make</userinput></screen> 74 73 75 <para> La compilación está completa. Como se explicó antes, no recomendamos76 ejecutar los bancos de pruebas de las herramientas temporales en este77 c apítulo. Si de todas formas deseas ejecutar el banco de pruebas de Binutils,78 hazlo con el siguiente comando:</para>74 <para>Compilation is now complete. As discussed earlier, running the 75 test suite is not mandatory for the temporary tools here in this 76 chapter. To run the Binutils test suite anyway, issue the following 77 command:</para> 79 78 80 79 <screen><userinput>make check</userinput></screen> 81 80 82 <para>Instal a el paquete:</para>81 <para>Install the package:</para> 83 82 84 83 <screen><userinput>make install</userinput></screen> 85 84 86 <para> Prepara el enlazador para la fase de <quote>Reajuste</quote> del87 próximo capítulo:</para>85 <para>Now prepare the linker for the <quote>Re-adjusting</quote> phase in 86 the next chapter:</para> 88 87 89 88 <screen><userinput>make -C ld clean … … 91 90 92 91 <warning> 93 <para><emphasis> No borres</emphasis> todavía los directorios de94 fuentes y de construcción de Binutils. Se necesitarán durante el95 siguiente capítulo en el estado en que se encuentran ahora.</para>92 <para><emphasis>Do not</emphasis> remove the Binutils source and build 93 directories yet. These directories will be needed again in the next 94 chapter in their current state.</para> 96 95 </warning> 97 96 … … 101 100 <title/> 102 101 103 <para> Los detalles sobre este paquete se encuentran en la104 <xref linkend="contents-binutils" />.</para>102 <para>Details on this package are located in 103 <xref linkend="contents-binutils" role="."/></para> 105 104 106 105 </sect2> -
chapter05/bison.xml
r5aa74f2 r23102484 13 13 <indexterm zone="ch-tools-bison"> 14 14 <primary sortas="a-Bison">Bison</primary> 15 <secondary> herramientas</secondary>15 <secondary>tools</secondary> 16 16 </indexterm> 17 17 … … 40 40 41 41 <sect2 role="installation"> 42 <title>Instal ación deBison</title>42 <title>Installation of Bison</title> 43 43 44 <para>Prepar a Bison para su compilación:</para>44 <para>Prepare Bison for compilation:</para> 45 45 46 46 <screen><userinput>./configure --prefix=/tools</userinput></screen> 47 47 48 <para>Compil a el paquete:</para>48 <para>Compile the package:</para> 49 49 50 50 <screen><userinput>make</userinput></screen> 51 51 52 <para> Para comprobar los resultados, ejecuta:52 <para>To test the results, issue: 53 53 <userinput>make check</userinput>.</para> 54 54 55 <para>Instal a el paquete:</para>55 <para>Install the package:</para> 56 56 57 57 <screen><userinput>make install</userinput></screen> … … 62 62 <title/> 63 63 64 <para> Los detalles sobre ste paquete se encuentran en la65 <xref linkend="contents-bison" />.</para>64 <para>Details on this package are located in 65 <xref linkend="contents-bison" role="."/></para> 66 66 67 67 </sect2> -
chapter05/bzip2.xml
r5aa74f2 r23102484 13 13 <indexterm zone="ch-tools-bzip2"> 14 14 <primary sortas="a-Bzip2">Bzip2</primary> 15 <secondary> herramientas</secondary>15 <secondary>tools</secondary> 16 16 </indexterm> 17 17 … … 40 40 41 41 <sect2 role="installation"> 42 <title>Instal ación deBzip2</title>42 <title>Installation of Bzip2</title> 43 43 44 <para> El paquete Bzip2 no tiene un guión <command>configure</command>.45 Compílalo y comprueba los resultados con:</para>44 <para>The Bzip2 package does not contain a <command>configure</command> 45 script. Compile and test it with:</para> 46 46 47 47 <screen><userinput>make</userinput></screen> 48 48 49 <para>Instal a el paquete:</para>49 <para>Install the package:</para> 50 50 51 51 <screen><userinput>make PREFIX=/tools install</userinput></screen> … … 56 56 <title/> 57 57 58 <para> Los detalles sobre este paquete se encuentran en la59 <xref linkend="contents-bzip2" />.</para>58 <para>Details on this package are located in 59 <xref linkend="contents-bzip2" role="."/></para> 60 60 61 61 </sect2> -
chapter05/coreutils.xml
r5aa74f2 r23102484 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-coreutils" role="wrap"> 7 <title>Coreutils-&coreutils-version;</title> 8 <?dbhtml filename="coreutils.html"?> 9 <?dbhtml filename="coreutils.html"?> 9 10 10 <indexterm zone="ch-tools-coreutils"> 11 <primary sortas="a-Coreutils">Coreutils</primary> 12 <secondary>tools</secondary></indexterm> 11 <title>Coreutils-&coreutils-version;</title> 13 12 14 <sect2 role="package"><title/> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/coreutils.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 13 <indexterm zone="ch-tools-coreutils"> 14 <primary sortas="a-Coreutils">Coreutils</primary> 15 <secondary>tools</secondary> 16 </indexterm> 16 17 17 <segmentedlist> 18 <segtitle>&buildtime;</segtitle> 19 <segtitle>&diskspace;</segtitle> 20 <seglistitem><seg>0.9 SBU</seg><seg>53.3 MB</seg></seglistitem> 21 </segmentedlist> 18 <sect2 role="package"> 19 <title/> 22 20 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/coreutils.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../chapter06/coreutils.xml" 23 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 24 24 25 </sect2> 25 <segmentedlist> 26 <segtitle>&buildtime;</segtitle> 27 <segtitle>&diskspace;</segtitle> 26 28 27 <sect2 role="installation"> 28 <title>Installation of Coreutils</title> 29 <seglistitem> 30 <seg>0.9 SBU</seg> 31 <seg>53.3 MB</seg> 32 </seglistitem> 33 </segmentedlist> 29 34 30 <para>Prepare Coreutils for compilation:</para> 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 36 href="../chapter06/coreutils.xml" 37 xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 38 39 </sect2> 40 41 <sect2 role="installation"> 42 <title>Installation of Coreutils</title> 43 44 <para>Prepare Coreutils for compilation:</para> 31 45 32 46 <screen><userinput>./configure --prefix=/tools</userinput></screen> 33 47 34 <para>Compile the package:</para>48 <para>Compile the package:</para> 35 49 36 50 <screen><userinput>make</userinput></screen> 37 51 38 <para>To test the results, issue: 39 <userinput>make RUN_EXPENSIVE_TESTS=yes check</userinput>.The40 <parameter>RUN_EXPENSIVE_TESTS=yes</parameter> parameter tells the41 test suite to run several additional tests that are considered42 relatively expensive (in terms of CPU power and memory usage) on some43 platforms, but generally are not a problem on Linux.</para>52 <para>To test the results, issue: 53 <userinput>make RUN_EXPENSIVE_TESTS=yes check</userinput>. The 54 <parameter>RUN_EXPENSIVE_TESTS=yes</parameter> parameter tells the 55 test suite to run several additional tests that are considered 56 relatively expensive (in terms of CPU power and memory usage) on some 57 platforms, but generally are not a problem on Linux.</para> 44 58 45 <para>Install the package:</para>59 <para>Install the package:</para> 46 60 47 61 <screen><userinput>make install</userinput></screen> 48 62 49 </sect2>63 </sect2> 50 64 51 <sect2 role="content"><title/> 52 <para>Details on this package are located in <xref 53 linkend="contents-coreutils" role="."/></para> 54 </sect2> 65 <sect2 role="content"> 66 <title/> 67 68 <para>Details on this package are located in 69 <xref linkend="contents-coreutils" role="."/></para> 70 71 </sect2> 55 72 56 73 </sect1> 57 -
chapter05/dejagnu.xml
r5aa74f2 r23102484 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-dejagnu" role="wrap"> 7 <title>DejaGNU-&dejagnu-version;</title> 8 <?dbhtml filename="dejagnu.html"?> 9 <?dbhtml filename="dejagnu.html"?> 9 10 10 <indexterm zone="ch-tools-dejagnu"><primary sortas="a-DejaGNU">DejaGNU</primary></indexterm>11 <title>DejaGNU-&dejagnu-version;</title> 11 12 12 <sect2 role="package"><title/> 13 <para>The DejaGNU package contains a framework for testing other programs.</para> 13 <indexterm zone="ch-tools-dejagnu"> 14 <primary sortas="a-DejaGNU">DejaGNU</primary> 15 </indexterm> 14 16 15 <segmentedlist> 16 <segtitle>&buildtime;</segtitle> 17 <segtitle>&diskspace;</segtitle> 18 <seglistitem><seg>0.1 SBU</seg><seg>6.1 MB</seg></seglistitem> 19 </segmentedlist> 17 <sect2 role="package"> 18 <title/> 20 19 21 <segmentedlist> 22 <segtitle>&dependencies;</segtitle> 23 <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, Expect, 24 GCC, Glibc, Grep, Make, Sed, and Tcl</seg></seglistitem> 25 </segmentedlist> 26 </sect2> 20 <para>The DejaGNU package contains a framework for testing other 21 programs.</para> 27 22 28 <sect2 role="installation"> 29 <title>Installation of DejaGNU</title> 23 <segmentedlist> 24 <segtitle>&buildtime;</segtitle> 25 <segtitle>&diskspace;</segtitle> 30 26 31 <para>Prepare DejaGNU for compilation:</para> 27 <seglistitem> 28 <seg>0.1 SBU</seg> 29 <seg>6.1 MB</seg> 30 </seglistitem> 31 </segmentedlist> 32 33 <segmentedlist> 34 <segtitle>&dependencies;</segtitle> 35 36 <seglistitem> 37 <seg>Bash, Binutils, Coreutils, Diffutils, Expect, GCC, Glibc, Grep, 38 Make, Sed, and Tcl</seg> 39 </seglistitem> 40 </segmentedlist> 41 42 </sect2> 43 44 <sect2 role="installation"> 45 <title>Installation of DejaGNU</title> 46 47 <para>Prepare DejaGNU for compilation:</para> 32 48 33 49 <screen><userinput>./configure --prefix=/tools</userinput></screen> 34 50 35 <para>Build and install the package:</para>51 <para>Build and install the package:</para> 36 52 37 53 <screen><userinput>make install</userinput></screen> 38 54 39 <para>To test the results, issue: <userinput>make check</userinput>.</para> 55 <para>To test the results, issue: 56 <userinput>make check</userinput>.</para> 40 57 41 </sect2>58 </sect2> 42 59 43 60 44 <sect2 id="contents-dejagnu" role="content"><title>Contents of DejaGNU</title> 61 <sect2 id="contents-dejagnu" role="content"> 62 <title>Contents of DejaGNU</title> 45 63 46 <segmentedlist> 47 <segtitle>Installed program</segtitle> 48 <seglistitem><seg>runtest</seg></seglistitem> 49 </segmentedlist> 64 <segmentedlist> 65 <segtitle>Installed program</segtitle> 50 66 51 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead> 52 <?dbfo list-presentation="list"?> 53 <?dbhtml list-presentation="table"?> 67 <seglistitem> 68 <seg>runtest</seg> 69 </seglistitem> 70 </segmentedlist> 54 71 55 <varlistentry id="runtest"> 56 <term><command>runtest</command></term> 57 <listitem> 58 <para>A wrapper script that locates the proper 59 <command>expect</command> shell and then runs DejaGNU</para> 60 <indexterm zone="ch-tools-dejagnu runtest"><primary sortas="b-runtest">runtest</primary></indexterm> 61 </listitem> 62 </varlistentry> 63 </variablelist> 72 <variablelist> 73 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 74 <?dbfo list-presentation="list"?> 75 <?dbhtml list-presentation="table"?> 64 76 65 </sect2> 77 <varlistentry id="runtest"> 78 <term><command>runtest</command></term> 79 <listitem> 80 <para>A wrapper script that locates the proper 81 <command>expect</command> shell and then runs DejaGNU</para> 82 <indexterm zone="ch-tools-dejagnu runtest"> 83 <primary sortas="b-runtest">runtest</primary> 84 </indexterm> 85 </listitem> 86 </varlistentry> 87 88 </variablelist> 89 90 </sect2> 66 91 67 92 </sect1> 68 -
chapter05/diffutils.xml
r5aa74f2 r23102484 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-diffutils" role="wrap"> 7 <title>Diffutils-&diffutils-version;</title> 8 <?dbhtml filename="diffutils.html"?> 9 <?dbhtml filename="diffutils.html"?> 9 10 10 <indexterm zone="ch-tools-diffutils"> 11 <primary sortas="a-Diffutils">Diffutils</primary> 12 <secondary>tools</secondary></indexterm> 11 <title>Diffutils-&diffutils-version;</title> 13 12 14 <sect2 role="package"><title/> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/diffutils.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 13 <indexterm zone="ch-tools-diffutils"> 14 <primary sortas="a-Diffutils">Diffutils</primary> 15 <secondary>tools</secondary> 16 </indexterm> 16 17 17 <segmentedlist> 18 <segtitle>&buildtime;</segtitle> 19 <segtitle>&diskspace;</segtitle> 20 <seglistitem><seg>0.1 SBU</seg><seg>5.6 MB</seg></seglistitem> 21 </segmentedlist> 18 <sect2 role="package"> 19 <title/> 22 20 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/diffutils.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../chapter06/diffutils.xml" 23 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 24 24 25 </sect2> 25 <segmentedlist> 26 <segtitle>&buildtime;</segtitle> 27 <segtitle>&diskspace;</segtitle> 26 28 27 <sect2 role="installation"> 28 <title>Installation of Diffutils</title> 29 <seglistitem> 30 <seg>0.1 SBU</seg> 31 <seg>5.6 MB</seg> 32 </seglistitem> 33 </segmentedlist> 29 34 30 <para>Prepare Diffutils for compilation:</para> 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 36 href="../chapter06/diffutils.xml" 37 xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 38 39 </sect2> 40 41 <sect2 role="installation"> 42 <title>Installation of Diffutils</title> 43 44 <para>Prepare Diffutils for compilation:</para> 31 45 32 46 <screen><userinput>./configure --prefix=/tools</userinput></screen> 33 47 34 <para>Compile the package:</para>48 <para>Compile the package:</para> 35 49 36 50 <screen><userinput>make</userinput></screen> 37 51 38 <para>This package does not come with a test suite.</para>52 <para>This package does not come with a test suite.</para> 39 53 40 <para>Install the package:</para>54 <para>Install the package:</para> 41 55 42 56 <screen><userinput>make install</userinput></screen> 43 57 44 </sect2>58 </sect2> 45 59 46 <sect2 role="content"><title/> 47 <para>Details on this package are located in <xref 48 linkend="contents-diffutils" role="."/></para> 49 </sect2> 60 <sect2 role="content"> 61 <title/> 62 63 <para>Details on this package are located in 64 <xref linkend="contents-diffutils" role="."/></para> 65 66 </sect2> 50 67 51 68 </sect1> 52 -
chapter05/expect.xml
r5aa74f2 r23102484 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-expect" role="wrap"> 7 <title>Expect-&expect-version;</title> 8 <?dbhtml filename="expect.html"?> 9 <?dbhtml filename="expect.html"?> 9 10 10 <indexterm zone="ch-tools-expect"><primary sortas="a-Expect">Expect</primary></indexterm>11 <title>Expect-&expect-version;</title> 11 12 12 <sect2 role="package"><title/>13 <para>The Expect package contains a program for carrying out scripted dialogues 14 with other interactive programs.</para>13 <indexterm zone="ch-tools-expect"> 14 <primary sortas="a-Expect">Expect</primary> 15 </indexterm> 15 16 16 <segmentedlist> 17 <segtitle>&buildtime;</segtitle> 18 <segtitle>&diskspace;</segtitle> 19 <seglistitem><seg>0.1 SBU</seg><seg>4.0 MB</seg></seglistitem> 20 </segmentedlist> 17 <sect2 role="package"> 18 <title/> 21 19 22 <segmentedlist> 23 <segtitle>&dependencies;</segtitle> 24 <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, 25 GCC, Glibc, Grep, Make, Patch, Sed, and Tcl</seg></seglistitem> 26 </segmentedlist> 27 </sect2> 20 <para>The Expect package contains a program for carrying out scripted 21 dialogues with other interactive programs.</para> 28 22 29 <sect2 role="installation"> 30 <title>Installation of Expect</title> 23 <segmentedlist> 24 <segtitle>&buildtime;</segtitle> 25 <segtitle>&diskspace;</segtitle> 31 26 32 <para>First, fix a bug that can result in false failures during the GCC test 33 suite run:</para> 27 <seglistitem> 28 <seg>0.1 SBU</seg> 29 <seg>4.0 MB</seg> 30 </seglistitem> 31 </segmentedlist> 32 33 <segmentedlist> 34 <segtitle>&dependencies;</segtitle> 35 36 <seglistitem> 37 <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, 38 Patch, Sed, and Tcl</seg> 39 </seglistitem> 40 </segmentedlist> 41 42 </sect2> 43 44 <sect2 role="installation"> 45 <title>Installation of Expect</title> 46 47 <para>First, fix a bug that can result in false failures during the GCC test 48 suite run:</para> 34 49 35 50 <screen><userinput>patch -Np1 -i ../&expect-spawn-patch;</userinput></screen> 36 51 37 <para>Now prepare Expect for compilation:</para>52 <para>Now prepare Expect for compilation:</para> 38 53 39 54 <screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \ 40 55 --with-tclinclude=/tools/include --with-x=no</userinput></screen> 41 56 42 <para>The meaning of the configure options:</para> 57 <variablelist> 58 <title>The meaning of the configure options:</title> 43 59 44 <variablelist> 45 <varlistentry> 46 <term><parameter>--with-tcl=/tools/lib</parameter></term> 47 <listitem><para>This ensures that the configure script finds the Tcl installation in 48 the temporary tools location instead of possibly locating an existing 49 one on the host system.</para></listitem> 50 </varlistentry> 60 <varlistentry> 61 <term><parameter>--with-tcl=/tools/lib</parameter></term> 62 <listitem> 63 <para>This ensures that the configure script finds the Tcl 64 installation in the temporary tools location instead of possibly 65 locating an existing one on the host system.</para> 66 </listitem> 67 </varlistentry> 51 68 52 <varlistentry> 53 <term><parameter>--with-tclinclude=/tools/include</parameter></term> 54 <listitem><para>This explicitly tells Expect where to find Tcl's internal headers. 55 Using this option avoids conditions where <command>configure</command> fails because 56 it cannot automatically discover the location of Tcl's headers.</para></listitem> 57 </varlistentry> 69 <varlistentry> 70 <term><parameter>--with-tclinclude=/tools/include</parameter></term> 71 <listitem> 72 <para>This explicitly tells Expect where to find Tcl's internal 73 headers. Using this option avoids conditions where 74 <command>configure</command> fails because it cannot automatically 75 discover the location of Tcl's headers.</para> 76 </listitem> 77 </varlistentry> 58 78 59 <varlistentry> 60 <term><parameter>--with-x=no</parameter></term> 61 <listitem><para>This tells the configure script not to search for Tk 62 (the Tcl GUI component) or the X Window System libraries, both of 63 which may reside on the host system but will not exist in the temporary 64 environment.</para></listitem> 65 </varlistentry> 66 </variablelist> 79 <varlistentry> 80 <term><parameter>--with-x=no</parameter></term> 81 <listitem> 82 <para>This tells the configure script not to search for Tk (the 83 Tcl GUI component) or the X Window System libraries, both of which 84 may reside on the host system but will not exist in the temporary 85 environment.</para> 86 </listitem> 87 </varlistentry> 67 88 68 <para>Build the package:</para> 89 </variablelist> 90 91 <para>Build the package:</para> 69 92 70 93 <screen><userinput>make</userinput></screen> 71 94 72 <para>To test the results, issue: <userinput>make test</userinput>.73 Note that the Expect test suite is known to experience failures under74 certain host conditions that are not within our control. Therefore,75 test suite failures here are not surprising and are not considered76 critical.</para>95 <para>To test the results, issue: <userinput>make test</userinput>. 96 Note that the Expect test suite is known to experience failures under 97 certain host conditions that are not within our control. Therefore, 98 test suite failures here are not surprising and are not considered 99 critical.</para> 77 100 78 <para>Install the package:</para>101 <para>Install the package:</para> 79 102 80 103 <screen><userinput>make SCRIPTS="" install</userinput></screen> 81 104 82 <para>The meaning of the make parameter:</para> 105 <variablelist> 106 <title>The meaning of the make parameter:</title> 83 107 84 <variablelist>85 <varlistentry>86 <term><parameter>SCRIPTS=""</parameter></term>87 <listitem><para>This prevents installation of the supplementary expect88 scripts, which are not needed.</para></listitem>89 </varlistentry>90 </variablelist>108 <varlistentry> 109 <term><parameter>SCRIPTS=""</parameter></term> 110 <listitem> 111 <para>This prevents installation of the supplementary Expect 112 scripts, which are not needed.</para> 113 </listitem> 114 </varlistentry> 91 115 92 </sect2>116 </variablelist> 93 117 94 <sect2 id="contents-expect" role="content"><title>Contents of Expect</title>118 </sect2> 95 119 96 <segmentedlist> 97 <segtitle>Installed program</segtitle> 98 <segtitle>Installed library</segtitle> 99 <seglistitem><seg>expect</seg><seg>libexpect-&expect-lib-version;.a</seg></seglistitem> 100 </segmentedlist> 120 <sect2 id="contents-expect" role="content"> 121 <title>Contents of Expect</title> 101 122 102 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>103 <?dbfo list-presentation="list"?>104 <?dbhtml list-presentation="table"?>123 <segmentedlist> 124 <segtitle>Installed program</segtitle> 125 <segtitle>Installed library</segtitle> 105 126 106 <varlistentry id="expect"> 107 <term><command>expect</command></term> 108 <listitem> 109 <para>Communicates with other interactive 110 programs according to a script</para> 111 <indexterm zone="ch-tools-expect expect"><primary sortas="b-expect">expect</primary></indexterm> 112 </listitem> 113 </varlistentry> 127 <seglistitem> 128 <seg>expect</seg> 129 <seg>libexpect-&expect-lib-version;.a</seg> 130 </seglistitem> 131 </segmentedlist> 114 132 115 <varlistentry id="libexpect"> 116 <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term> 117 <listitem> 118 <para>Contains functions that allow Expect to be used as a Tcl extension or to 119 be used directly from C or C++ (without Tcl)</para> 120 <indexterm zone="ch-tools-expect libexpect"><primary 121 sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary></indexterm> 122 </listitem> 123 </varlistentry> 124 </variablelist> 133 <variablelist> 134 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 135 <?dbfo list-presentation="list"?> 136 <?dbhtml list-presentation="table"?> 125 137 126 </sect2> 138 <varlistentry id="expect"> 139 <term><command>expect</command></term> 140 <listitem> 141 <para>Communicates with other interactive programs according 142 to a script</para> 143 <indexterm zone="ch-tools-expect expect"> 144 <primary sortas="b-expect">expect</primary> 145 </indexterm> 146 </listitem> 147 </varlistentry> 148 149 <varlistentry id="libexpect"> 150 <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term> 151 <listitem> 152 <para>Contains functions that allow Expect to be used as a Tcl 153 extension or to be used directly from C or C++ (without Tcl)</para> 154 <indexterm zone="ch-tools-expect libexpect"> 155 <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary> 156 </indexterm> 157 </listitem> 158 </varlistentry> 159 160 </variablelist> 161 162 </sect2> 127 163 128 164 </sect1> 129 -
chapter05/findutils.xml
r5aa74f2 r23102484 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-findutils" role="wrap"> 7 <title>Findutils-&findutils-version;</title> 8 <?dbhtml filename="findutils.html"?> 9 <?dbhtml filename="findutils.html"?> 9 10 10 <indexterm zone="ch-tools-findutils"> 11 <primary sortas="a-Findutils">Findutils</primary> 12 <secondary>tools</secondary></indexterm> 11 <title>Findutils-&findutils-version;</title> 13 12 14 <sect2 role="package"><title/> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/findutils.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 13 <indexterm zone="ch-tools-findutils"> 14 <primary sortas="a-Findutils">Findutils</primary> 15 <secondary>tools</secondary> 16 </indexterm> 16 17 17 <segmentedlist> 18 <segtitle>&buildtime;</segtitle> 19 <segtitle>&diskspace;</segtitle> 20 <seglistitem><seg>0.2 SBU</seg><seg>8.9 MB</seg></seglistitem> 21 </segmentedlist> 18 <sect2 role="package"> 19 <title/> 22 20 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/findutils.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../chapter06/findutils.xml" 23 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 24 24 25 </sect2> 25 <segmentedlist> 26 <segtitle>&buildtime;</segtitle> 27 <segtitle>&diskspace;</segtitle> 26 28 27 <sect2 role="installation"> 28 <title>Installation of Findutils</title> 29 <seglistitem> 30 <seg>0.2 SBU</seg> 31 <seg>8.9 MB</seg> 32 </seglistitem> 33 </segmentedlist> 29 34 30 <para>Prepare Findutils for compilation:</para> 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 36 href="../chapter06/findutils.xml" 37 xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 38 39 </sect2> 40 41 <sect2 role="installation"> 42 <title>Installation of Findutils</title> 43 44 <para>Prepare Findutils for compilation:</para> 31 45 32 46 <screen><userinput>./configure --prefix=/tools</userinput></screen> 33 47 34 <para>Compile the package:</para>48 <para>Compile the package:</para> 35 49 36 50 <screen><userinput>make</userinput></screen> 37 51 38 <para>To test the results, issue: <userinput>make check</userinput>.</para> 52 <para>To test the results, issue: 53 <userinput>make check</userinput>.</para> 39 54 40 <para>Install the package:</para>55 <para>Install the package:</para> 41 56 42 57 <screen><userinput>make install</userinput></screen> 43 58 44 </sect2>59 </sect2> 45 60 46 <sect2 role="content"><title/> 47 <para>Details on this package are located in <xref 48 linkend="contents-findutils" role="."/></para> 49 </sect2> 61 <sect2 role="content"> 62 <title/> 63 64 <para>Details on this package are located in 65 <xref linkend="contents-findutils" role="."/></para> 66 67 </sect2> 50 68 51 69 </sect1> 52 -
chapter05/flex.xml
r5aa74f2 r23102484 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-flex" role="wrap"> 7 <title>Flex-&flex-version;</title> 8 <?dbhtml filename="flex.html"?> 9 <?dbhtml filename="flex.html"?> 9 10 10 <indexterm zone="ch-tools-flex"> 11 <primary sortas="a-Flex">Flex</primary> 12 <secondary>tools</secondary></indexterm> 11 <title>Flex-&flex-version;</title> 13 12 14 <sect2 role="package"><title/> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/flex.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 13 <indexterm zone="ch-tools-flex"> 14 <primary sortas="a-Flex">Flex</primary> 15 <secondary>tools</secondary> 16 </indexterm> 16 17 17 <segmentedlist> 18 <segtitle>&buildtime;</segtitle> 19 <segtitle>&diskspace;</segtitle> 20 <seglistitem><seg>0.6 SBU</seg><seg>22.5 MB</seg></seglistitem> 21 </segmentedlist> 18 <sect2 role="package"> 19 <title/> 22 20 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/flex.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../chapter06/flex.xml" 23 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 24 24 25 </sect2> 25 <segmentedlist> 26 <segtitle>&buildtime;</segtitle> 27 <segtitle>&diskspace;</segtitle> 26 28 27 <sect2 role="installation"> 28 <title>Installation of Flex</title> 29 <seglistitem> 30 <seg>0.6 SBU</seg> 31 <seg>22.5 MB</seg> 32 </seglistitem> 33 </segmentedlist> 29 34 30 <para>Flex contains several known bugs. These can be fixed with the 31 following patch:</para> 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 36 href="../chapter06/flex.xml" 37 xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 38 39 </sect2> 40 41 <sect2 role="installation"> 42 <title>Installation of Flex</title> 43 44 <para>Flex contains several known bugs. These can be fixed with the 45 following patch:</para> 32 46 33 47 <screen><userinput>patch -Np1 -i ../&flex-fixes-patch;</userinput></screen> 34 48 35 <para>The GNU autotools will detect that the Flex source code has been36 modified by the previous patch and tries to update the man page37 accordingly. This does not work on many systems, and the default page is38 fine, so make sure it does not get regenerated:</para>49 <para>The GNU autotools will detect that the Flex source code has been 50 modified by the previous patch and tries to update the man page 51 accordingly. This does not work on many systems, and the default page is 52 fine, so make sure it does not get regenerated:</para> 39 53 40 54 <screen><userinput>touch doc/flex.1</userinput></screen> 41 55 42 <para>Now prepare Flex for compilation:</para>56 <para>Now prepare Flex for compilation:</para> 43 57 44 58 <screen><userinput>./configure --prefix=/tools</userinput></screen> 45 59 46 <para>Compile the package:</para>60 <para>Compile the package:</para> 47 61 48 62 <screen><userinput>make</userinput></screen> 49 63 50 <para>To test the results, issue:51 <userinput>make check</userinput>.</para>64 <para>To test the results, issue: 65 <userinput>make check</userinput>.</para> 52 66 53 <para>Install the package:</para>67 <para>Install the package:</para> 54 68 55 69 <screen><userinput>make install</userinput></screen> 56 70 57 </sect2>71 </sect2> 58 72 59 <sect2 role="content"><title/> 60 <para>Details on this package are located in <xref 61 linkend="contents-flex" role="."/></para> 62 </sect2> 73 <sect2 role="content"> 74 <title/> 75 76 <para>Details on this package are located in 77 <xref linkend="contents-flex" role="."/></para> 78 79 </sect2> 63 80 64 81 </sect1> 65 -
chapter05/gawk.xml
r5aa74f2 r23102484 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-gawk" role="wrap"> 7 <title>Gawk-&gawk-version;</title> 8 <?dbhtml filename="gawk.html"?> 9 <?dbhtml filename="gawk.html"?> 9 10 10 <indexterm zone="ch-tools-gawk"> 11 <primary sortas="a-Gawk">Gawk</primary> 12 <secondary>tools</secondary></indexterm> 11 <title>Gawk-&gawk-version;</title> 13 12 14 <sect2 role="package"><title/> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gawk.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 13 <indexterm zone="ch-tools-gawk"> 14 <primary sortas="a-Gawk">Gawk</primary> 15 <secondary>tools</secondary> 16 </indexterm> 16 17 17 <segmentedlist> 18 <segtitle>&buildtime;</segtitle> 19 <segtitle>&diskspace;</segtitle> 20 <seglistitem><seg>0.2 SBU</seg><seg>16.4 MB</seg></seglistitem> 21 </segmentedlist> 18 <sect2 role="package"> 19 <title/> 22 20 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gawk.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../chapter06/gawk.xml" 23 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 24 24 25 </sect2> 25 <segmentedlist> 26 <segtitle>&buildtime;</segtitle> 27 <segtitle>&diskspace;</segtitle> 26 28 27 <sect2 role="installation"> 28 <title>Installation of Gawk</title> 29 <seglistitem> 30 <seg>0.2 SBU</seg> 31 <seg>16.4 MB</seg> 32 </seglistitem> 33 </segmentedlist> 29 34 30 <para>Prepare Gawk for compilation:</para> 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 36 href="../chapter06/gawk.xml" 37 xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 38 39 </sect2> 40 41 <sect2 role="installation"> 42 <title>Installation of Gawk</title> 43 44 <para>Prepare Gawk for compilation:</para> 31 45 32 46 <screen><userinput>./configure --prefix=/tools</userinput></screen> 33 47 34 <para>Due to a bug in the <command>configure</command> script, Gawk fails 35 to detect certain aspects of locale support in Glibc. This 36 bug leads to, e.g., Gettext testsuite failures. Work around this issue 37 by appending the missing macro definitions to <filename>config.h</filename>:</para> 48 <para>Due to a bug in the <command>configure</command> script, Gawk fails 49 to detect certain aspects of locale support in Glibc. This bug leads to, 50 e.g., Gettext testsuite failures. Work around this issue by appending the 51 missing macro definitions to <filename>config.h</filename>:</para> 52 38 53 <screen><userinput>cat >>config.h <<"EOF" 39 54 <literal>#define HAVE_LANGINFO_CODESET 1 … … 41 56 EOF</userinput></screen> 42 57 43 <para>Compile the package:</para>58 <para>Compile the package:</para> 44 59 45 60 <screen><userinput>make</userinput></screen> 46 61 47 <para>To test the results, issue: <userinput>make check</userinput>.</para> 62 <para>To test the results, issue: 63 <userinput>make check</userinput>.</para> 48 64 49 <para>Install the package:</para>65 <para>Install the package:</para> 50 66 51 67 <screen><userinput>make install</userinput></screen> 52 68 53 </sect2>69 </sect2> 54 70 55 <sect2 role="content"><title/> 56 <para>Details on this package are located in <xref 57 linkend="contents-gawk" role="."/></para> 58 </sect2> 71 <sect2 role="content"> 72 <title/> 73 74 <para>Details on this package are located in 75 <xref linkend="contents-gawk" role="."/></para> 76 77 </sect2> 59 78 60 79 </sect1> 61
Note:
See TracChangeset
for help on using the changeset viewer.