Changeset ab7b9fc for server/databases


Ignore:
Timestamp:
10/17/2010 05:44:45 PM (14 years ago)
Author:
DJ Lucas <dj@…>
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:
8f9c757e
Parents:
c8d6d76
Message:

Updated to Berkeley DB 5.1.19.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/databases/db.xml

    rc8d6d76 rab7b9fc  
    66
    77  <!ENTITY db-download-http "http://download-east.oracle.com/berkeley-db/db-&db-version;.tar.gz">
    8   <!ENTITY db-download-ftp  "&gentoo-ftp-repo;/db-&db-version;.tar.gz">
    9   <!ENTITY db-md5sum        "3476bac9ec0f3c40729c8a404151d5e3">
    10   <!ENTITY db-size          "22.8 MB">
    11   <!ENTITY db-buildsize     "250 MB (additional 100 MB to run parallel standard test suite)">
    12   <!ENTITY db-time          "1.9 SBU (builds all bindings, add an additional 145 SBU to run parallel standard test suite)">
     8  <!ENTITY db-download-ftp  " ">
     9  <!ENTITY db-md5sum        "76fcbfeebfcd09ba0b4d96bfdf8d884d">
     10  <!ENTITY db-size          "30 MB">
     11  <!ENTITY db-buildsize     "267 MB (additional 170 MB to run parallel standard test suite with all bindings)">
     12  <!ENTITY db-time          "2.1 SBU (builds all bindings, add an additional 160 SBU to run parallel standard test suite)">
    1313]>
    1414
     
    7979
    8080    <bridgehead renderas="sect4">Optional</bridgehead>
    81     <para role="optional"><xref linkend="tcl"/>,
    82     <xref linkend="icedtea6"/> or <xref linkend="jdk"/>, and
    83     <ulink url="http://www.gnu.org/software/sharutils/">sharutils</ulink>
    84     (for the <command>uudecode</command> command)</para>
     81    <para role="optional"><xref linkend="tcl"/>, and
     82    <xref linkend="icedtea6"/> or <xref linkend="jdk"/></para>
    8583
    8684    <para condition="html" role="usernotes">User Notes:
     
    10098    test suite.</para>
    10199
    102     <para>Build for the <application>Berkeley DB</application> test by running
    103     the following commands:</para>
     100    <para>Build for the <application>Berkeley DB</application> test suite by
     101    running the following commands (add <parameter>--enable-java</parameter> if
     102    you wish to test the java bindings):</para>
    104103
    105104<screen><userinput>cd build_unix &amp;&amp;
    106 ../dist/configure --prefix=/usr \
     105uudecode="no" ../dist/configure --prefix=/usr \
    107106                  --enable-test \
    108107                  --enable-tcl  \
     108                  --enable-sql  \
    109109                  --with-tcl=/usr/lib &amp;&amp;
    110110make</userinput></screen>
    111111
    112     <para>To test the results, start <command>tclsh</command>:</para>
    113 
    114 <screen><userinput>tclsh</userinput></screen>
    115 
    116     <para>From the <command>tclsh</command> prompt (<prompt>%&nbsp;</prompt>),
    117     run:</para>
    118 
    119 <screen><userinput>source ../test/test.tcl
    120 run_parallel 5 run_std
    121 exit</userinput></screen>
     112    <para>To test <application>Berkeley DB</application>, issue the following
     113    command:</para>
     114
     115<screen><userinput>echo "source ../test/tcl/test.tcl; run_parallel 5 run_std; exit;" | tclsh</userinput></screen>
    122116
    123117    <para>Clean up the source tree with the following command:</para>
     
    136130    script, you'll end up with exactly what you already have. The additional
    137131    parameters you can use are listed in the Command Explanations section
    138     below.</para> -->
     132    below.</para>
    139133
    140134    <note>
     
    147141      fail (unless you run the modified <command>./configure</command> command
    148142      shown below). You can run two commands (<command>javac -version</command>
    149       and <command>uudecode --version</command>) to determine what versions are
     143      and <command>uudecode - -version</command>) to determine what versions are
    150144      installed. You can also download and run a shell script from
    151145      <ulink url="&files-anduin;/jdk-uudecode-check.sh"/> that will alert
    152146      you to a non-working condition. If the identified programs exist on the
    153147      system, you must modify the
    154       <command>./configure</command> command as shown below.</para>
    155 
    156 <screen><userinput>uudecode="no" ../dist/configure --(use the parameters shown below)</userinput></screen>
    157     </note>
     148      <command>./configure</command> command as shown below.</para> 
     149
     150<screen><userinput>uudecode="no" ../dist/configure - -(use the parameters shown below)</userinput></screen>
     151    </note> -->
    158152
    159153    <para>Install <application>Berkeley DB</application> by running the
     
    161155
    162156<screen><userinput>cd build_unix &amp;&amp;
    163 ../dist/configure --prefix=/usr \
     157uudecode="no" ../dist/configure --prefix=/usr \
    164158                  --enable-compat185 \
    165                   --enable-cxx &amp;&amp;
     159                  --enable-cxx \
     160                  --enable-sql &amp;&amp;
    166161make</userinput></screen>
    167162
     
    169164
    170165<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
     166touch /usr/include/sqlite.h
    171167chown -v -R root:root \
    172       /usr/bin/berkeley_db_svc \
    173168      /usr/bin/db_* \
    174       /usr/include/db{,_185,_cxx}.h \
    175       /usr/lib/libdb{{,_cxx}.a,{,_cxx,_java,_tcl}-4.8.{so,a,la}} \
     169      /usr/bin/dbsql \
     170      /usr/include/db{,_185,_cxx,sql}.h \
     171      /usr/lib/libdb{,_cxx,_sql}{.a,.so,-5.so,-5.1.{a,la,so}} \
    176172      /usr/share/doc/db-&db-version;</userinput></screen>
     173
     174    <para>If you compiled <application>Berkeley DB</application> with
     175    <application>TCL</application> support, complete the
     176    <application>TCL</application> installation with the following commands
     177    while still the <systemitem class="username">root</systemitem> user:</para>
     178
     179<screen role="root"><userinput>chown -v root:root \
     180      /usr/lib/libdb_tcl{.a,.so,-5.so,-5.1.{a,la,so}}</userinput></screen>
     181
     182    <para>If you compiled <application>Berkeley DB</application> with
     183    <application>Java</application> support, complete the
     184    <application>Java</application> installation with the following commands
     185    while still the <systemitem class="username">root</systemitem> user:</para>
     186
     187<screen role="root"><userinput>chown -v root:root \
     188      /usr/lib/libdb_java{.so,-5.so,-5.1{.a,.la,.so,_g.so}} \
     189      /usr/lib/db.jar</userinput></screen>
     190
     191    <para>Finaly, if you've configured <application>Berkeley DB</application>
     192    with the <parameter>--enable-sql_compat</parameter> parameter to provide
     193    <application>SQLite3</application> compatibility, complete the installation
     194    with the following commands while still the
     195    <systemitem class="username">root</systemitem> user:</para>
     196
     197<screen role="root"><userinput>touch /usr/include/sqlite3.h &amp;&amp;
     198chown -v root:root \
     199      /usr/bin/sqlite3 \
     200      /usr/include/sqlite3.h \
     201      /usr/lib/libsqlite3.{a,la,so}</userinput></screen>
    177202
    178203  </sect2>
     
    182207
    183208    <para><command>cd build_unix &amp;&amp;
    184     ../dist/configure --prefix=/usr...</command>:
     209    uudecode="no" ../dist/configure --prefix=/usr...</command>:
    185210    This replaces the normal <command>./configure</command> command, as
    186211    <application>Berkeley DB</application> comes with various
    187     build directories for different platforms.</para>
     212    build directories for different platforms.  The additional
     213    <envar>uudecode="no"</envar> environment variable ensures that
     214    the build will complete if <xref linkend="gmime"/> is intsalled.</para>
    188215
    189216    <para><parameter>--enable-compat185</parameter>: This switch enables
     
    200227    <application>Java</application> support in DB and creates the
    201228    <filename class='libraryfile'>libdb_java</filename> libraries.</para>
     229
     230    <para><parameter>--enable-sql</parameter>: Enables SQL support in
     231    DB and creates the <filename class='libraryfile'>libdb_sql</filename>
     232    libraries.</para>
     233
     234    <para><parameter>--enable-sql_compat</parameter>: enables building of the
     235    <application>SQLite3</application> compatible binaries and libs.</para>
    202236
    203237    <para><command>make docdir=/usr/share/doc/db-&db-version;
     
    206240    <filename class='directory'>/usr/docs</filename>.</para>
    207241
    208     <para><command>chown -v -R root:root ...</command>:This command changes
     242    <para><command>chown -v -R root:root ...</command>:These commands change
    209243    the ownership of various installed files from the uid:gid of the
    210244    builder to root:root.</para>
     245
     246    <para><command>touch /usr/include/sqlite3.h</command>: This command updates
     247    the timestamp of the installed sqlite3 header.</para>
    211248
    212249  </sect2>
     
    227264      <seglistitem>
    228265        <seg>db_archive, db_checkpoint, db_deadlock, db_dump,
    229         db_load, db_printlog, db_recover, db_stat, db_upgrade, db_verify</seg>
    230         <seg>libdb.{so,a}, libdb_cxx.{so,a}, libdb_java.{so,a},
    231         libdb_tcl.{so,a} and db.jar</seg>
     266        db_load, db_printlog, db_recover, db_stat, db_upgrade, db_verify,
     267        dbsql, sqlite3</seg>
     268        <seg>libdb.{so,a}, libdb_cxx.{so,a}, libdb_java{_g.so,.{so,a},
     269        libdb_tcl.{so,a}, libdb_sql.{so.a} and db.jar</seg>
    232270        <seg>/usr/share/doc/db-&db-version;</seg>
    233271      </seglistitem>
     
    346384      </varlistentry>
    347385
     386      <varlistentry id="dbsql">
     387        <term><command>dbsql</command></term>
     388        <listitem>
     389          <para>is a terminal-based front-end to the dbsql library that can
     390          evaluate queries interactively and display the results.</para>
     391          <indexterm zone="db dbsql">
     392            <primary sortas="b-dbsql">dbsql</primary>
     393          </indexterm>
     394        </listitem>
     395      </varlistentry>
     396
     397      <varlistentry id="db_sqlite3">
     398        <term><command>sqlite3</command></term>
     399        <listitem>
     400          <para>is a SQLite3 compatable inteface for dbsql.</para>
     401          <indexterm zone="db sqlite3">
     402            <primary sortas="b-sqlite3">sqlite3</primary>
     403          </indexterm>
     404        </listitem>
     405      </varlistentry>
     406
    348407    </variablelist>
    349408
Note: See TracChangeset for help on using the changeset viewer.