- Timestamp:
- 01/11/2006 12:41:26 PM (18 years ago)
- Children:
- 1b2a5e7
- Parents:
- d07a8f84
- Location:
- chapter06
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/db.xml
rd07a8f84 r3271442 5 5 ]> 6 6 <sect1 id="ch-system-db" role="wrap"> 7 <title> DB-&db-version;</title>7 <title>Berkeley DB-&db-version;</title> 8 8 <?dbhtml filename="db.html"?> 9 9 10 <indexterm zone="ch-system-db"><primary sortas="a- DB">Berkeley DB</primary></indexterm>10 <indexterm zone="ch-system-db"><primary sortas="a-Berkeley-DB">Berkeley DB</primary></indexterm> 11 11 12 12 <sect2 role="package"><title/> 13 <para>The DB package contains programs and utilities used by many other13 <para>The Berkeley DB package contains programs and utilities used by many other 14 14 applications for database related functions.</para> 15 15 … … 17 17 <segtitle>&buildtime;</segtitle> 18 18 <segtitle>&diskspace;</segtitle> 19 <seglistitem><seg>1. 0 SBU</seg><seg>74MB</seg></seglistitem>19 <seglistitem><seg>1.2 SBU</seg><seg>78 MB</seg></seglistitem> 20 20 </segmentedlist> 21 21 … … 25 25 Diffutils, GCC, Glibc, Make and Sed.</seg></seglistitem> 26 26 </segmentedlist> 27 28 <tip> 29 <title>Extra functionality for Berkeley DB in BLFS</title> 30 <para>There are instructions to build this package in the BLFS book if you need to build the RPC server or additional language bindings. The 31 additional language bindings will require additional packages to be 32 installed. The BLFS instructions are located at 33 <ulink url="&blfs-root;view/svn/server/databases.html#db"/> 34 for suggested installation instructions.</para> 35 </tip> 36 27 37 </sect2> 28 38 29 39 <sect2 role="installation"> 30 <title>Installation of DB</title>31 32 <para>Prepare DB for compilation:</para>40 <title>Installation of Berkeley DB</title> 41 42 <para>Prepare Berkeley DB for compilation:</para> 33 43 34 44 <screen><userinput>cd build_unix && … … 40 50 <varlistentry> 41 51 <term><parameter>--enable-compat185</parameter></term> 42 <listitem><para>This option enables building DB 1.85 compatibility API.</para></listitem>52 <listitem><para>This option enables building Berkeley DB 1.85 compatibility API.</para></listitem> 43 53 </varlistentry> 44 54 … … 51 61 <para>Compile the package:</para> 52 62 53 <screen><userinput>make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread"</userinput></screen> 54 55 <para>The meaning of the make option:</para> 56 57 <variablelist> 58 <varlistentry> 59 <term><parameter>LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread"</parameter></term> 60 <listitem><para>These variables work around a bug in the <command>configure</command> 61 script that causes the DB libraries not to link against NPTL libraries</para></listitem> 62 </varlistentry> 63 </variablelist> 63 <screen><userinput>make</userinput></screen> 64 64 65 65 <para>It is not possible to test the package meaningfully, because that … … 81 81 </variablelist> 82 82 83 <para>Fix the permissions on the installed documentationfiles:</para>83 <para>Fix the ownerships of the installed files:</para> 84 84 85 85 <screen><userinput>chown root:root /usr/bin/db_* \ … … 90 90 91 91 92 <sect2 id="contents-db" role="content"><title>Contents of DB</title>92 <sect2 id="contents-db" role="content"><title>Contents of Berkeley DB</title> 93 93 <segmentedlist> 94 94 <segtitle>Installed programs</segtitle> -
chapter06/gcc.xml
rd07a8f84 r3271442 54 54 <screen><userinput>sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in</userinput></screen> 55 55 56 <para>GCC provides a <command>gccbug</command> script which detects at 57 compile time whether mktemp is present, and hardcodes the result in a test. 58 This will cause the script to fall back to using less random names for 59 temporary files. We will be installing mktemp later, so the following sed 60 will simulate its presence.</para> 61 62 <screen>sed -i 's/@have_mktemp_command@/yes/' gcc/gccbug.in</screen> 63 56 64 <para>The GCC documentation recommends building GCC outside of the source 57 65 directory in a dedicated build directory:</para> -
chapter06/iproute2.xml
rd07a8f84 r3271442 26 26 <segtitle>&dependencies;</segtitle> 27 27 <seglistitem> 28 <seg> DB, GCC, Glibc, Make, and Linux-Headers</seg>28 <seg>Berkeley DB, GCC, Glibc, Make, and Linux-Headers</seg> 29 29 </seglistitem> 30 30 </segmentedlist> … … 60 60 <screen><userinput>make SBINDIR=/sbin install</userinput></screen> 61 61 62 <para>The <command>arpd</command> binary links against the DB libraries62 <para>The <command>arpd</command> binary links against the Berkeley DB libraries 63 63 that reside in <filename class="directory">/usr</filename> and 64 64 uses a database in <filename>/var/lib/arpd/arpd.db</filename>. Thus, -
chapter06/man-db.xml
rd07a8f84 r3271442 21 21 <segmentedlist> 22 22 <segtitle>&dependencies;</segtitle> 23 <seglistitem><seg>Bash, B inutils, Coreutils, Gawk, GCC, DB,24 G libc, Gettext, Grep, Make, and Sed</seg></seglistitem>23 <seglistitem><seg>Bash, Berkeley DB, Binutils, Coreutils, Gawk, GCC, 24 Gettext, Glibc, Grep, Make, and Sed</seg></seglistitem> 25 25 </segmentedlist> 26 26 </sect2> -
chapter06/perl.xml
rd07a8f84 r3271442 21 21 <segmentedlist> 22 22 <segtitle>&dependencies;</segtitle> 23 <seglistitem><seg>Bash, B inutils, Coreutils, DB, Diffutils,23 <seglistitem><seg>Bash, Berkeley DB, Binutils, Coreutils, Diffutils, 24 24 Gawk, GCC, Glibc, Grep, Iana-Etc, Make, Patch, and Sed</seg></seglistitem> 25 25 </segmentedlist> … … 28 28 <sect2 role="installation"> 29 29 <title>Installation of Perl</title> 30 31 <para>First create a basic <filename>/etc/hosts</filename> file which will be 32 referenced in one of Perl's configuration files as well as being used used by 33 the testsuite if you run that.</para> 34 35 <screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen> 30 36 31 37 <para>To have full control over the way Perl is set up, run the … … 50 56 51 57 <screen><userinput>make</userinput></screen> 52 53 <para>To run the test suite, first create a basic54 <filename>/etc/hosts</filename> file which is needed by a couple of the tests to55 resolve the network name localhost:</para>56 57 <screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen>58 58 59 59 <para>Now run the tests, if desired:</para>
Note:
See TracChangeset
for help on using the changeset viewer.