Forum: Ruby on Rails Sybase ctlib Adapter on 64 bit machine

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
A2ee9bbbcf6b204d56b27d9b51f96ca9?d=identicon&s=25 Matt Bradarich (mbradarich)
on 2007-02-15 15:28
All -

We have hit a wall with trying to get our Ruby On Rails app set up and
running on a RedHat Linux Enterprise 4 64 bit Machine. We have
everything running fine on Fedora Core 5 x686 machines, but were asked
to move to a more beefed up Dev env.

We got the adapter to compile fine following the README file and using
the Sybase 64bit libraries, but when we run the example we get a Memory
Allocation Error.  The box has 2Gig of memory and practically all is

Not sure if the adapter is compatible for 64bit processors.  Any help or
direction you can provide would be greatly appreciated.

Here are the steps and error we are receiving using irb:

require 'sybsql.rb'
irb(main):003:0> query ={'S'=>'****','U'=>'******','P'=>'******'})
`connect': failed to allocate memory (NoMemoryError)
        from (irb):3:in `new'
        from (irb):3:in `irb_binding'
        from /pkgs/roots/software/ruby/lib/ruby/1.8/irb/workspace.rb:52

If you need further info on the environment please let me know.

Thanks in advace for your help and direction.

Matt Bradarich
90beb7adc5c234f38a3992a7825fa64a?d=identicon&s=25 (Guest)
on 2007-04-03 13:36
(Received via mailing list)

Are you solve this probelm?

Maybe you can build sybct adaptor on 64 bit machine

modify extconf.rb like this

$LOCAL_LIBS = "-lct64 -lcs64 -lsybtcl64 -lcomn64 -lintl64 -rdynamic -
ldl -lnsl -lm"
$CFLAGS = "-g -Wall -I#{sybase_ocs}/include -DSYB_LP64"

% ruby extconf.rb
% make

you need 64bit OpenClient libraries.
-- hiroyuki sato

On 2月15日, 午後11:28, Matt Bradarich
This topic is locked and can not be replied to.