<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3285381514267612885</id><updated>2011-07-28T18:36:18.979-07:00</updated><title type='text'>Triumph of the Nerds</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://triumphofthenerds.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3285381514267612885/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://triumphofthenerds.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jörg Richter</name><uri>http://www.blogger.com/profile/15867270226101227398</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3285381514267612885.post-896765172892072090</id><published>2009-08-28T19:25:00.000-07:00</published><updated>2009-08-28T21:22:52.913-07:00</updated><title type='text'>Running CouchDB on Mac OS X 10.3.9 "Panther"</title><content type='html'>&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;br /&gt;CouchDB really kicked me.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;http://couchdb.apache.org/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;I felt the urge to install and play with it.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;My system is a 5-year old Mac running Mac OS X 10.3.9 ("Panther") and I'm pretty happy with it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Unfortunately, Jan Lehnardt's one-click CouchDB package for the Mac requires Intel-based Macs running Mac OS X 10.5 Leopard or newer.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;http://janl.github.com/couchdbx/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;After 3 days of trying and learning I did it: CouchDB 0.9 runs on my 10.3.9 system.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Here I like to share my installation notes with you.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:lucida grande;font-size:130%;"  &gt;Requirements&lt;/span&gt;&lt;br /&gt;&lt;ul style="font-family: lucida grande;"&gt;&lt;li&gt;Xcode 1.5, Apples development environment as it includes libraries and tools like "gcc" and "make". Download Xcode 1.5 from Apple Developer Connection (later versions of Xcode do not work with Mac OS X 10.3.9)&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;MacPorts, as it provides an infrastructure for building, installing, and packaging open source software. It is designed to match the functionality of the FreeBSD Ports system.&lt;br /&gt;www.macports.org&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;br /&gt;Begin the Installation&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;sudo port install couchdb&lt;br /&gt;&lt;br /&gt;MacPorts will download the CouchDB dependencies (ports) and try to compile them.&lt;br /&gt;With various ports you will encounter this error:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:lucida grande;font-size:130%;"  &gt;illegal reference to symbol: ___cmpdi2&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:lucida grande;font-size:130%;"  &gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;ld: /usr/lib/gcc/darwin/3.3/libgcc.a(_fixunssfdi.o) illegal reference to symbol: ___cmpdi2 defined in indirectly referenced dynamic library /usr/lib/libgcc_s.1.dylib&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:lucida grande;" &gt;smpeg&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LIBS =  -L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa &lt;span style="font-weight: bold;"&gt;-Wl,/usr/lib/libgcc_s.1.dylib&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:lucida grande;" &gt;libsdl_mixer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    SDL_LIBS = -L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa &lt;span style="font-weight: bold;"&gt;-Wl,/usr/lib/libgcc_s.1.dylib&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;EXTRA_LDFLAGS =  -L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -Wl,-framework,QuickTime -Wl,-framework,CoreServices &lt;span style="font-weight: bold;"&gt;-Wl,/usr/lib/libgcc_s.1.dylib&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;Beide notwendig (zuerst SDL_LIBS probiert, dann EXTRA_LDFLAGS hinzugefügt)?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:lucida grande;" &gt;wxWidgets&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in build/Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LIBS (ohne -Wl, mit -Wl,)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    EXTRALIBS (ohne -Wl, mit -Wl,)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    EXTRALIBS_SDL (mit -Wl,)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LDFLAGS (ohne -Wl, mit -Wl,)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    ...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in build/utils/wxrc/Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LIBS (ohne -Wl)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    EXTRALIBS (ohne -Wl)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in build/contrib/src/fl/Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LIBS (mit -Wl)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    EXTRALIBS (mit -Wl)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    EXTRALIBS_GUI (mit -Wl)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in build/contrib/src/gizmos/Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LIBS (ohne -Wl)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    EXTRALIBS (ohne -Wl)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in build/contrib/src/plot/Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LIBS (ohne -Wl)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in build/contrib/src/ogl/Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LIBS (ohne -Wl)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in build/contrib/src/stc/Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LIBS (ohne -Wl)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in build/contrib/src/svg/Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LIBS (ohne -Wl)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:lucida grande;font-size:130%;"  &gt;erlang&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:lucida grande;" &gt;Problem bei configure: "Kernel Poll was requested but is not supported" (o.ä.)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;=&gt; Lösung: Portfile editieren:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;/opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/erlang/Portfile&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;configure.args  --prefix=${destroot}${prefix}    \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;                --enable-kernel-poll            \       # &lt;= Zeile rausnehmen --enable-threads                \ ...&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Problem beim Compilieren: cc1plus: out of memory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*** malloc: vm_allocate(size=1972441088) failed (error code=3)&lt;br /&gt;*** malloc[2741]: error: Can't allocate region&lt;br /&gt;&lt;br /&gt;cc1plus: out of memory allocating 1972437344 bytes after a total of 0 bytes&lt;br /&gt;&lt;br /&gt;=&gt; Lösung: Beim Compileraufruf -O2 wegnehmen.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Entweder durch Compilieren außerhalb von MacPorts oder durch Setzen&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;von configure.optflags (im Portfile?) auf einen leeren Wert.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Hintergrund: Optimierung braucht viel Speicherplatz. Bei großen Funktionen sehr viel.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Möglicherweise ist auch ein Bug in cc1plus enthalten (als Bestandteil von GCC 3.3).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Weiterhin: MacPorts applies -O2 to CFLAGS and CXXFLAGS by default, it could be that the bug&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;is only experienced with optimization enabled.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:lucida grande;" &gt;Probleme beim Linken&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Schwerer Fehler (unterschiedliche Definitionen):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;ld: multiple definitions of symbol&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    /usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o)        z.B.: private external definition&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    /usr/lib/libstdc++.6.dylib(single module)           vs.   definition&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;ld: multiple definitions of symbol&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    /usr/lib/gcc/darwin/3.3/libgcc.a(unwind-dw2.o)            private external definition&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    /usr/lib/libgcc_s.1.dylib(unwind-dw2.o)                   definition&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Wenn ich libstdc++.6.dylib deaktiviere startet z.B. Firefox nicht mehr&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Wenn ich libstdc++.a deaktiviere kommt es zum Linker Fehler: ld: can't locate file for: -lstdc++&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;=&gt; Lösung: setze für die .a Dateien einen Link auf die .dylib Dateien.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Warnung:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;ld: warning multiple definitions of symbol&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    /opt/local/lib/libiconv.2.dylib(single module)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    /usr/lib/libiconv.2.dylib(iconv.o)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;ld: warning multiple definitions of symbol&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    /usr/lib/libz.1.dylib(inflate.o)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    /opt/local/lib/libz.1.dylib(inflate.o)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;=&gt; Lösung: setze für die /opt/local/lib Dateien einen Link auf die /usr/lib Dateien.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:lucida grande;" &gt;Problem beim Compilieren der Libraries&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Library "odbc" (erlang-R13B01/lib/odbc)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Command output: odbcserver.c:2257: warning: passing arg 2 of `ei_decode_list_header' from incompatible pointer type&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;odbcserver.c:2260: warning: passing arg 2 of `ei_decode_tuple_header' from incompatible pointer type&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;odbcserver.c:2262: error: `num_param_values' undeclared (first use in this function)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;odbcserver.c:2262: error: `state' undeclared (first use in this function)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Nicht nachzuvollziehen.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;"num_param_values" und "state" sind nicht undeklariert. Es sind formale Parameter.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;=&gt; Lösung: das Builden von Library "odbc" überspringen und hoffen, daß CouchDB sie nicht braucht.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;   "odbc" ist ein ODBC-Server.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;In erlang-R13B01/lib/Makefile:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    pman public_key ssl toolbar tv observer &lt;span style="font-weight: bold;"&gt;odbc&lt;/span&gt; \          # &lt;= "odbc" entfernt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;icu&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;restFP und saveFP&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ld: Undefined symbols: restFP saveFP  =&gt; Lösung:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in source/i18n/Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LIBS = $(LIBICUUC) $(DEFAULT_LIBS) &lt;span style="font-weight: bold;"&gt;/Users/jri/Desktop/libgcc.a&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;in source/layout/Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LIBS = $(LIBICUUC) $(DEFAULT_LIBS) &lt;span style="font-weight: bold;"&gt;/Users/jri/Desktop/libgcc.a&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;in source/layoutex/Makefile:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    LIBS = $(LIBICUUC) $(LIBICULE) $(DEFAULT_LIBS) &lt;span style="font-weight: bold;"&gt;/Users/jri/Desktop/libgcc.a&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;und viele weitere Makefiles ...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in source/text/     viele Unterverzeichnisse mit eigenen Makefiles!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;in source/tools/ctestfw/Makefile&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;Hinweis: hier muß die statische GCC-Library benutzt werden (libgcc.a). Die dynamische (libgcc_s.1.dylib) funktioniert nicht.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:lucida grande;" &gt;libiconv Version inkompatibel&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;dyld: /opt/local/bin/gmake version mismatch for library: /opt/local/lib/libiconv.2.dylib (compatibility version of user: 8.0.0 greater than library's version: 5.0.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;=&gt; Lösung: libiconv per Link auf die ursprüngliche Version aus /opt/local/lib umleiten, die ist neuer.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:lucida grande;font-size:130%;"  &gt;nspr&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;/usr/bin/gcc-3.3 -o prsystem.o -c    -I/opt/local/include -O2 -Wmost -fno-common -O2 -fPIC  -UDEBUG  -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DXP_MACOSX=1 -DHAVE_STRERROR=1  -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I../../../dist/include/nspr -I../../../pr/include -I../../../pr/include/private  prsystem.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;prsystem.c: In function `PR_GetPhysicalMemorySize':&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;prsystem.c:310: error: structure has no member named `max_mem'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;prsystem.c:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;#if defined(DARWIN)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;#include&lt;/span&gt;&lt;mach style="font-family: lucida grande;" h=""&gt; &lt;mach h=""&gt;&lt;br /&gt;#include &lt;mach h=""&gt;&lt;mach h=""&gt;&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Mein Rechner:&lt;br /&gt;/usr/include/mach/host_info.h&lt;br /&gt;&lt;br /&gt;struct host_basic_info {&lt;br /&gt;...&lt;br /&gt;...                         /* kein Feld "max_mem" */&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;www.opensource.apple.com:&lt;br /&gt;/usr/include/mach/host_info.h&lt;br /&gt;&lt;br /&gt;struct host_basic_info_old {    /* &lt;= beachte "old" */ ... ...                         /* Wie bei mir */ };  struct host_basic_info { ... uint64_t        max_mem;    /* actual size of physical memory in bytes */ };  My Darwin Version: 7.9.0  =&gt; Lösung:&lt;br /&gt;&lt;br /&gt;prsystem.c, Line 310:&lt;br /&gt;ändere&lt;br /&gt;bytes = hInfo.max_mem;&lt;br /&gt;in&lt;br /&gt;bytes = 1024 * 1024 * 1024;    /* hInfo.max_mem; */&lt;br /&gt;              /* jri: Darwin 7.9 has no max_mem field in host_basic_info struct */&lt;br /&gt;&lt;br /&gt;Anmerkung: die Zeile könnte auch komplett kommentiert werden, da sowieso&lt;br /&gt;if (result == KERN_SUCCESS)&lt;br /&gt;davor steht.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;spidermonkey&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ld: Undefined symbols: ___eprintf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;=&gt; Lösung:&lt;br /&gt;&lt;br /&gt;in js/src/Makefile.ref:&lt;br /&gt;LDFLAGS        = $(XLDFLAGS) &lt;span style="font-weight: bold;"&gt;/usr/lib/libstdc++.6.dylib&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ld: Undefined symbols: restFP saveFP&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;=&gt; Lösung:&lt;br /&gt;&lt;br /&gt;in js/src/Makefile.ref:&lt;br /&gt;LDFLAGS        = $(XLDFLAGS) /usr/lib/libstdc++.6.dylib &lt;span style="font-weight: bold;"&gt;/Users/jri/Desktop/libgcc.a&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hinweis: hier muß die statische GCC-Library benutzt werden (libgcc.a). Die dynamische (libgcc_s.1.dylib) funktioniert nicht.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;couchdb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;curl too old&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;checking for curl &gt;= 7.15.5... can't find curl &gt;= 7.15.5&lt;br /&gt;configure: error: Library requirements (curl) not met.&lt;br /&gt;&lt;br /&gt;=&gt; Lösung:&lt;br /&gt;sudo port install curl&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;erlang Crach while starting the CouchDB server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;noname:~ jri$ couchdb&lt;br /&gt;kernel-poll not supported; "K" parameter ignored&lt;br /&gt;Apache CouchDB 0.9.0 (LogLevel=info) is starting.&lt;br /&gt;{"init terminating in do_boot",{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{erl_eval,do_apply,5},{erl_eval,exprs,5},{init,start_it,1},{init,start_em,1}]}}&lt;br /&gt;&lt;br /&gt;Crash dump was written to: erl_crash.dump&lt;br /&gt;init terminating in do_boot ()&lt;br /&gt;&lt;br /&gt;=&gt; Lösung: starte couchdb als User "couchdb"&lt;br /&gt;&lt;br /&gt;sudo -u couchdb couchdb&lt;br /&gt;&lt;br /&gt;Hinweis:&lt;br /&gt;CouchDB braucht Schreibzugriff für die Verzeichnisse&lt;br /&gt;/opt/local/var/lib/couchdb/&lt;br /&gt;/opt/local/var/log/couchdb/&lt;br /&gt;&lt;br /&gt;Der User "couchdb" ist bereits eingerichtet und die Rechte dieser Verzeichnisse bereits entsprechend gesetzt.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Notes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Environment Variablen notwendig?&lt;br /&gt;LD_TWOLEVEL_NAMESPACE=true&lt;br /&gt;MACOSX_DEPLOYMENT_TARGET=10.3&lt;br /&gt;=&gt; Offenbar nicht notwendig!&lt;br /&gt;&lt;br /&gt;Environment Variable notwendig?&lt;br /&gt;export LD_FLAGS="-lc /usr/lib/libgcc_s.1.dylib"&lt;br /&gt;=&gt; Keine Auswirkung!&lt;br /&gt;- vielleicht mit -Wl, (nicht probiert)&lt;br /&gt;- -lc müßte weg können (nicht probiert)&lt;br /&gt;Heißt die Variable LDFLAGS ? (ohne _)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Carl Eastlund wrote (Aug 06, 2008):&lt;br /&gt;&lt;br /&gt;I was able to resolve these by adding /usr/lib/libgcc_s.1.dylib to the&lt;br /&gt;link arguments in a few places:&lt;br /&gt;&lt;br /&gt;(paths are relative to the build directory)&lt;br /&gt;&lt;br /&gt;./mred/gc2/Makefile:wx_mac_LIBS = -framework Carbon -framework Cocoa -framework QuickTime -framework AGL -framework OpenGL $(JPEG_A) $(PNG_A) -lz -ldl -lm  -liconv -lc /usr/lib/libgcc_s.1.dylib&lt;br /&gt;./mred/gc2/Makefile:    $(MREDLINKER) $(LDFLAGS) -o ../MrEd3m.app/Contents/MacOS/MrEd3m mrmain.o -Wl,-headerpad_max_install_names -F. -framework PLT_MrEd -framework Carbon -framework Cocoa /usr/lib/libgcc_s.1.dylib&lt;br /&gt;./mred/Makefile:EXTRALDFLAGS_wx_mac = -framework Carbon -framework Cocoa -framework QuickTime -framework AGL -framework OpenGL -lz /usr/lib/libgcc_s.1.dylib&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;lothar.behrens wrote (Jan 19, 2006):&lt;br /&gt;&lt;br /&gt;after realizing similar error messages and their solutions I got rid of these linking errors by&lt;br /&gt;-lc /usr/lib/libgcc.dylib or the like.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/mach&gt;&lt;/mach&gt;&lt;/mach&gt;&lt;/mach&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3285381514267612885-896765172892072090?l=triumphofthenerds.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triumphofthenerds.blogspot.com/feeds/896765172892072090/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://triumphofthenerds.blogspot.com/2009/08/running-couchdb-on-mac-os-x-1039.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3285381514267612885/posts/default/896765172892072090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3285381514267612885/posts/default/896765172892072090'/><link rel='alternate' type='text/html' href='http://triumphofthenerds.blogspot.com/2009/08/running-couchdb-on-mac-os-x-1039.html' title='Running CouchDB on Mac OS X 10.3.9 &quot;Panther&quot;'/><author><name>Jörg Richter</name><uri>http://www.blogger.com/profile/15867270226101227398</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
