Tuesday, May 24, 2011

OsX Lion, cx_Oracle, and pain

Fought all afternoon trying to get cx_Oracle to play nicely with OsX Lion DP3.  It seems that the x86_64 libclntsh.dylib.10.1 library is segfaulting for some reason in Lion.  Finally figured out a solution - install only the i386 libraries, and then force OsX to prefer the i386 library version (though this is a universal setting, so it is not the best solution).

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes

or via shell var:

export VERSIONER_PYTHON_PREFER_32_BIT=yes