{
  "attachments": [],
  "comments_archived": true,
  "date": "2003-01-02T06:30:54.000Z",
  "layout": "post",
  "title": "Stumbling through compiling Standalone ZODB for Mac OS X",
  "wordpress_id": 345,
  "wordpress_slug": "ooocgb",
  "wordpress_url": "http://www.decafbad.com/blog/?p=345",
  "year": "2003",
  "month": "01",
  "day": "02",
  "isDir": false,
  "slug": "ooocgb",
  "type": "entry",
  "postName": "2003-01-02-ooocgb",
  "html": "<p>Just in case this wasn't common knowledge, it seems there's a bit of a boo-boo in Jaguar's installation of Python that sticks it head up when one tries to compile extentions (like, oh say, the <a href=\"http://www.zope.org/Products/StandaloneZODB\" target=\"_top\">Standalone ZODB</a>).</p>\n<p>Line 62 of <code>/usr/lib/python2.2/config/Makefile</code> reads:</p>\n<p><code>LDFLAGS=        -arch i386 -arch ppc</code></p>\n<p>But, I <strong>think</strong> should read:</p>\n<p><code>LDFLAGS=        -arch ppc</code></p>\n<p>Making this change appears to have gotten the thing compiling, though it may also cause my iBook to eventually self-format since I barely understand everything involved.</p>\n<p>Ugh, though now that everything's compiled without hitch, the test script goes belly up with a bus error.  Time to go back googling to find a solution or somewhere to whine.  I may also swap back into Java, since I like Jena better than anything I've found in Python for <a href=\"http://www.decafbad.com/twiki/bin/view/Main/RDF\">RDF</a> support.</p>\n<!--more-->\n\n\n<p>shortname=ooocgb</p>\n<div id=\"comments\" class=\"comments archived-comments\"><h3>Archived Comments</h3>\n<ul class=\"comments\">\n<li class=\"comment\" id=\"comment-221088613\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://www.plaidworks.com/chuqui/blog\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=082c6623b6c3a0f1be6ddb5280494401&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://www.plaidworks.com/chuqui/blog\">chuqui</a>\n</div>\n\n\n<p><a href=\"#comment-221088613\" class=\"permalink\"><time datetime=\"2003-01-02T01:55:08\">2003-01-02T01:55:08</time></a></p>\n</div>\n\n\n<div class=\"content\">you mean .../config/Makefile</div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221088617\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://www.decafbad.com\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=2ac2cffd36ada8c734b90e02a1e5c1ac&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://www.decafbad.com\">l.m.orchard</a>\n</div>\n\n\n<p><a href=\"#comment-221088617\" class=\"permalink\"><time datetime=\"2003-01-02T02:05:34\">2003-01-02T02:05:34</time></a></p>\n</div>\n\n\n<div class=\"content\">D'oht!  Why yes, you are correct!</div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221088619\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://www.plaidworks.com/chuqui/blog\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=082c6623b6c3a0f1be6ddb5280494401&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://www.plaidworks.com/chuqui/blog\">chuqui</a>\n</div>\n\n\n<p><a href=\"#comment-221088619\" class=\"permalink\"><time datetime=\"2003-01-02T02:34:11\">2003-01-02T02:34:11</time></a></p>\n</div>\n\n\n<div class=\"content\">by the way, thanks for finding the problem I was looking for -- at the time I was looking for it. independently.</div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221088621\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://barry.warsaw.us\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=621b3da0ceca8ee796c1ec8dfd699722&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://barry.warsaw.us\">barry</a>\n</div>\n\n\n<p><a href=\"#comment-221088621\" class=\"permalink\"><time datetime=\"2003-01-02T03:57:27\">2003-01-02T03:57:27</time></a></p>\n</div>\n\n\n<div class=\"content\">BTW, I just did a from-source build of Python 2.2.2 and /usr/local/lib/python2.2/config/Makefile doesn't seem to have the bogus LDFLAGS entry.  In fact it doesn't seem to have anything for LDFLAGS!\nNear as I can tell building MM2.1 from Python 2.2.2 source-distro works just fine.\nThis looks like an Apple goof?  Chuq, who manages the free software offerings for MacOSX and how would we get in touch with them?</div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221088623\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://lee-phillips.org\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=53fa64d865d38a5412e74a654346769d&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://lee-phillips.org\">Lee Phillips</a>\n</div>\n\n\n<p><a href=\"#comment-221088623\" class=\"permalink\"><time datetime=\"2003-01-17T14:09:23\">2003-01-17T14:09:23</time></a></p>\n</div>\n\n\n<div class=\"content\">I went through this - trying to get ZODB standalone working on OSX. After I got the bus error, I was informed that the problem is the python version: 2.2 won't work with any part of Zope. You can either downgrade to python 2.1 (I don't want to either) or see if a more recent python will work.</div>\n\n\n</li>\n</ul>\n\n\n</div>\n\n\n",
  "body": "Just in case this wasn't common knowledge, it seems there's a bit of a boo-boo in Jaguar's installation of Python that sticks it head up when one tries to compile extentions (like, oh say, the <a href=\"http://www.zope.org/Products/StandaloneZODB\" target=\"_top\">Standalone ZODB</a>).\r\n<br /><br />\r\nLine 62 of <code>/usr/lib/python2.2/config/Makefile</code> reads:\r\n<br /><br />\r\n<code>LDFLAGS=        -arch i386 -arch ppc</code>\r\n<br /><br />\r\nBut, I <strong>think</strong> should read:\r\n<br /><br />\r\n<code>LDFLAGS=        -arch ppc</code>\r\n<br /><br />\r\nMaking this change appears to have gotten the thing compiling, though it may also cause my iBook to eventually self-format since I barely understand everything involved.\r\n<br /><br />\r\nUgh, though now that everything's compiled without hitch, the test script goes belly up with a bus error.  Time to go back googling to find a solution or somewhere to whine.  I may also swap back into Java, since I like Jena better than anything I've found in Python for <a href=\"http://www.decafbad.com/twiki/bin/view/Main/RDF\">RDF</a> support.\r\n<!--more-->\r\nshortname=ooocgb\r\n\r\n<div id=\"comments\" class=\"comments archived-comments\">\r\n            <h3>Archived Comments</h3>\r\n            \r\n        <ul class=\"comments\">\r\n            \r\n        <li class=\"comment\" id=\"comment-221088613\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://www.plaidworks.com/chuqui/blog\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=082c6623b6c3a0f1be6ddb5280494401&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://www.plaidworks.com/chuqui/blog\">chuqui</a>\r\n                </div>\r\n                <a href=\"#comment-221088613\" class=\"permalink\"><time datetime=\"2003-01-02T01:55:08\">2003-01-02T01:55:08</time></a>\r\n            </div>\r\n            <div class=\"content\">you mean .../config/Makefile</div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221088617\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://www.decafbad.com\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=2ac2cffd36ada8c734b90e02a1e5c1ac&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://www.decafbad.com\">l.m.orchard</a>\r\n                </div>\r\n                <a href=\"#comment-221088617\" class=\"permalink\"><time datetime=\"2003-01-02T02:05:34\">2003-01-02T02:05:34</time></a>\r\n            </div>\r\n            <div class=\"content\">D'oht!  Why yes, you are correct!</div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221088619\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://www.plaidworks.com/chuqui/blog\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=082c6623b6c3a0f1be6ddb5280494401&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://www.plaidworks.com/chuqui/blog\">chuqui</a>\r\n                </div>\r\n                <a href=\"#comment-221088619\" class=\"permalink\"><time datetime=\"2003-01-02T02:34:11\">2003-01-02T02:34:11</time></a>\r\n            </div>\r\n            <div class=\"content\">by the way, thanks for finding the problem I was looking for -- at the time I was looking for it. independently.</div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221088621\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://barry.warsaw.us\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=621b3da0ceca8ee796c1ec8dfd699722&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://barry.warsaw.us\">barry</a>\r\n                </div>\r\n                <a href=\"#comment-221088621\" class=\"permalink\"><time datetime=\"2003-01-02T03:57:27\">2003-01-02T03:57:27</time></a>\r\n            </div>\r\n            <div class=\"content\">BTW, I just did a from-source build of Python 2.2.2 and /usr/local/lib/python2.2/config/Makefile doesn't seem to have the bogus LDFLAGS entry.  In fact it doesn't seem to have anything for LDFLAGS!\r\n\r\nNear as I can tell building MM2.1 from Python 2.2.2 source-distro works just fine.\r\n\r\nThis looks like an Apple goof?  Chuq, who manages the free software offerings for MacOSX and how would we get in touch with them?</div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221088623\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://lee-phillips.org\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=53fa64d865d38a5412e74a654346769d&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://lee-phillips.org\">Lee Phillips</a>\r\n                </div>\r\n                <a href=\"#comment-221088623\" class=\"permalink\"><time datetime=\"2003-01-17T14:09:23\">2003-01-17T14:09:23</time></a>\r\n            </div>\r\n            <div class=\"content\">I went through this - trying to get ZODB standalone working on OSX. After I got the bus error, I was informed that the problem is the python version: 2.2 won't work with any part of Zope. You can either downgrade to python 2.1 (I don't want to either) or see if a more recent python will work.</div>\r\n            \r\n        </li>\r\n    \r\n        </ul>\r\n    \r\n        </div>\r\n    ",
  "parentPath": "./content/posts/archives/2003",
  "path": "2003/01/02/ooocgb",
  "summary": "Just in case this wasn't common knowledge, it seems there's a bit of a boo-boo in Jaguar's installation of Python that sticks it head up when one tries to compile extentions (like, oh say, the Standalone ZODB).\nLine 62 of /usr/lib/python2.2/config/Makefile reads:\nLDFLAGS=        -arch i386 -arch ppc\nBut, I think should read:\nLDFLAGS=        -arch ppc\nMaking this change appears to have gotten the thing compiling, though it may also cause my iBook to eventually self-format since I barely understand everything involved.\nUgh, though now that everything's compiled without hitch, the test script goes belly up with a bus error.  Time to go back googling to find a solution or somewhere to whine.  I may also swap back into Java, since I like Jena better than anything I've found in Python for RDF support.",
  "needsBuild": true,
  "prevPostPath": "2003/01/01/ooocga",
  "prevPostTitle": "MovableType gets first class treatment for text formatting",
  "nextPostPath": "2003/01/02/ooocgc",
  "nextPostTitle": "Python RDF repository wanted for web proxy metadata harvester"
}