<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Build and install cx_Oracle on MacOS X Leopard Intel</title>
	<atom:link href="http://codingnaked.wordpress.com/2008/05/07/build-and-install-cx_oracle-on-macos-x-leopard-intel/feed/" rel="self" type="application/rss+xml" />
	<link>http://codingnaked.wordpress.com/2008/05/07/build-and-install-cx_oracle-on-macos-x-leopard-intel/</link>
	<description>My thoughts on programming</description>
	<lastBuildDate>Sat, 24 Oct 2009 19:22:30 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: catfishlar</title>
		<link>http://codingnaked.wordpress.com/2008/05/07/build-and-install-cx_oracle-on-macos-x-leopard-intel/#comment-63</link>
		<dc:creator>catfishlar</dc:creator>
		<pubDate>Sat, 24 Oct 2009 19:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://codingnaked.wordpress.com/?p=5#comment-63</guid>
		<description>jaythomas is it possible you did not change the 2.5 in the command?  Did you use the command as brad had it or did you get it from the results of the build?


Using Stackless 2.6.2 on a MacbookPro OSX Leopard. I was using virtualenv and simply ran easy_install cx_Oracle.

When this was done I had the __divdi3 problem per above.

I then went to another directory and downloaded the cx_oracle tar file per above.  Created a subdirectory bob.  Added bob to my PYTHONPATH (export PYTHONPATH=${PYTHONPATH}:./bob/)  then ran:

python setup.py install --install-lib ./bob/

looking back in the output I see.  
creating build/lib.macosx-10.3-fat-2.6-10g
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.6-10g/cx_Oracle.o -L/Applications/instantclient/ohome/lib -L/Applications/instantclient/ohome -lclntsh -o build/lib.macosx-10.3-fat-2.6-10g/cx_Oracle.so

Looking in the bob directory there is an egg that is 102871 bytes long.  

running this gcc command with &quot;-arch ppc&quot; taken out... 
then rerunning my install to ./bob/...  I get an egg now that is 51521 bytes long.  

I then moved that egg to where easy_install put the bad egg :)

It a bit longer than it needs to be. But I wanted to make sure I was not introducing additional path problems etc.</description>
		<content:encoded><![CDATA[<p>jaythomas is it possible you did not change the 2.5 in the command?  Did you use the command as brad had it or did you get it from the results of the build?</p>
<p>Using Stackless 2.6.2 on a MacbookPro OSX Leopard. I was using virtualenv and simply ran easy_install cx_Oracle.</p>
<p>When this was done I had the __divdi3 problem per above.</p>
<p>I then went to another directory and downloaded the cx_oracle tar file per above.  Created a subdirectory bob.  Added bob to my PYTHONPATH (export PYTHONPATH=${PYTHONPATH}:./bob/)  then ran:</p>
<p>python setup.py install &#8211;install-lib ./bob/</p>
<p>looking back in the output I see.<br />
creating build/lib.macosx-10.3-fat-2.6-10g<br />
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.6-10g/cx_Oracle.o -L/Applications/instantclient/ohome/lib -L/Applications/instantclient/ohome -lclntsh -o build/lib.macosx-10.3-fat-2.6-10g/cx_Oracle.so</p>
<p>Looking in the bob directory there is an egg that is 102871 bytes long.  </p>
<p>running this gcc command with &#8220;-arch ppc&#8221; taken out&#8230;<br />
then rerunning my install to ./bob/&#8230;  I get an egg now that is 51521 bytes long.  </p>
<p>I then moved that egg to where easy_install put the bad egg <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It a bit longer than it needs to be. But I wanted to make sure I was not introducing additional path problems etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaythomas</title>
		<link>http://codingnaked.wordpress.com/2008/05/07/build-and-install-cx_oracle-on-macos-x-leopard-intel/#comment-62</link>
		<dc:creator>jaythomas</dc:creator>
		<pubDate>Mon, 19 Oct 2009 19:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://codingnaked.wordpress.com/?p=5#comment-62</guid>
		<description>For what it&#039;s worth, I didn&#039;t run into the Symbol not found: ___divdi3 problem until I tried installing python 2.6, and Yaroslav&#039;s fix did not work for me.

When I reverted back to 2.5 (that is, the OSX default install), the problem went away.</description>
		<content:encoded><![CDATA[<p>For what it&#8217;s worth, I didn&#8217;t run into the Symbol not found: ___divdi3 problem until I tried installing python 2.6, and Yaroslav&#8217;s fix did not work for me.</p>
<p>When I reverted back to 2.5 (that is, the OSX default install), the problem went away.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bradmontgomery</title>
		<link>http://codingnaked.wordpress.com/2008/05/07/build-and-install-cx_oracle-on-macos-x-leopard-intel/#comment-61</link>
		<dc:creator>bradmontgomery</dc:creator>
		<pubDate>Wed, 07 Oct 2009 16:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://codingnaked.wordpress.com/?p=5#comment-61</guid>
		<description>I&#039;m trying to get cx_Oracle-5.0.1 built against the instant client 10.2.0.4 (instantclient-basic-10.2.0.4.0-macosx-x86.zip and instantclient-sdk-10.2.0.4.0-macosx-x86.zip) on OS X 10.5.8 with Python 2.5.1, and I&#039;m running across the same problem as  Yaroslav Bulatov.  

Luckily, his suggestion works for me.  After running &quot;python setup.py build&quot; look for the call to gcc, remove the &quot;-arch ppc&quot; option, and run that command again.  For me this was:

gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.5-10g/cx_Oracle.o -L$ORACLE_HOME/lib -L$ORACLE_HOME -lclntsh -o build/lib.macosx-10.3-fat-2.5-10g/cx_Oracle.so

Then running &quot;python setup.py install&quot; works as expected.

Thanks for the article and the comments!</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to get cx_Oracle-5.0.1 built against the instant client 10.2.0.4 (instantclient-basic-10.2.0.4.0-macosx-x86.zip and instantclient-sdk-10.2.0.4.0-macosx-x86.zip) on OS X 10.5.8 with Python 2.5.1, and I&#8217;m running across the same problem as  Yaroslav Bulatov.  </p>
<p>Luckily, his suggestion works for me.  After running &#8220;python setup.py build&#8221; look for the call to gcc, remove the &#8220;-arch ppc&#8221; option, and run that command again.  For me this was:</p>
<p>gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.5-10g/cx_Oracle.o -L$ORACLE_HOME/lib -L$ORACLE_HOME -lclntsh -o build/lib.macosx-10.3-fat-2.5-10g/cx_Oracle.so</p>
<p>Then running &#8220;python setup.py install&#8221; works as expected.</p>
<p>Thanks for the article and the comments!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kashif Ali</title>
		<link>http://codingnaked.wordpress.com/2008/05/07/build-and-install-cx_oracle-on-macos-x-leopard-intel/#comment-21</link>
		<dc:creator>Kashif Ali</dc:creator>
		<pubDate>Thu, 05 Feb 2009 19:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://codingnaked.wordpress.com/?p=5#comment-21</guid>
		<description>Hi,

I have created an updated HowTo for version 5.0 of the cx_Oracle module. 

&lt;a href=&quot;http://wiki.unixcraft.com/display/MainPage/Install+Oracle+(cx_Oracle)+module+for+Python&quot; rel=&quot;nofollow&quot;&gt;http://wiki.unixcraft.com/display/MainPage/Install+Oracle+(cx_Oracle)+module+for+Python&lt;/a&gt;

Regards

Kashif</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have created an updated HowTo for version 5.0 of the cx_Oracle module. </p>
<p><a href="http://wiki.unixcraft.com/display/MainPage/Install+Oracle+(cx_Oracle)+module+for+Python" rel="nofollow">http://wiki.unixcraft.com/display/MainPage/Install+Oracle+(cx_Oracle)+module+for+Python</a></p>
<p>Regards</p>
<p>Kashif</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymous</title>
		<link>http://codingnaked.wordpress.com/2008/05/07/build-and-install-cx_oracle-on-macos-x-leopard-intel/#comment-18</link>
		<dc:creator>anonymous</dc:creator>
		<pubDate>Sat, 29 Nov 2008 07:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://codingnaked.wordpress.com/?p=5#comment-18</guid>
		<description>THANK YOU for this post it has saved me TONS of time with this darn library.  I had similar issues in Linux and had to do the same things to get this working.  Apparently whomever is in charge of of cx_Oracle needs a bit more cross training and/or testing.</description>
		<content:encoded><![CDATA[<p>THANK YOU for this post it has saved me TONS of time with this darn library.  I had similar issues in Linux and had to do the same things to get this working.  Apparently whomever is in charge of of cx_Oracle needs a bit more cross training and/or testing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rima</title>
		<link>http://codingnaked.wordpress.com/2008/05/07/build-and-install-cx_oracle-on-macos-x-leopard-intel/#comment-17</link>
		<dc:creator>Rima</dc:creator>
		<pubDate>Sun, 26 Oct 2008 13:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://codingnaked.wordpress.com/?p=5#comment-17</guid>
		<description>i am getting the same error what Yaroslav was getting but i am getting this while connecting to oracle from lisp using a package called clsql. How do i fix it in this case??</description>
		<content:encoded><![CDATA[<p>i am getting the same error what Yaroslav was getting but i am getting this while connecting to oracle from lisp using a package called clsql. How do i fix it in this case??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yaroslav Bulatov</title>
		<link>http://codingnaked.wordpress.com/2008/05/07/build-and-install-cx_oracle-on-macos-x-leopard-intel/#comment-15</link>
		<dc:creator>Yaroslav Bulatov</dc:creator>
		<pubDate>Fri, 25 Jul 2008 00:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://codingnaked.wordpress.com/?p=5#comment-15</guid>
		<description>Final comment, the MacOS error was because of an incorrect flag in the linker command. The way to fix it is to do python setup.py build, then execute the fixed linker command manually, ie

gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.5-10g/cx_Oracle.o -L/Applications/instantclient_10_2/lib -L/Applications/instantclient_10_2 -lclntsh -o build/lib.macosx-10.3-i386-2.5-10g/cx_Oracle.so

then do python setup.py install</description>
		<content:encoded><![CDATA[<p>Final comment, the MacOS error was because of an incorrect flag in the linker command. The way to fix it is to do python setup.py build, then execute the fixed linker command manually, ie</p>
<p>gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.5-10g/cx_Oracle.o -L/Applications/instantclient_10_2/lib -L/Applications/instantclient_10_2 -lclntsh -o build/lib.macosx-10.3-i386-2.5-10g/cx_Oracle.so</p>
<p>then do python setup.py install</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yaroslav Bulatov</title>
		<link>http://codingnaked.wordpress.com/2008/05/07/build-and-install-cx_oracle-on-macos-x-leopard-intel/#comment-14</link>
		<dc:creator>Yaroslav Bulatov</dc:creator>
		<pubDate>Wed, 23 Jul 2008 19:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://codingnaked.wordpress.com/?p=5#comment-14</guid>
		<description>Follow-up note, previous errors were because I didn&#039;t source my .profile file, when I did, it found dyld, but got a different error (note, the error comes up when I start python and do &quot;import cx_Oracle&quot;)

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/cx_Oracle.so, 2): Symbol not found: ___divdi3
  Referenced from: /Applications/instantclient_10_2/libclntsh.dylib.10.1
  Expected in: flat namespace</description>
		<content:encoded><![CDATA[<p>Follow-up note, previous errors were because I didn&#8217;t source my .profile file, when I did, it found dyld, but got a different error (note, the error comes up when I start python and do &#8220;import cx_Oracle&#8221;)</p>
<p>ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/cx_Oracle.so, 2): Symbol not found: ___divdi3<br />
  Referenced from: /Applications/instantclient_10_2/libclntsh.dylib.10.1<br />
  Expected in: flat namespace</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yaroslav Bulatov</title>
		<link>http://codingnaked.wordpress.com/2008/05/07/build-and-install-cx_oracle-on-macos-x-leopard-intel/#comment-13</link>
		<dc:creator>Yaroslav Bulatov</dc:creator>
		<pubDate>Wed, 23 Jul 2008 19:11:53 +0000</pubDate>
		<guid isPermaLink="false">http://codingnaked.wordpress.com/?p=5#comment-13</guid>
		<description>I followed the instructions by have trouble with DYLD library. It seems like the path to the library is hardwired to point to some location on /scratch. If I do symbolic link at that location, I get &quot;Reason: no suitable image found&quot;

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/cx_Oracle.so, 2): Library not loaded: /scratch/plebld/208/rdbms/lib/libclntsh.dylib.10.1
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/cx_Oracle.so
  Reason: image not found

---
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/cx_Oracle.so, 2): Library not loaded: /scratch/plebld/208/rdbms/lib/libclntsh.dylib.10.1
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/cx_Oracle.so
  Reason: no suitable image found.  Did find:
	/scratch/plebld/208/rdbms/lib/libclntsh.dylib.10.1: stat() failed with errno=62</description>
		<content:encoded><![CDATA[<p>I followed the instructions by have trouble with DYLD library. It seems like the path to the library is hardwired to point to some location on /scratch. If I do symbolic link at that location, I get &#8220;Reason: no suitable image found&#8221;</p>
<p>ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/cx_Oracle.so, 2): Library not loaded: /scratch/plebld/208/rdbms/lib/libclntsh.dylib.10.1<br />
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/cx_Oracle.so<br />
  Reason: image not found</p>
<p>&#8212;<br />
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/cx_Oracle.so, 2): Library not loaded: /scratch/plebld/208/rdbms/lib/libclntsh.dylib.10.1<br />
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/cx_Oracle.so<br />
  Reason: no suitable image found.  Did find:<br />
	/scratch/plebld/208/rdbms/lib/libclntsh.dylib.10.1: stat() failed with errno=62</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://codingnaked.wordpress.com/2008/05/07/build-and-install-cx_oracle-on-macos-x-leopard-intel/#comment-12</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Mon, 14 Jul 2008 15:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://codingnaked.wordpress.com/?p=5#comment-12</guid>
		<description>worked! thx!</description>
		<content:encoded><![CDATA[<p>worked! thx!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
