<?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/"
	>
<channel>
	<title>Comments on: How to setup Ruby and new Oracle Instant Client on Leopard</title>
	<atom:link href="http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/</link>
	<description>About Ruby, Oracle, Mac and others</description>
	<pubDate>Wed, 19 Nov 2008 10:58:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/#comment-300</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Wed, 16 Jul 2008 10:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=24#comment-300</guid>
		<description>When you do "sudo ruby setup.rb" then sudo is not inheriting environment variables from your current environment (you can check this if you do "sudo env").

Therefore 1) either do "ruby setup.rb config" and "make" with your user (without sudo) and then afterwards just do "sudo make install" or 2) do at first "sudo su - root" and then set all necessary environment variables as root and then run "ruby setub.rb config".</description>
		<content:encoded><![CDATA[<p>When you do &#8220;sudo ruby setup.rb&#8221; then sudo is not inheriting environment variables from your current environment (you can check this if you do &#8220;sudo env&#8221;).</p>
<p>Therefore 1) either do &#8220;ruby setup.rb config&#8221; and &#8220;make&#8221; with your user (without sudo) and then afterwards just do &#8220;sudo make install&#8221; or 2) do at first &#8220;sudo su - root&#8221; and then set all necessary environment variables as root and then run &#8220;ruby setub.rb config&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matias</title>
		<link>http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/#comment-299</link>
		<dc:creator>Matias</dc:creator>
		<pubDate>Wed, 16 Jul 2008 03:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=24#comment-299</guid>
		<description>I've try setting the DYDL_LIBRARY_PATH too:
export DYDL_LIBRARY_PATH="/usr/local/oracle/instantclient_10_2"

same error message...</description>
		<content:encoded><![CDATA[<p>I&#8217;ve try setting the DYDL_LIBRARY_PATH too:<br />
export DYDL_LIBRARY_PATH=&#8221;/usr/local/oracle/instantclient_10_2&#8243;</p>
<p>same error message&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matias</title>
		<link>http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/#comment-298</link>
		<dc:creator>Matias</dc:creator>
		<pubDate>Wed, 16 Jul 2008 03:12:16 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=24#comment-298</guid>
		<description>Hi.
I'm getting this annoying error when i do the sudo ruby setup.rb config command:


"error messages:
Set the environment variable ORACLE_HOME if Oracle Full Client.
Append the path of Oracle client libraries to DYLD_LIBRARY_PATH if Oracle Instant Client."

Well, i've got the Instant Client and i guess that all enviroments variables are OK (i did just like you write).
Dont know what else to do. Any tips?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi.<br />
I&#8217;m getting this annoying error when i do the sudo ruby setup.rb config command:</p>
<p>&#8220;error messages:<br />
Set the environment variable ORACLE_HOME if Oracle Full Client.<br />
Append the path of Oracle client libraries to DYLD_LIBRARY_PATH if Oracle Instant Client.&#8221;</p>
<p>Well, i&#8217;ve got the Instant Client and i guess that all enviroments variables are OK (i did just like you write).<br />
Dont know what else to do. Any tips?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Hardy</title>
		<link>http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/#comment-291</link>
		<dc:creator>Brian Hardy</dc:creator>
		<pubDate>Fri, 11 Jul 2008 19:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=24#comment-291</guid>
		<description>I'd just like to say, thanks! I had all of this working already, but the UTF8 problem was really throwing me for a loop. Your suggestion to set NLS_LANG totally fixed it, and made my afternoon.</description>
		<content:encoded><![CDATA[<p>I&#8217;d just like to say, thanks! I had all of this working already, but the UTF8 problem was really throwing me for a loop. Your suggestion to set NLS_LANG totally fixed it, and made my afternoon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gene</title>
		<link>http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/#comment-253</link>
		<dc:creator>Gene</dc:creator>
		<pubDate>Wed, 28 May 2008 15:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=24#comment-253</guid>
		<description>Just confirming that the Oracle Instant Client does in fact require Leopard. When I try to get it working on Tiger (version 10.4.11) I get an error that says "Bus error".</description>
		<content:encoded><![CDATA[<p>Just confirming that the Oracle Instant Client does in fact require Leopard. When I try to get it working on Tiger (version 10.4.11) I get an error that says &#8220;Bus error&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flemming Bengtsson</title>
		<link>http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/#comment-209</link>
		<dc:creator>Flemming Bengtsson</dc:creator>
		<pubDate>Mon, 28 Apr 2008 14:21:47 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=24#comment-209</guid>
		<description>Found a solution...

Problem was that I had two instant client installed, one for when I was running the project in Xcode and one inside the application bundle used when launched from the Finder as a standalone app.

I had forgot to replace the instant client in the application bundle, it now works flawlessly!</description>
		<content:encoded><![CDATA[<p>Found a solution&#8230;</p>
<p>Problem was that I had two instant client installed, one for when I was running the project in Xcode and one inside the application bundle used when launched from the Finder as a standalone app.</p>
<p>I had forgot to replace the instant client in the application bundle, it now works flawlessly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/#comment-208</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Fri, 25 Apr 2008 19:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=24#comment-208</guid>
		<description>When I was testing Oracle Instant Client beta then there was information that it will run just on Leopard - initially I tried to use it on Tiger but was unable to do it (got similar error messages).

So I assume that final release of new Instant Client also requires Leopard (I will ask Oracle to add such notice to download pages if this really is so).</description>
		<content:encoded><![CDATA[<p>When I was testing Oracle Instant Client beta then there was information that it will run just on Leopard - initially I tried to use it on Tiger but was unable to do it (got similar error messages).</p>
<p>So I assume that final release of new Instant Client also requires Leopard (I will ask Oracle to add such notice to download pages if this really is so).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean Holdren</title>
		<link>http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/#comment-207</link>
		<dc:creator>Dean Holdren</dc:creator>
		<pubDate>Fri, 25 Apr 2008 15:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=24#comment-207</guid>
		<description>couldn't get this to work on Tiger with built-from-source ruby....
mkmf.log:


./conftest
have_func: checking for OCIInitialize() in oci.h... -------------------- no

"gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.11.1 -I/usr/local/src/ruby-oci8-1.0.0/ext/oci8 -g -O2 -fno-common -pipe -fno-common -I/usr/local/lib/oracle/instantclient_10_2/sdk/include conftest.c -L"." -L"/usr/local/lib" -L. -L/usr/local/lib -L/usr/local/lib/oracle/instantclient_10_2 -lclntsh -lruby-static -L/usr/local/lib -L/usr/local/lib/oracle/instantclient_10_2 -lclntsh -lpthread -ldl -lobjc "
/usr/bin/ld: /usr/local/lib/oracle/instantclient_10_2/libclntsh.dylib load command 8 unknown cmd field
/usr/bin/ld: /usr/local/lib/oracle/instantclient_10_2/libclntsh.dylib load command 8 unknown cmd field
collect2: ld returned 1 exit status</description>
		<content:encoded><![CDATA[<p>couldn&#8217;t get this to work on Tiger with built-from-source ruby&#8230;.<br />
mkmf.log:</p>
<p>./conftest<br />
have_func: checking for OCIInitialize() in oci.h&#8230; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; no</p>
<p>&#8220;gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.11.1 -I/usr/local/src/ruby-oci8-1.0.0/ext/oci8 -g -O2 -fno-common -pipe -fno-common -I/usr/local/lib/oracle/instantclient_10_2/sdk/include conftest.c -L&#8221;.&#8221; -L&#8221;/usr/local/lib&#8221; -L. -L/usr/local/lib -L/usr/local/lib/oracle/instantclient_10_2 -lclntsh -lruby-static -L/usr/local/lib -L/usr/local/lib/oracle/instantclient_10_2 -lclntsh -lpthread -ldl -lobjc &#8221;<br />
/usr/bin/ld: /usr/local/lib/oracle/instantclient_10_2/libclntsh.dylib load command 8 unknown cmd field<br />
/usr/bin/ld: /usr/local/lib/oracle/instantclient_10_2/libclntsh.dylib load command 8 unknown cmd field<br />
collect2: ld returned 1 exit status</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Larson</title>
		<link>http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/#comment-205</link>
		<dc:creator>Matthew Larson</dc:creator>
		<pubDate>Fri, 25 Apr 2008 11:16:30 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=24#comment-205</guid>
		<description>On my MacBook Pro, I did not have to do the symbolic link for libocci.dylib.10.1, also you do not need the tnsnames.ora for instantclient and thus do not need the TNS_ADMIN env.</description>
		<content:encoded><![CDATA[<p>On my MacBook Pro, I did not have to do the symbolic link for libocci.dylib.10.1, also you do not need the tnsnames.ora for instantclient and thus do not need the TNS_ADMIN env.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/#comment-204</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Fri, 25 Apr 2008 06:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=24#comment-204</guid>
		<description>There should be no problem if libclntsh.dylib is symbolic link - if any program will try to load this file then the filesystem will resolve this symbolic link and from other programs perspective there should be no difference.

Yet another idea - if previously you had PPC libraries and if you have not restarted your computer after installation of Intel libraries then probably old PPC shared libraries are still sitting in memory. So try to remove old PPC libraries to some other directory where nobody will see it and then restart computer to ensure that after restart new Intel libraries will be loaded in memory.</description>
		<content:encoded><![CDATA[<p>There should be no problem if libclntsh.dylib is symbolic link - if any program will try to load this file then the filesystem will resolve this symbolic link and from other programs perspective there should be no difference.</p>
<p>Yet another idea - if previously you had PPC libraries and if you have not restarted your computer after installation of Intel libraries then probably old PPC shared libraries are still sitting in memory. So try to remove old PPC libraries to some other directory where nobody will see it and then restart computer to ensure that after restart new Intel libraries will be loaded in memory.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
