# Help installing ruby-odbc on XP

**URL:** <https://www.ruby-forum.com/t/help-installing-ruby-odbc-on-xp/100737>\
**Category:** Ruby\
**Created:** [February 3, 2006, 8:45pm UTC](https://www.ruby-forum.com/t/help-installing-ruby-odbc-on-xp/100737 "2006-02-03T20:45:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [February 3, 2006, 8:45pm UTC](https://www.ruby-forum.com/t/help-installing-ruby-odbc-on-xp/100737/1 "2006-02-03T20:45:13Z")

</div>

I am trying to install ruby-odbc on Windows XP and am stuck at the  
first command. When I run ruby extconf.rb, I get the following:

C:\lib\ruby-odbc-0.996\>ruby extconf.rb  
checking for sql.h… yes  
checking for sqlext.h… yes  
checking for SQLTCHAR… yes  
checking for odbcinst.h… yes  
checking for SQLAllocConnect() in -lodbc32… no  
Can not locate odbc libraries

I copied the odbc\_utf8.so and odbc.so to the following location  
…/ruby/1.8/i386-msvcrt according to the documentation.

I’m a bit of a newb, so any help would be appreciated.

Thanks in advance,  
eric

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [February 3, 2006, 10:42pm UTC](https://www.ruby-forum.com/t/help-installing-ruby-odbc-on-xp/100737/2 "2006-02-03T22:42:10Z")

</div>

On 2/3/06, eching [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am trying to install ruby-odbc on Windows XP and am stuck at the  
> first command. When I run ruby extconf.rb, I get the following:

It’s built into the one click installer. 🙂

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [February 3, 2006, 11:21pm UTC](https://www.ruby-forum.com/t/help-installing-ruby-odbc-on-xp/100737/3 "2006-02-03T23:21:45Z")

</div>

On 2/3/06, Gregory B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On 2/3/06, eching [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > I am trying to install ruby-odbc on Windows XP and am stuck at the  
> > first command. When I run ruby extconf.rb, I get the following:
> 
> It’s built into the one click installer. 🙂

Yes, the easiest route would be to use the One-Click Ruby Installer  
for Windows which comes with the ODBC support already built. You can  
find it here:

[http://rubyinstaller.rubyforge.org/](http://rubyinstaller.rubyforge.org/)

Curt

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [February 4, 2006, 9:21pm UTC](https://www.ruby-forum.com/t/help-installing-ruby-odbc-on-xp/100737/4 "2006-02-04T21:21:04Z")

</div>

You know…I am using the one-click installer. duh.

Yeah, it’s there. yay, I can now happily replace perl with ruby as my  
language of choice for writing test scripts. Thanks for that tip.
