• CV
  • Blog
  • Contacts
    • Facebook
    • LinkedIn
    • GitHub
    • Twitter
    • Google+
    • LiveJournal
    • VK
  • РусскийРусский

Anamnesis

of a kooky software developer with megalomaniacal inferiority complex

x86

Building 32-bit ZooKeeper Python bindings in 64-bit Mac OS X

10.12.2011 by Sergey Vasilyev Leave a Comment

If you need to build ZooKeeper Python bindings in 32-bit mode on 64-bit Mac OS X, it can be hard to do since ZooKeeper building scripts ignore the usual “-arch” flags for the compiler. But there is a simple workaround for this. And here it is.

Why?

If you have Mac OS X and you need Oracle InstantClient for your work as I do, you are in trouble: the 64-bit InstantClient crashes with “segfault” error code 11 on 64-bit Mac OS X. The only solution is to use 32-bit InstantClient, which does work.

But this workaround entails to every single bit of software, that uses InstantClient, should be 32-bit too. For example, if you code Python as I do, you need cx_Oracle to be 32-bit to work with 32-bit InstantClient (64-bit cx_Oracle binary part cannot work with 32-bit InstantClient libraries, obviously). And if you have 32-bit cx_Oracle, you ought to have 32-bit Python to load that 32-bit cx_Oracle. And if you have 32-bit Python, you ought to make all other binary libraries to be 32-bit. Thank you, Oracle, for this fun!

And if you use ZooKeeper together with InstantClient as I do, you have to build 32-bit ZooKeeper binaries and libraries. Well, lets work up to it from the beginning.

[Read more…]

Posted in: Development Tagged: 32-bit, 64-bit, apache, bindings, i386, instantclient, mac os x, macosx, oracle, python, x86, zookeeper

Categories

Development Job Knowhows Life Hacks Management Nothings Traveling Word of the Day

Tags

amazon apple archive aws backup blog budget business canada capslock career cloud development document english expenses experiment file image iq job keyboard keyremap4macbook language layout lifehack macbook mac os x macosx management password pckeyboardhack photo psychology python russia russian startup storage success team toronto us windows workon

Copyright © 2025 Anamnesis.

Omega WordPress Theme by ThemeHall