Problems with sybase-ctlib

E

EdUarDo

Hi, I'm trying to make a connection with Sybase using sybase-ctlib 0.2.7.

require 'sybsql.rb'

def test
hash = {'S'=>'192.168.1.119:4120', 'U'=>'user', 'P'=>'password', 'appname'=>'multilingual'}
conn = SybSQL.new(hash)
conn.sql('select * from text where objectid_id = 1050000002')
puts conn.cmd_done?
conn.close
end

test

And I get this error stack trace:

================ LoadError =====================
/home/eyp/Desarrollo/ruby/lib/sybct.so
????
/home/eyp/Desarrollo/ruby/lib/sybct.rb:3
require "sybct.o"
/home/eyp/Desarrollo/ruby/lib/sybsql.rb:4:in `require'
require "sybct.rb"
/home/eyp/Desarrollo/ruby/lib/sybsql.rb:4
require "sybct.rb"
/home/eyp/Desarrollo/ruby/tests/sybaseTest/test.rb:1:in `require'
require 'sybsql.rb'
/home/eyp/Desarrollo/ruby/tests/sybaseTest/test.rb:1
require 'sybsql.rb'

=============================================
Exception: libct.so: cannot open shared object file: No such file or directory - /home/eyp/Desarrollo/ruby/lib/sybct.so


However there is a 'sybct.so' at /home/eyp/Desarrollo/ruby/lib/.

Have anybody test this library?
 

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,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top