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

📄 intro.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: intro.so,v 11.25 2006/06/06 17:21:17 bostic Exp $])m4_ref_title(Tcl API,    Loading m4_db with Tcl, loading m4_db with @Tcl, rpc/faq, tcl/using)m4_p([dnlm4_db includes a dynamically loadable Tcl API, which requires thatTcl/Tk 8.4 or later already be installed on your system.  You candownload a copy of Tcl from the m4_linkweb(http://www.tcl.tk, TclDeveloper Xchange) Web site.])m4_p([dnlThis document assumes that you already configured m4_db for Tclsupport, and you have built and installed everything where you want itto be.  If you have not done so, seem4_link(M4RELDIR/ref/build_unix/conf, Configuring m4_db) orm4_link(M4RELDIR/ref/build_win/intro, Building for Windows) for moreinformation.])m4_section(Installing as a Tcl Package)m4_p([dnlOnce enabled, the m4_db shared library for Tcl is automatically installedas part of the standard installation process.  However, if you want to beable to dynamically load it as a Tcl package into your script, there areseveral steps that must be performed:])m4_nlistbeginm4_nlist([Run the Tcl shell in the install directory.])m4_nlistns([Append this directory to your auto_path variable.])m4_nlistns([dnlRun the pkg_mkIndex proc, giving the name of the m4_db Tcl library.])m4_nlistendm4_p([dnlFor example:])m4_indent([dnl# tclsh8.4% lappend auto_path /usr/local/BerkeleyDB.M4MAJOR.M4MINOR/lib% pkg_mkIndex /usr/local/BerkeleyDB.M4MAJOR.M4MINOR/lib libdb_tcl-M4MAJOR.M4MINOR.so])m4_p([dnlNote that your Tcl and m4_db version numbers may differ from theexample, and so your tclsh and library names may be different.])m4_section([Loading m4_db with Tcl])m4_p([dnlThe m4_db package may be loaded into the user's interactive Tcl script(or wish session) via the m4_bold(load) command. For example:])m4_indent([load /usr/local/BerkeleyDB.M4MAJOR.M4MINOR/lib/libdb_tcl-M4MAJOR.M4MINOR.so])m4_p([dnlNote that your m4_db version numbers may differ from the example, and sothe library name may be different.])m4_p([dnlIf you installed your library to run as a Tcl package, Tcl applicationscripts should use the m4_bold(package) command to indicate to the Tclinterpreter that it needs the m4_db package and where to find it. Forexample:])m4_indent([dnllappend auto_path "/usr/local/BerkeleyDB.M4MAJOR.M4MINOR/lib"package require Db_tcl])m4_p([dnlNo matter which way the library gets loaded, it creates a command namedm4_bold(berkdb).  All the m4_db functionality is accessed via thiscommand and additional commands it creates on behalf of the application.A simple test to determine whether everything is loaded and ready is todisplay the library version, as follows:])m4_indent([berkdb version -string])m4_p([dnlThis should return you the m4_db version in a string format.])m4_page_footer

⌨️ 快捷键说明

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