ruby-odbc unixODBC ubuntu

Hello there

I've got a fresh ubuntu box and done some magic to it to get 32 bit
unixODBC to connect to a 32 bit third party driver on a 64 bit Ubuntu
box. isql is working.

I now have to test connecting to this database using ruby, in order to
get my rails app to talk to it.

We're only pulling bits of data out here to populate a couple of pages
with stuff, it's not the main database that runs the app.

I've installed RVM on the machine, and then install ruby 1.8.7 using rvm

which ruby

I've then downloaded the ruby-odbc driver from here

expanded it and I'm in the folder

So now, to follow the instructions

I do

ruby -Cext extconf.rb --enable-dlopen

straight away, an error

ruby: Can't chdir to ext (fatal)

maybe it's a typo in the instructions, let's try putting a space between
the -C and ext, like it is in the make commands

ruby -C ext extconf.rb --enable-dlopen
ruby: Can't chdir to ext (fatal)

Same error

I thought this was going to be difficult, but I didn't imagine I'd get
an error so early on.

Can anyone help me out? I'm obviously doing or have done something
stupid, again :frowning:


It appears to be expecting there to be a directory called ext in the
current dir, containing extconf.rb. Can you see such a folder in the
unpacked files? Perhaps you are running from the wrong directory.


Colin Law wrote in post #1014948: