For Programmers: Free Programming Magazines  


Home > Archive > Ruby > August 2005 > Problems with sybase-ctlib









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problems with sybase-ctlib
EdUarDo

2005-08-29, 7:02 pm

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?
EdUarDo

2005-08-30, 7:02 pm

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


Has anyone used this library?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com