⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.1st

📁 db.* (pronounced dee-be star) is an advanced, high performance, small footprint embedded database fo
💻 1ST
字号:
/*************************************************************************** *                                                                         * * db.*                                                                    * * open source database kernel                                             * *                                                                         * * Copyright (c) 2000 Centura Software Corporation. All rights reserved.   * *                                                                         * * Use of this software, whether in source code format, or in executable,  * * binary object code form, is governed by the CENTURA OPEN SOURCE LICENSE * * which is fully described in the LICENSE.TXT file, included within this  * * distribution of source code files.                                      *  *                                                                         * * Except as provided herein, the contents of this file are subject to the * * Centura Open Source Public License Version 1.0 (the "License"); you may * * not use this file except in compliance with the License.  A copy of the * * License will be provided to you by Club ITTIA.                          * *                                                                         * * Software distributed under the License is distributed on an "AS IS"     * * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * * License for the specific language governing rights and limitations      * * under the License.                                                      * *                                                                         * * The Original Code is db.linux version 1.0, released February 29, 2000.  * *                                                                         * * The Initial Developer of the Original Code is Centura Software          * * Corporation. Portions created by Centura Software Corporation are       * * Copyright (C) 1984-2000 Centura Software Corporation. All Rights        * * Reserved.                                                               * *                                                                         * * This file contains modifications to the Original Code made by ITTIA.    * * This file may only be used in accordance with the ITTIA DB.* V.2        * * License Agreement which is available at WWW.ITTIA.COM.                  * *                                                                         * **************************************************************************/Building db.*=============Extract the db.* source code tree to a directory on your filesystem and enterthat directory:tar xzf db-star-2.0.tar.gzcd db-star-2.0/To build db.*, issue the following commands:./configuremakeYou may test your build by running the tims example:cd examples/tims./timsA test suite is included with db.* to automatically test basic functionality.To run these tests, use:make checkInstalling db.*===============To install db.* to your system, issue the command:make installThis will install the db.* libraries, headers, and utilities to the defaultlocation (usually /usr/local). You may also strip debug information from thelibraries when installing them with the command:make install-stripThis produces much smaller library files but may make debugging more difficult.In the path to which db.* is installed, the following utilities will beavailable in the bin directory:    console    dal    datdump    dbcheck    dbclrlb    dbedit    dbexp    dbimp    dchain    ddlp    ida    initdb    keybuild    keydump    keypack    lm    lmclear    prdbdThe db.* static and shared libraries will be in the lib directory:    libdbstar.a    libpsp.a    libdbstar.so    libpsp.soTo install the test suite, use:make installcheckThis will install a program named "testdbstar".Configuring db.*================You may further customize your build of db.* by passing options to theconfigure script before running make. For a list of all options, run:./configure --helpBy default, db.* is installed to /usr/local. To specify that db.* should beinstalled to the absolute path DESTINATION, use:./configure --prefix=DESTINATIONOther options allow you to reduce the size of the db.* libraries by disablingunnecessary features: --disable-threads, --disable-console, --disable-net,--disable-stdio.For example, to build db.* without thread support and install strippedlibraries to $HOME/tmp, use:./configure --prefix=$HOME/tmp --disable-threadsmakemake install-stripIf you want to experiment with several different configurations, you can runconfigure from a subdirectory:mkdir outputcd output../configuremakeThis will isolate the build to the output directory. You can create any numberof build directories in this way, each with its own configuration options.You must install db.* using "make install" or "make install-strip". You cannotsimply copy the files that are created by "make". Always specify the path thatdb.* will be installed to through the --prefix configure option. If you need toinstall to a temporary path, for example when creating a package or installingto an embedded filesystem, use the DESTDIR make variable when installing:make DESTDIR=/tmp install-stripIf the prefix is /usr/local, this will install to /tmp/usr/local.A number of utilities are used with db.*. To select which utilities to build,give configure the --enable-tools option:./configure --enable-tools="ddlp dbinit"By default, all utilities are enabled. To build no utilities, use the--disable-tools option.db.* comes with several example programs. To select which example programs to build, use the --enable-examples option:./configure --enable-examples="bom tims"By default, all examples are enabled. To build no examples, use the--disable-examples option.Cross-compiling db.*====================Cross-compiling allows the db.* library to be compiled on one systemarchitecture and deployed on another. To cross-compile db.*, you will need a cross-compiler, build tools (assembler, linker), and shared libraries for your target architecture.First you will need to build the ddlp utility for your native developmentenvironment in order to create db.* applications, such as the test suite:mkdir build-nativecd build-native../configure --enable-tools="ddlp" --disable-examplesmakeNext set the environment variables necessary to cross-compileexport CC=/path/to/cross-compile/tools/gcc export LD=/path/to/cross-compile/tools/ld export AS=/path/to/cross-compile/tools/as  export AR=/path/to/cross-compile/tools/ar Now build a cross-compiled version of the library:cd ..mkdir build-crosscd build-cross../configure --disable-tools --disable-examples \             --build=build_arch-build_os --host=cross_arch-cross_osmakeYou should replace build_arch and build_os with the architecture and operatingsystem of the machine you are building on, e.g. --build=i686-redhat-linux-gnu.Sometimes --build is detected automatically. Similarly, you should replacecross_arch and cross_os with the architecture and operating system of thesystem you are cross-compling for, e.g. --host=arm-linux.Finally, install the files to the target filesystem:make DESTDIR=/mnt/target-system install-stripTo ensure that the libraries are installed correctly, you may want to installthe test suite program. Use the installcheck make rule to build and install thetestdbstar program:make DDLP=/full/path/to/dbstar/build-native/utilities/ddlp DESTDIR=/mnt/target-system installcheckThe ddlp utility is needed to build any applications that use db.*, such as the test suite. By setting the DDLP variable when running make, the test suitewill be able to run the version of ddlp that was generated for your buildenvironment.Verification============A test suite is included with db.* to automatically test basic functionality.To run these tests, use:make checkA script to analyze d_ function test coverage may be run:    ./usage.bsh examples/ > d_usage.txtAn example of db.star.ini is included showing default values.   About=====This software is an open source database kernel, db.*, distributed by ITTIA.ITTIA - U.S. Headquarters1611 116th Avenue NE Suite 202Bellevue Washington 98004USADownload the latest version of db.* at http://www.ittia.com

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -