# Dbd-odbc gem not

**URL:** <https://www.ruby-forum.com/t/dbd-odbc-gem-not/159906>\
**Category:** Rails\
**Created:** [February 9, 2009, 10:56pm UTC](https://www.ruby-forum.com/t/dbd-odbc-gem-not/159906 "2009-02-09T22:56:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blewis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@blewis](https://www.ruby-forum.com/u/blewis)\
**Post date:** [February 9, 2009, 10:56pm UTC](https://www.ruby-forum.com/t/dbd-odbc-gem-not/159906/1 "2009-02-09T22:56:03Z")

</div>

I have an application that requires dbd-odbc gem in order to work. So I  
have to following in the environment.rb:

* * *

## config.gem ‘dbd-odbc’, :version =\> ‘0.2.4’, :lib =\> ‘dbd/ODBC’

I recently had to switch to a new computer, so new install of ubuntu,  
rails, gems, etc. I installed dbd-odbc as you can see:

* * *

## $ gem list … dbd-odbc (0.2.4) …

my app keeps failing though, and if I run a rake, it tries to reinstall  
the same gem each time, but then the app still doesn’t see it:

* * *

## $ sudo rake gems:install [trace …] no such file to load – dbd-odbc [trace …] gem install dbd-odbc --version “= 0.2.4” Successfully installed dbd-odbc-0.2.4 1 gem installed Installing ri documentation for dbd-odbc-0.2.4… Installing RDoc documentation for dbd-odbc-0.2.4…

Has anyone seen this behavior before?

Thanks for any help!

-Ben

---

<div class="post-metadata">

**Author:** ![blewis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@blewis](https://www.ruby-forum.com/u/blewis)\
**Post date:** [February 10, 2009, 1:31am UTC](https://www.ruby-forum.com/t/dbd-odbc-gem-not/159906/2 "2009-02-10T01:31:11Z")

</div>

FYI: I un-installed and re-installed Ruby, rails, and Rubygems. Still  
getting the SAME error. Any help would be rally appreciated, I’ve burned  
so many hours on this stupid little problem now.

Thanks

-Ben

---

<div class="post-metadata">

**Author:** ![blewis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@blewis](https://www.ruby-forum.com/u/blewis)\
**Post date:** [April 29, 2009, 9:58pm UTC](https://www.ruby-forum.com/t/dbd-odbc-gem-not/159906/3 "2009-04-29T21:58:28Z")

</div>

It’s not the gem that’s missing. It’s the Ruby ODBC bindings which you  
need from here: [ODBC Binding for Ruby](http://www.ch-werner.de/rubyodbc/).

Once the correct Ruby bindings are installed, you can require ‘odbc’  
with no dependencies.

HTH,  
Dave
