| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>Getting and Installing BDB SQL</title> |
| 7 | <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Getting Started with the Oracle Berkeley DB SQL APIs" /> |
| 10 | <link rel="up" href="dbsqlbasics.html" title="Chapter 1. Berkeley DB SQL: The Absolute Basics" /> |
| 11 | <link rel="prev" href="dbsqlbasics.html" title="Chapter 1. Berkeley DB SQL: The Absolute Basics" /> |
| 12 | <link rel="next" href="accessing_bdb_sql_databases.title.html" title="Accessing BDB SQL Databases" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">Getting and Installing BDB SQL</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="dbsqlbasics.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 1. Berkeley DB SQL: The Absolute Basics</th> |
| 26 | <td width="20%" align="right"> <a accesskey="n" href="accessing_bdb_sql_databases.title.html">Next</a></td> |
| 27 | </tr> |
| 28 | </table> |
| 29 | <hr /> |
| 30 | </div> |
| 31 | <div class="sect1" lang="en" xml:lang="en"> |
| 32 | <div class="titlepage"> |
| 33 | <div> |
| 34 | <div> |
| 35 | <h2 class="title" style="clear: both"><a id="buildinstall"></a>Getting and Installing BDB SQL</h2> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | <div class="toc"> |
| 40 | <dl> |
| 41 | <dt> |
| 42 | <span class="sect2"> |
| 43 | <a href="buildinstall.html#onwin">On Windows Systems</a> |
| 44 | </span> |
| 45 | </dt> |
| 46 | <dt> |
| 47 | <span class="sect2"> |
| 48 | <a href="buildinstall.html#onunix">On Unix</a> |
| 49 | </span> |
| 50 | </dt> |
| 51 | <dt> |
| 52 | <span class="sect2"> |
| 53 | <a href="buildinstall.html#ado_net">The BDB SQL ADO.NET Interface</a> |
| 54 | </span> |
| 55 | </dt> |
| 56 | </dl> |
| 57 | </div> |
| 58 | <p> |
| 59 | The BDB SQL interface comes as a part of the Oracle Berkeley DB |
| 60 | download. This can be downloaded from the |
| 61 | <a class="ulink" href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html" target="_top">Oracle Berkeley DB download page</a>. |
| 62 | </p> |
| 63 | <div class="sect2" lang="en" xml:lang="en"> |
| 64 | <div class="titlepage"> |
| 65 | <div> |
| 66 | <div> |
| 67 | <h3 class="title"><a id="onwin"></a>On Windows Systems</h3> |
| 68 | </div> |
| 69 | </div> |
| 70 | </div> |
| 71 | <p> |
| 72 | The BDB SQL interface is automatically built and installed |
| 73 | whenever you build or install Berkeley DB for a Windows |
| 74 | system. The BDB SQL interface <code class="literal">dll</code>s and the |
| 75 | command line interpreter have names that differ from a |
| 76 | standard SQLite distribution as follows: |
| 77 | </p> |
| 78 | <div class="itemizedlist"> |
| 79 | <ul type="disc"> |
| 80 | <li> |
| 81 | <p> |
| 82 | <code class="literal">dbsql.exe</code> |
| 83 | </p> |
| 84 | <p> |
| 85 | This is the command line shell. It operates |
| 86 | identically to the SQLite |
| 87 | <span class="command"><strong>sqlite3.exe</strong></span> shell. |
| 88 | </p> |
| 89 | </li> |
| 90 | <li> |
| 91 | <p> |
| 92 | <code class="literal">libdb_sql50.dll</code> |
| 93 | </p> |
| 94 | <p> |
| 95 | This is the library that provides the BDB SQL interface. |
| 96 | It is the equivalent of the SQLite |
| 97 | <code class="literal">sqlite3.dll</code> library. |
| 98 | </p> |
| 99 | </li> |
| 100 | </ul> |
| 101 | </div> |
| 102 | </div> |
| 103 | <div class="sect2" lang="en" xml:lang="en"> |
| 104 | <div class="titlepage"> |
| 105 | <div> |
| 106 | <div> |
| 107 | <h3 class="title"><a id="onunix"></a>On Unix</h3> |
| 108 | </div> |
| 109 | </div> |
| 110 | </div> |
| 111 | <p> |
| 112 | In order to build the BDB SQL interface, you download and build |
| 113 | Berkeley DB, configuring it so that the BDB SQL interface is also built. |
| 114 | Be aware that it is not built by default. Instead, you |
| 115 | need to tell the Berkeley DB <code class="literal">configure</code> |
| 116 | script to also build the BDB SQL interface. For instructions on |
| 117 | building the BDB SQL interface, see <a href="../installation/build_unix.html#build_unix_sqlinter" class="olink">Building the DB SQL Interface</a> in the |
| 118 | <em class="citetitle">Berkeley DB Installation and Build Guide</em>. |
| 119 | </p> |
| 120 | <p> |
| 121 | The library and application names used when building |
| 122 | the BDB SQL interface are different than those used by SQLite. |
| 123 | If you want library and command shell names that are |
| 124 | consistent with the names used by SQLite, configure |
| 125 | the BDB SQL interface build using the compatibility |
| 126 | (<code class="literal">--enable-sql_compat</code>) option. |
| 127 | </p> |
| 128 | <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> |
| 129 | <h3 class="title">Warning</h3> |
| 130 | <p> |
| 131 | The compatibility option can break other |
| 132 | applications on your platform that rely on standard |
| 133 | SQLite. This is especially true of Mac OS X, which |
| 134 | uses standard SQLite for a number of default |
| 135 | applications. |
| 136 | </p> |
| 137 | <p> |
| 138 | <span class="emphasis"><em> |
| 139 | Use the compatibility option only if you know |
| 140 | exactly what you are doing. |
| 141 | </em></span> |
| 142 | </p> |
| 143 | </div> |
| 144 | <p> |
| 145 | Unless you built the BDB SQL interface with the compatibility |
| 146 | option, libraries and a command line shell |
| 147 | are built with the following names: |
| 148 | </p> |
| 149 | <div class="itemizedlist"> |
| 150 | <ul type="disc"> |
| 151 | <li> |
| 152 | <p> |
| 153 | <a href="../api_reference/C/dbsql.html" class="olink">dbsql</a> |
| 154 | </p> |
| 155 | <p> |
| 156 | This is the command line shell. It operates |
| 157 | identically to the SQLite |
| 158 | <span class="command"><strong>sqlite3</strong></span> shell. |
| 159 | </p> |
| 160 | </li> |
| 161 | <li> |
| 162 | <p> |
| 163 | <code class="literal">libdb_sql</code> |
| 164 | </p> |
| 165 | <p> |
| 166 | This is the library that provides the BDB SQL interface. |
| 167 | It is the equivalent of the SQLite |
| 168 | <code class="literal">libsqlite3</code> library. |
| 169 | </p> |
| 170 | </li> |
| 171 | </ul> |
| 172 | </div> |
| 173 | </div> |
| 174 | <div class="sect2" lang="en" xml:lang="en"> |
| 175 | <div class="titlepage"> |
| 176 | <div> |
| 177 | <div> |
| 178 | <h3 class="title"><a id="ado_net"></a>The BDB SQL ADO.NET Interface</h3> |
| 179 | </div> |
| 180 | </div> |
| 181 | </div> |
| 182 | <p> |
| 183 | Download the ADO.NET package from the |
| 184 | <a class="ulink" href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html" target="_top">Oracle Berkeley DB download page</a>. |
| 185 | </p> |
| 186 | <div class="sect3" lang="en" xml:lang="en"> |
| 187 | <div class="titlepage"> |
| 188 | <div> |
| 189 | <div> |
| 190 | <h4 class="title"><a id="ado_prereqs"></a>Prerequisites For Building The ADO.NET Package</h4> |
| 191 | </div> |
| 192 | </div> |
| 193 | </div> |
| 194 | <div class="itemizedlist"> |
| 195 | <ul type="disc"> |
| 196 | <li> |
| 197 | To build the Linq package, you will need to install |
| 198 | <code class="literal">Microsoft .NET Framework 3.5 SP1</code>. |
| 199 | </li> |
| 200 | <li> |
| 201 | To build SQLite.Designer, you will need to install the |
| 202 | <code class="literal">Microsoft Visual Studio SDK</code>. |
| 203 | </li> |
| 204 | <li> |
| 205 | To build on Windows Mobile you will need to install the |
| 206 | <code class="literal">Microsoft Windows Mobile 6.5.3 Developer Tool Kit (DTK)</code>. |
| 207 | </li> |
| 208 | <li> |
| 209 | To build on Windows Mobile you will need to use Visual |
| 210 | Studio 2008. |
| 211 | </li> |
| 212 | </ul> |
| 213 | </div> |
| 214 | </div> |
| 215 | <div class="sect3" lang="en" xml:lang="en"> |
| 216 | <div class="titlepage"> |
| 217 | <div> |
| 218 | <div> |
| 219 | <h4 class="title"><a id="ado_build_steps"></a>Building BDB SQL ADO.NET Interface For Windows</h4> |
| 220 | </div> |
| 221 | </div> |
| 222 | </div> |
| 223 | <div class="itemizedlist"> |
| 224 | <ul type="disc"> |
| 225 | <li> |
| 226 | <p> |
| 227 | The package contains Visual Studio solution files: |
| 228 | </p> |
| 229 | <div class="itemizedlist"> |
| 230 | <ul type="circle"> |
| 231 | <li> |
| 232 | <p> |
| 233 | <code class="literal">SQLite.NET.2008.sln</code> |
| 234 | and |
| 235 | <code class="literal">SQLite.NET.2010.sln</code> |
| 236 | </p> |
| 237 | <p> |
| 238 | For use by with Visual Studio 2008 |
| 239 | or 2010. Note that these solution |
| 240 | files do not build support for Linq |
| 241 | or SQLite Designer. |
| 242 | </p> |
| 243 | </li> |
| 244 | <li> |
| 245 | <p> |
| 246 | <code class="literal">SQLite.NET.2008.MSBuild.sln</code> |
| 247 | and |
| 248 | <code class="literal">SQLite.NET.2010.MSBuild.sln</code> |
| 249 | </p> |
| 250 | <p> |
| 251 | For use with MSBuild (Microsoft |
| 252 | Build Engine). These can also be |
| 253 | used with Visual Studio. These |
| 254 | solutions exclude SQLite Designer |
| 255 | and CompactFramework. By default, |
| 256 | these do not build support for |
| 257 | Linq. |
| 258 | </p> |
| 259 | </li> |
| 260 | </ul> |
| 261 | </div> |
| 262 | </li> |
| 263 | <li> |
| 264 | Change the current platform target to |
| 265 | <code class="literal">ReleaseNativeOnly</code> choose either |
| 266 | <code class="literal">Win32</code> or <code class="literal">x64</code> |
| 267 | depending on your target platform. |
| 268 | </li> |
| 269 | <li> |
| 270 | Build the solution. |
| 271 | </li> |
| 272 | </ul> |
| 273 | </div> |
| 274 | </div> |
| 275 | <div class="sect3" lang="en" xml:lang="en"> |
| 276 | <div class="titlepage"> |
| 277 | <div> |
| 278 | <div> |
| 279 | <h4 class="title"><a id="ado_build_steps_ce"></a> |
| 280 | Building BDB SQL ADO.NET Interface For Windows Mobile |
| 281 | </h4> |
| 282 | </div> |
| 283 | </div> |
| 284 | </div> |
| 285 | <p> |
| 286 | Building BDB SQL ADO.NET for Windows Mobile |
| 287 | requires Windows Mobile 6.5.3 Professional DTK. |
| 288 | Typical requirements for installing this toolkit |
| 289 | are: |
| 290 | </p> |
| 291 | <div class="itemizedlist"> |
| 292 | <ul type="disc"> |
| 293 | <li> |
| 294 | <p> |
| 295 | Visual Studio 2005 SP1 or Later |
| 296 | </p> |
| 297 | </li> |
| 298 | <li> |
| 299 | <p> |
| 300 | ActiveSync 4.5 |
| 301 | </p> |
| 302 | </li> |
| 303 | <li> |
| 304 | <p> |
| 305 | .NET CompactFramework 2.0 SP1 |
| 306 | </p> |
| 307 | </li> |
| 308 | <li> |
| 309 | <p> |
| 310 | Windows Mobile 6 SDK |
| 311 | </p> |
| 312 | </li> |
| 313 | </ul> |
| 314 | </div> |
| 315 | <p> |
| 316 | To build BDB SQL ADO.NET for Windows Mobile, do |
| 317 | the following: |
| 318 | </p> |
| 319 | <div class="itemizedlist"> |
| 320 | <ul type="disc"> |
| 321 | <li> |
| 322 | Open the <code class="literal">SQLite.NET.2008.WinCE.sln</code> |
| 323 | solution file in Visual Studio 2008. |
| 324 | </li> |
| 325 | <li> |
| 326 | Select <code class="literal">Load Project Normally</code></li> |
| 327 | <li> |
| 328 | Change the current platform to <code class="literal">ReleaseNativeOnly</code>. |
| 329 | </li> |
| 330 | <li> |
| 331 | Select <code class="literal">Configuration Manager</code>-><code class="literal">new</code>, |
| 332 | then type or select the platform |
| 333 | <code class="literal">Windows Mobile 6.5.3 Professional DTK (ARMV4I)</code>. |
| 334 | Choose to copy settings from |
| 335 | <code class="literal">Pocket PC 2003 (ARMV4I)</code></li> |
| 336 | <li> |
| 337 | Build the solution. |
| 338 | </li> |
| 339 | </ul> |
| 340 | </div> |
| 341 | </div> |
| 342 | </div> |
| 343 | </div> |
| 344 | <div class="navfooter"> |
| 345 | <hr /> |
| 346 | <table width="100%" summary="Navigation footer"> |
| 347 | <tr> |
| 348 | <td width="40%" align="left"><a accesskey="p" href="dbsqlbasics.html">Prev</a> </td> |
| 349 | <td width="20%" align="center"> |
| 350 | <a accesskey="u" href="dbsqlbasics.html">Up</a> |
| 351 | </td> |
| 352 | <td width="40%" align="right"> <a accesskey="n" href="accessing_bdb_sql_databases.title.html">Next</a></td> |
| 353 | </tr> |
| 354 | <tr> |
| 355 | <td width="40%" align="left" valign="top">Chapter 1. Berkeley DB SQL: The Absolute Basics </td> |
| 356 | <td width="20%" align="center"> |
| 357 | <a accesskey="h" href="index.html">Home</a> |
| 358 | </td> |
| 359 | <td width="40%" align="right" valign="top"> Accessing BDB SQL Databases</td> |
| 360 | </tr> |
| 361 | </table> |
| 362 | </div> |
| 363 | </body> |
| 364 | </html> |