symbol lookup error: /usr/lib/ruby/1.9.1/i686-linux/odbc.so: undefined symbol: rb_str2cstr

Bug #693515 reported by Daniel Cordeiro on 2010-12-22
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libodbc-ruby (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: libodbc-ruby1.9.1

Hello,

I have a ODBC data source configured using iodbc for a PostgreSLQ database.
I've installed libodbc-ruby1.9.1 and when I try to use this data source, I get:

$ irb1.9.1
irb(main):001:0> require 'odbc'
=> true
irb(main):002:0> c = ODBC.connect('test')
irb1.9.1: symbol lookup error: /usr/lib/ruby/1.9.1/i686-linux/odbc.so: undefined symbol: rb_str2cstr

I'm running ruby1.9 with no gems (all ruby packages installed from Ubuntu's repository).

Any ideas about what can be wrong with my installation?

Thanks,
Daniel

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: libodbc-ruby1.9.1 0.99991-2
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
Date: Wed Dec 22 16:48:00 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcEnviron:
 LANGUAGE=pt_BR:pt:en
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
SourcePackage: libodbc-ruby

Daniel Cordeiro (dcordeiro) wrote :
summary: - irb1.9.1: symbol lookup error: /usr/lib/ruby/1.9.1/i686-linux/odbc.so:
- undefined symbol: rb_str2cstr
+ symbol lookup error: /usr/lib/ruby/1.9.1/i686-linux/odbc.so: undefined
+ symbol: rb_str2cstr
Ray G. (codenomad) wrote :

I'm receiving the same thing:

$ irb1.9.1
irb(main):001:0> require 'sqlite3'
=> true
irb(main):002:0> c = SQLite3::Database.new('test.db')
irb1.9.1: symbol lookup error: /usr/lib/ruby/1.9.1/x86_64-linux/sqlite3_api.so: undefined symbol: rb_str2cstr

I'm running ruby 1.9.1 no gems installed, using only Ubuntu packages.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers