Debian Codegraph @

docs/installation/build_unix_macosx.html

raw
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>Mac OS X</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 Installation and Build Guide" />
10 <link rel="up" href="build_unix.html" title="Chapter 7.  Building Berkeley DB for UNIX/POSIX" />
11 <link rel="prev" href="build_unix_linux.html" title="Linux" />
12 <link rel="next" href="build_unix_qnx.html" title="QNX" />
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">Mac OS X</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="build_unix_linux.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 7. 
26 Building Berkeley DB for UNIX/POSIX
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="build_unix_qnx.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="build_unix_macosx"></a>Mac OS X</h2>
38 </div>
39 </div>
40 </div>
41 <div class="orderedlist">
42 <ol type="1">
43 <li>
44 <span class="bold">
45 <strong>When trying to link multiple Berkeley DB language interfaces (for
46 example, Tcl, C++, Java, Python) into a single process, I get "multiple
47 definitions" errors from dyld.</strong>
48 </span>
49 <p>To fix this problem, set the environment variable MACOSX_DEPLOYMENT_TARGET
50 to 10.3 (or your current version of OS X), and reconfigure and rebuild
51 Berkeley DB from scratch. See the OS X ld(1) and dyld(1) man pages for information
52 about how OS X handles symbol namespaces, as well as undefined and
53 multiply-defined symbols.</p>
54 </li>
55 <li>
56 <span class="bold">
57 <strong>When trying to use system-backed shared memory on OS X I see
58 failures about "too many open files".</strong>
59 </span>
60 <p>The default number of shared memory segments on OS X is too low. To fix
61 this problem, edit the file /etc/rc, changing the kern.sysv.shmmax and
62 kern.sysv.shmseg values as follows:</p>
63 <pre class="programlisting">*** /etc/rc.orig Fri Dec 19 09:34:09 2003
64 --- /etc/rc Fri Dec 19 09:33:53 2003
65 ***************
66 *** 84,93 ****
67 # System tuning
68 sysctl -w kern.maxvnodes=$(echo $(sysctl -n hw.physmem) '33554432 /
69 512 * 1024 +p'|dc)
70 ! sysctl -w kern.sysv.shmmax=4194304
71 sysctl -w kern.sysv.shmmin=1
72 sysctl -w kern.sysv.shmmni=32
73 ! sysctl -w kern.sysv.shmseg=8
74 sysctl -w kern.sysv.shmall=1024
75 if [ -f /etc/sysctl-macosxserver.conf ]; then
76 awk '{ if (!-1 &amp;&amp; -1) print $1 }' &lt;
77 /etc/sysctl-macosxserver.conf | while read
78 --- 84,93 ----
79 # System tuning
80 sysctl -w kern.maxvnodes=$(echo $(sysctl -n hw.physmem) '33554432 /
81 512 * 1024 +p'|dc)
82 ! sysctl -w kern.sysv.shmmax=134217728
83 sysctl -w kern.sysv.shmmin=1
84 sysctl -w kern.sysv.shmmni=32
85 ! sysctl -w kern.sysv.shmseg=32
86 sysctl -w kern.sysv.shmall=1024
87 if [ -f /etc/sysctl-macosxserver.conf ]; then
88 awk '{ if (!-1 &amp;&amp; -1) print $1 }' &lt;
89 /etc/sysctl-macosxserver.conf | while read</pre>
90 <p>and then reboot the system.</p>
91 </li>
92 </ol>
93 </div>
94 </div>
95 <div class="navfooter">
96 <hr />
97 <table width="100%" summary="Navigation footer">
98 <tr>
99 <td width="40%" align="left"><a accesskey="p" href="build_unix_linux.html">Prev</a> </td>
100 <td width="20%" align="center">
101 <a accesskey="u" href="build_unix.html">Up</a>
102 </td>
103 <td width="40%" align="right"> <a accesskey="n" href="build_unix_qnx.html">Next</a></td>
104 </tr>
105 <tr>
106 <td width="40%" align="left" valign="top">Linux </td>
107 <td width="20%" align="center">
108 <a accesskey="h" href="index.html">Home</a>
109 </td>
110 <td width="40%" align="right" valign="top"> QNX</td>
111 </tr>
112 </table>
113 </div>
114 </body>
115 </html>