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. http://webdev.blogs.glam.ac.uk/2011/08/04/32-bit-odbc-driver-with-32-bit-unixodbc-on-a-64-bit-ubuntu-os/ 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 /home/nonrootuser/.rvm/rubies/ruby-1.8.7-p352/bin/ruby I''ve then downloaded the ruby-odbc driver from here http://www.ch-werner.de/rubyodbc/ruby-odbc-0.99994.tar.gz expanded it and I''m in the folder So now, to follow the instructions http://www.ch-werner.de/rubyodbc/README 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 :-( Matt -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 4 August 2011 14:19, Matt Davies <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> 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. > > http://webdev.blogs.glam.ac.uk/2011/08/04/32-bit-odbc-driver-with-32-bit-unixodbc-on-a-64-bit-ubuntu-os/ > > 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 > /home/nonrootuser/.rvm/rubies/ruby-1.8.7-p352/bin/ruby > > I''ve then downloaded the ruby-odbc driver from here > > http://www.ch-werner.de/rubyodbc/ruby-odbc-0.99994.tar.gz > > expanded it and I''m in the folder > > So now, to follow the instructions > > http://www.ch-werner.de/rubyodbc/README > > 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)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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law wrote in post #1014948:> On 4 August 2011 14:19, Matt Davies <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> >> http://www.ch-werner.de/rubyodbc/ruby-odbc-0.99994.tar.gz >> >> 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) > > 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. > > ColinThanks Colin the ext folder was missing I downloaded the gz again and expanded it, and there it was :-) I''m getting further down the track now, ran into another error, I''ll make a new topic for that one if I can''t solve it myself. Thanks again -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.