sybase ruby almost working

J

joe

Hello Everyone, I am trying out sybase and ruby. I installed
freetds-0.64. I am able to connect to the sybase server in port 4101
using tsql. I am then downloaded sybct-ruby-0.2.9 and commented out
the freetds lines. I copied a few files to the ruby site path
cp sybct.o /usr/local/lib/site_ruby/1.8/i486-linux/
cp sybct.so /usr/local/lib/site_ruby/1.8/i486-linux/
cp sybct.rb /usr/local/lib/site_ruby/1.8/i486-linux/
cp sybsql.rb /usr/local/lib/site_ruby/1.8/i486-linux/

Then i ran irb1.8

require 'sybsql'

and it worked but i am unable to connect using the samples

i get

ERROR: connect failed
./sybct.rb:27:in `connect'
./sybct.rb:27:in `open'
./sybsql.rb:269:in `initialize'
./sample/isql.rb:342:in `new'
./sample/isql.rb:342

i also try using -S servername:4101 to change from the default 1433
but no cheese



any suggestions?
 
C

Charles Lowe

Its probably a case of not setting up the freetds.conf file. I'm pretty
sure you can't directly provide a port, at least in v0.2.9, so you'll
need to set up the conf file instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top