<?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: Ruby/Python and DB2 Drivers	</title>
	<atom:link href="https://programmingzen.com/rubypython-and-db2-drivers/feed/" rel="self" type="application/rss+xml" />
	<link>https://programmingzen.com/rubypython-and-db2-drivers/</link>
	<description>Meditations on programming, startups, and technology</description>
	<lastBuildDate>Fri, 18 May 2018 15:44:05 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Using the IBM_DB Ruby gem with DB2 &#8211; DataGeek.blog		</title>
		<link>https://programmingzen.com/rubypython-and-db2-drivers/#comment-29300</link>

		<dc:creator><![CDATA[Using the IBM_DB Ruby gem with DB2 &#8211; DataGeek.blog]]></dc:creator>
		<pubDate>Fri, 18 May 2018 15:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/rubypython-and-db2-drivers/#comment-29300</guid>

					<description><![CDATA[[&#8230;] install ~db2inst2/sqllib/ruby64/ibm_db-2.5.11.gem as root. Don&#8217;t make my mistake &#8211; use the proper instructions on installing the gem. That also happens to be by one of my favorite authors on technical blogging [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] install ~db2inst2/sqllib/ruby64/ibm_db-2.5.11.gem as root. Don&#8217;t make my mistake &#8211; use the proper instructions on installing the gem. That also happens to be by one of my favorite authors on technical blogging [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Using the IBM_DB Ruby gem with DB2 - IBM DB2 - IBM DB2 - Toad World		</title>
		<link>https://programmingzen.com/rubypython-and-db2-drivers/#comment-29077</link>

		<dc:creator><![CDATA[Using the IBM_DB Ruby gem with DB2 - IBM DB2 - IBM DB2 - Toad World]]></dc:creator>
		<pubDate>Tue, 05 Jan 2016 18:05:47 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/rubypython-and-db2-drivers/#comment-29077</guid>

					<description><![CDATA[[&#8230;] install ~db2inst2/sqllib/ruby64/ibm_db-2.5.11.gem as root. Don&#8217;t make my mistake &#8211; use the proper instructions on installing the gem. That also happens to be by one of my favorite authors on technical blogging [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] install ~db2inst2/sqllib/ruby64/ibm_db-2.5.11.gem as root. Don&#8217;t make my mistake &#8211; use the proper instructions on installing the gem. That also happens to be by one of my favorite authors on technical blogging [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: vinod		</title>
		<link>https://programmingzen.com/rubypython-and-db2-drivers/#comment-5585</link>

		<dc:creator><![CDATA[vinod]]></dc:creator>
		<pubDate>Sun, 22 Feb 2009 19:04:57 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/rubypython-and-db2-drivers/#comment-5585</guid>

					<description><![CDATA[I am trying to use db2 9.5 express-c with ruby on rails on ubuntu. I have installed db2 and db2 is running fine. I have created sample database, etc.  I installed the ruby driver also as per the instructions in this web site.  However I am getting following error: 
&lt;br/&gt;
1. inside irb, when I do require &#039;ibm_db&#039;
I get this error: loaderror  no such file to load -- ibm_db
&lt;br/&gt;
2. for the rail application, when I do rake db:migrate
I get this error: security processing failed with reason &#039;42&#039; (ROOT CAPABILITY REQUIRED).
&lt;br/&gt;
Thanks.

Vinod]]></description>
			<content:encoded><![CDATA[<p>I am trying to use db2 9.5 express-c with ruby on rails on ubuntu. I have installed db2 and db2 is running fine. I have created sample database, etc.  I installed the ruby driver also as per the instructions in this web site.  However I am getting following error:<br />
<br />
1. inside irb, when I do require &#8216;ibm_db&#8217;<br />
I get this error: loaderror  no such file to load &#8212; ibm_db<br />
<br />
2. for the rail application, when I do rake db:migrate<br />
I get this error: security processing failed with reason &#8217;42&#8217; (ROOT CAPABILITY REQUIRED).<br />
<br />
Thanks.</p>
<p>Vinod</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: sampei		</title>
		<link>https://programmingzen.com/rubypython-and-db2-drivers/#comment-5416</link>

		<dc:creator><![CDATA[sampei]]></dc:creator>
		<pubDate>Sat, 31 Jan 2009 19:39:11 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/rubypython-and-db2-drivers/#comment-5416</guid>

					<description><![CDATA[Hi,
I would like to install this driver on an Ubuntu 8.10 64bit without GUI and with ruby1.9.
&lt;br/&gt;
I have some issues:
&lt;br/&gt;
1) Because it is a text only system, I installed the DB2 with db2install and not with db2setup. The DB2 server itself works fine, but I don&#039;t know if I installed the &quot;Base application development tools&quot;, too. If not, where can I find they in the text only db2 installer?
&lt;br/&gt;
2) I installed ruby1.9 and rubygems1.9. But if I do 
&lt;br/&gt;
&quot;sudo apt-get install ruby-full rubygems&quot;
 &lt;br/&gt;
it wants to install ruby1.8. Can the idm_db driver work with ruby1.9?
&lt;br/&gt;
I tried to install the ibm_db gem but I had this error:
Error installing ibm_db:
Failed to build gem native extension.
extconf failure: Unable to locate DB2 libraries.
&lt;br/&gt;
Even if I did 
&lt;br/&gt;
export IBM_DB_DIR=/opt/ibm/db2/V9.5
&lt;br/&gt;
and
&lt;br/&gt;
export IBM_DB_LIB=/opt/ibm/db2/V9.5/lib64
&lt;br/&gt;
&lt;br/&gt;
Thank You]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
I would like to install this driver on an Ubuntu 8.10 64bit without GUI and with ruby1.9.<br />
<br />
I have some issues:<br />
<br />
1) Because it is a text only system, I installed the DB2 with db2install and not with db2setup. The DB2 server itself works fine, but I don&#8217;t know if I installed the &#8220;Base application development tools&#8221;, too. If not, where can I find they in the text only db2 installer?<br />
<br />
2) I installed ruby1.9 and rubygems1.9. But if I do<br />
<br />
&#8220;sudo apt-get install ruby-full rubygems&#8221;<br />
 <br />
it wants to install ruby1.8. Can the idm_db driver work with ruby1.9?<br />
<br />
I tried to install the ibm_db gem but I had this error:<br />
Error installing ibm_db:<br />
Failed to build gem native extension.<br />
extconf failure: Unable to locate DB2 libraries.<br />
<br />
Even if I did<br />
<br />
export IBM_DB_DIR=/opt/ibm/db2/V9.5<br />
<br />
and<br />
<br />
export IBM_DB_LIB=/opt/ibm/db2/V9.5/lib64</p>
<p>Thank You</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jürgen		</title>
		<link>https://programmingzen.com/rubypython-and-db2-drivers/#comment-4782</link>

		<dc:creator><![CDATA[Jürgen]]></dc:creator>
		<pubDate>Wed, 03 Dec 2008 18:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/rubypython-and-db2-drivers/#comment-4782</guid>

					<description><![CDATA[Hi,

I ran into a couple of issues when following your nice manual on opensuse 11 x86_64, behind a company firewall:

a) gem didn&#039;t use the http_proxy system variable. finally I found this workaround:
sudo vi /usr/lib64/ruby/vendor_ruby/1.8/rubygems/config_file.rb

between
    def [](key)
      @hash[key.to_s]
    end

and
    private

insert:
    def []=(key, value)
      @hash[key.to_s]=value
    end

then, as in your manual:
. /home/db2inst1/sqllib/db2profile
export IBM_DB_DIR=/home/db2inst1/sqllib
export IBM_DB_LIB=/home/db2inst1/sqllib/lib

-&#062; sudo gem update -p &quot;http://our.company.proxy:8081&quot;
now works!
found at: http://elia.wordpress.com/2007/07/18/gems-through-the-proxy-or-the-undefined-method-error/

b)
sudo ln -s /opt/ibm/db2/V9.5/lib64 /opt/ibm/db2/V9.5/lib
now also this works:
sudo gem install ibm_db --include-dependencies -p &quot;http://our.company.proxy:8081&quot;

of course a) is not related to ibm_db but to gem - but anyway, it might help somebody else.
I can connect now to the local sample database.

regards,
Jürgen
cheers]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I ran into a couple of issues when following your nice manual on opensuse 11 x86_64, behind a company firewall:</p>
<p>a) gem didn&#8217;t use the http_proxy system variable. finally I found this workaround:<br />
sudo vi /usr/lib64/ruby/vendor_ruby/1.8/rubygems/config_file.rb</p>
<p>between<br />
    def [](key)<br />
      @hash[key.to_s]<br />
    end</p>
<p>and<br />
    private</p>
<p>insert:<br />
    def []=(key, value)<br />
      @hash[key.to_s]=value<br />
    end</p>
<p>then, as in your manual:<br />
. /home/db2inst1/sqllib/db2profile<br />
export IBM_DB_DIR=/home/db2inst1/sqllib<br />
export IBM_DB_LIB=/home/db2inst1/sqllib/lib</p>
<p>-&gt; sudo gem update -p &#8220;http://our.company.proxy:8081&#8221;<br />
now works!<br />
found at: <a href="http://elia.wordpress.com/2007/07/18/gems-through-the-proxy-or-the-undefined-method-error/" rel="nofollow ugc">http://elia.wordpress.com/2007/07/18/gems-through-the-proxy-or-the-undefined-method-error/</a></p>
<p>b)<br />
sudo ln -s /opt/ibm/db2/V9.5/lib64 /opt/ibm/db2/V9.5/lib<br />
now also this works:<br />
sudo gem install ibm_db &#8211;include-dependencies -p &#8220;http://our.company.proxy:8081&#8221;</p>
<p>of course a) is not related to ibm_db but to gem &#8211; but anyway, it might help somebody else.<br />
I can connect now to the local sample database.</p>
<p>regards,<br />
Jürgen<br />
cheers</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Greg		</title>
		<link>https://programmingzen.com/rubypython-and-db2-drivers/#comment-4333</link>

		<dc:creator><![CDATA[Greg]]></dc:creator>
		<pubDate>Mon, 29 Sep 2008 04:40:54 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/rubypython-and-db2-drivers/#comment-4333</guid>

					<description><![CDATA[Hello Antonio,

Thanks for your quick reply.  I just signed up for rubyforge too.  I&#039;m quite familiar with UDB but new to rails development.

My env is set via .bashrc of the instance owner:
set &#124;grep -i IBM
DB2DIR=/opt/ibm/db2/V9.5
IBM_DB_DIR=/opt/ibm/db2/V9.5
IBM_DB_LIB=/opt/ibm/db2/V9.5/lib32

Not sure if many are using IBM_DB with Fedora, but there seem to be many mysql developer on Fedora.  I&#039;ll continue through the forum as you&#039;ve suggested.

Thanks,
Greg]]></description>
			<content:encoded><![CDATA[<p>Hello Antonio,</p>
<p>Thanks for your quick reply.  I just signed up for rubyforge too.  I&#8217;m quite familiar with UDB but new to rails development.</p>
<p>My env is set via .bashrc of the instance owner:<br />
set |grep -i IBM<br />
DB2DIR=/opt/ibm/db2/V9.5<br />
IBM_DB_DIR=/opt/ibm/db2/V9.5<br />
IBM_DB_LIB=/opt/ibm/db2/V9.5/lib32</p>
<p>Not sure if many are using IBM_DB with Fedora, but there seem to be many mysql developer on Fedora.  I&#8217;ll continue through the forum as you&#8217;ve suggested.</p>
<p>Thanks,<br />
Greg</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Antonio Cangiano		</title>
		<link>https://programmingzen.com/rubypython-and-db2-drivers/#comment-4332</link>

		<dc:creator><![CDATA[Antonio Cangiano]]></dc:creator>
		<pubDate>Sun, 28 Sep 2008 21:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/rubypython-and-db2-drivers/#comment-4332</guid>

					<description><![CDATA[Greg, did you run the following before attempting &lt;code&gt;sudo gem install ibm_db&lt;/code&gt;?
&lt;br/&gt;
&lt;pre&gt;
export IBM_DB_DIR=/opt/ibm/db2/V9.5
export IBM_DB_LIB=/opt/ibm/db2/V9.1/lib32
&lt;/pre&gt;
&lt;br/&gt;
Also, please copy and paste your question on the Rubyforge forum: http://rubyforge.org/forum/forum.php?forum_id=9503. Installing on Fedora shouldn&#039;t be a problem.]]></description>
			<content:encoded><![CDATA[<p>Greg, did you run the following before attempting <code>sudo gem install ibm_db</code>?<br />
</p>
<pre>
export IBM_DB_DIR=/opt/ibm/db2/V9.5
export IBM_DB_LIB=/opt/ibm/db2/V9.1/lib32
</pre>
<p>
Also, please copy and paste your question on the Rubyforge forum: <a href="http://rubyforge.org/forum/forum.php?forum_id=9503" rel="nofollow ugc">http://rubyforge.org/forum/forum.php?forum_id=9503</a>. Installing on Fedora shouldn&#8217;t be a problem.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Greg		</title>
		<link>https://programmingzen.com/rubypython-and-db2-drivers/#comment-4331</link>

		<dc:creator><![CDATA[Greg]]></dc:creator>
		<pubDate>Sun, 28 Sep 2008 21:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/rubypython-and-db2-drivers/#comment-4331</guid>

					<description><![CDATA[Can I expect Fedora 9 to work with the IBM_DB gem?   I&#039;m very disappointed to see IBM supporting Red Hat but not Fedora because I thought there was a point of Express-C being free.  I have Express-C DB2 9.5 installed (after I downloaded libaio-0.3.106-4.2.i386.rpm).
&lt;br/&gt;
As root I ran:
yum install ruby
yum install rubygems
gem install rails --include-dependencies
&lt;br/&gt;
With my environment setup, as database instance owner I ran: gem install ibm_db
&lt;br/&gt;
It failed and I had to copy .gem files from:
/usr/lib/ruby/gems/1.8/cache to
/usr/lib/ruby/gems/1.8/gems/cache
&lt;br/&gt;
Then I reran it&#039;s failing with the following:
===========================
[db2iss@lc01 sqllib]$ gem install ibm_db
Building native extensions.  This could take a while...
ERROR:  Error installing ibm_db:
	ERROR: Failed to build gem native extension.
&lt;br/&gt;
/usr/bin/ruby extconf.rb install ibm_db
checking for SQLConnect() in -ldb2... no
checking for SQLConnect() in -ldb2... yes
creating Makefile
&lt;br/&gt;
make
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/opt/ibm/db2/V9.5/include  -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall  -fPIC  -c ibm_db.c
In file included from ibm_db.c:20:
ruby_ibm_db.h:18:21: error: sqlcli1.h: No such file or directory
In file included from ibm_db.c:20:
ruby_ibm_db.h:165: error: ‘SQL_MAX_MESSAGE_LENGTH’ undeclared here (not in a function)
==============================
&lt;br/&gt;
Question: Am I wasting my time trying to get IBM_DB gem working on Fedora 9? Or is this current error worth troubleshooting?]]></description>
			<content:encoded><![CDATA[<p>Can I expect Fedora 9 to work with the IBM_DB gem?   I&#8217;m very disappointed to see IBM supporting Red Hat but not Fedora because I thought there was a point of Express-C being free.  I have Express-C DB2 9.5 installed (after I downloaded libaio-0.3.106-4.2.i386.rpm).<br />
<br />
As root I ran:<br />
yum install ruby<br />
yum install rubygems<br />
gem install rails &#8211;include-dependencies<br />
<br />
With my environment setup, as database instance owner I ran: gem install ibm_db<br />
<br />
It failed and I had to copy .gem files from:<br />
/usr/lib/ruby/gems/1.8/cache to<br />
/usr/lib/ruby/gems/1.8/gems/cache<br />
<br />
Then I reran it&#8217;s failing with the following:<br />
===========================<br />
[db2iss@lc01 sqllib]$ gem install ibm_db<br />
Building native extensions.  This could take a while&#8230;<br />
ERROR:  Error installing ibm_db:<br />
	ERROR: Failed to build gem native extension.<br />
<br />
/usr/bin/ruby extconf.rb install ibm_db<br />
checking for SQLConnect() in -ldb2&#8230; no<br />
checking for SQLConnect() in -ldb2&#8230; yes<br />
creating Makefile<br />
<br />
make<br />
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/opt/ibm/db2/V9.5/include  -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector &#8211;param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall  -fPIC  -c ibm_db.c<br />
In file included from ibm_db.c:20:<br />
ruby_ibm_db.h:18:21: error: sqlcli1.h: No such file or directory<br />
In file included from ibm_db.c:20:<br />
ruby_ibm_db.h:165: error: ‘SQL_MAX_MESSAGE_LENGTH’ undeclared here (not in a function)<br />
==============================<br />
<br />
Question: Am I wasting my time trying to get IBM_DB gem working on Fedora 9? Or is this current error worth troubleshooting?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: pdepmcp		</title>
		<link>https://programmingzen.com/rubypython-and-db2-drivers/#comment-4205</link>

		<dc:creator><![CDATA[pdepmcp]]></dc:creator>
		<pubDate>Wed, 27 Aug 2008 17:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/rubypython-and-db2-drivers/#comment-4205</guid>

					<description><![CDATA[you write: select “Base application development tools” under the section “Application Development Tools”. 
Maybe I am wrong (and believe me I do really hope I am), but I am not able to remove all required components and that means:
1) I have to install 417 MB of useless stuff (come on, what&#039;s the use of java support on a simple dumb client computer?!?)
2) I got a base server installation on a client/devel workstation.  
3) I have some difficulties with crap client machines.

but let&#039;s say I do all this on a single dedicated workstation. Can I move the compiled module to other machines without all other db2 stuff? Or have I to figure out which file are to be moved from the db2 install folder together with the python module? Or do I need to install all this on every client??

I am a bit concerned.]]></description>
			<content:encoded><![CDATA[<p>you write: select “Base application development tools” under the section “Application Development Tools”.<br />
Maybe I am wrong (and believe me I do really hope I am), but I am not able to remove all required components and that means:<br />
1) I have to install 417 MB of useless stuff (come on, what&#8217;s the use of java support on a simple dumb client computer?!?)<br />
2) I got a base server installation on a client/devel workstation.<br />
3) I have some difficulties with crap client machines.</p>
<p>but let&#8217;s say I do all this on a single dedicated workstation. Can I move the compiled module to other machines without all other db2 stuff? Or have I to figure out which file are to be moved from the db2 install folder together with the python module? Or do I need to install all this on every client??</p>
<p>I am a bit concerned.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mario Briggs		</title>
		<link>https://programmingzen.com/rubypython-and-db2-drivers/#comment-4156</link>

		<dc:creator><![CDATA[Mario Briggs]]></dc:creator>
		<pubDate>Tue, 12 Aug 2008 13:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/rubypython-and-db2-drivers/#comment-4156</guid>

					<description><![CDATA[Charaf,
Yes the SQL_DECFLOAT error when on versions of DB2 &#060; 9 has been fixed. Please pull the latest egg]]></description>
			<content:encoded><![CDATA[<p>Charaf,<br />
Yes the SQL_DECFLOAT error when on versions of DB2 &lt; 9 has been fixed. Please pull the latest egg</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
