Problems with sybase-ctlib

Discussion in 'Ruby' started by EdUarDo, Aug 29, 2005.

  1. EdUarDo

    EdUarDo Guest

    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, Aug 29, 2005
    #1
    1. Advertising

  2. EdUarDo

    EdUarDo Guest

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


    Has anyone used this library?
     
    EdUarDo, Aug 30, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vince

    DBD::Sybase install errors

    Vince, Aug 22, 2003, in forum: Perl
    Replies:
    0
    Views:
    1,386
    Vince
    Aug 22, 2003
  2. Vicky
    Replies:
    0
    Views:
    782
    Vicky
    Jul 6, 2004
  3. Shawn

    displaying sybase timestamp

    Shawn, Jan 27, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    3,151
    Shawn
    Jan 27, 2004
  4. BaTTy

    PAR and Sybase::CTlib on HP-UX

    BaTTy, Feb 1, 2007, in forum: Perl Misc
    Replies:
    1
    Views:
    171
    BaTTy
    Feb 2, 2007
  5. Replies:
    4
    Views:
    263
Loading...

Share This Page