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>Linux</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="Berkeley DB Programmer's Reference Guide" /> 10 <link rel="up" href="build_unix.html" title="Chapter 27. Building Berkeley DB for UNIX/POSIX" /> 11 <link rel="prev" href="build_unix_irix.html" title="IRIX" /> 12 <link rel="next" href="build_unix_macosx.html" title="Mac OS X" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">Linux</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="build_unix_irix.html">Prev</a> </td> 22 <th width="60%" align="center">Chapter 27. 23 Building Berkeley DB for UNIX/POSIX 24 </th> 25 <td width="20%" align="right"> <a accesskey="n" href="build_unix_macosx.html">Next</a></td> 26 </tr> 27 </table> 28 <hr /> 29 </div> 30 <div class="sect1" lang="en" xml:lang="en"> 31 <div class="titlepage"> 32 <div> 33 <div> 34 <h2 class="title" style="clear: both"><a id="build_unix_linux"></a>Linux</h2> 35 </div> 36 </div> 37 </div> 38 <div class="orderedlist"> 39 <ol type="1"> 40 <li> 41 <span class="bold"> 42 <strong>I can't compile and run multithreaded applications.</strong> 43 </span> 44 <p>Special compile-time flags are required when compiling threaded 45applications on Linux. If you are compiling a threaded application, you 46must compile with the _REENTRANT flag:</p> 47 <pre class="programlisting">cc -D_REENTRANT ...</pre> 48 <p>The Berkeley DB library will automatically build with the correct options.</p> 49 </li> 50 <li> 51 <span class="bold"> 52 <strong>I see database corruption when accessing databases.</strong> 53 </span> 54 <p>Some Linux filesystems do not support POSIX filesystem semantics. 55Specifically, ext2 and early releases of ReiserFS, and ext3 in some 56configurations, do not support "ordered data mode" and may insert random 57data into database or log files when systems crash. Berkeley DB files should 58not be placed on a filesystem that does not support, or is not 59configured to support, POSIX semantics.</p> 60 </li> 61 <li> 62 <span class="bold"> 63 <strong>What scheduler should I use?</strong> 64 </span> 65 <p>In some Linux kernels you can select schedulers, and the default is the 66"anticipatory" scheduler. We recommend not using the "anticipatory" 67scheduler for transaction processing workloads.</p> 68 </li> 69 </ol> 70 </div> 71 </div> 72 <div class="navfooter"> 73 <hr /> 74 <table width="100%" summary="Navigation footer"> 75 <tr> 76 <td width="40%" align="left"><a accesskey="p" href="build_unix_irix.html">Prev</a> </td> 77 <td width="20%" align="center"> 78 <a accesskey="u" href="build_unix.html">Up</a> 79 </td> 80 <td width="40%" align="right"> <a accesskey="n" href="build_unix_macosx.html">Next</a></td> 81 </tr> 82 <tr> 83 <td width="40%" align="left" valign="top">IRIX </td> 84 <td width="20%" align="center"> 85 <a accesskey="h" href="index.html">Home</a> 86 </td> 87 <td width="40%" align="right" valign="top"> Mac OS X</td> 88 </tr> 89 </table> 90 </div> 91 </body> 92</html> 93