Yet another environment setup question

2 views
Skip to first unread message

Erik Bryn

unread,
Nov 16, 2009, 11:14:27 PM11/16/09
to Rails SQLServer Adapter
Just got a new MacBook Pro, and have been setting up my development
environment again. What fun! :/

I've taken the Homebrew approach this time around, which has worked
well, and saved me lots of compilation time vs MacPorts.

I've got everything working, but I have one question about compiling
Ruby-ODBC with UTF-8 support. The bundle that is generated when
compiling with UTF-8 support is named odbc_utf8.bundle, whereas the
normal compilation generates odbc.bundle. DBD-ODBC wants to require
"odbc", which triggers an error if I only have compiled the UTF-8
version of Ruby-ODBC. Anyone run into this?

Thanks,
- Erik

Ken Collins

unread,
Nov 16, 2009, 11:38:08 PM11/16/09
to rails-sqlse...@googlegroups.com
Yes. Just rename it. Dig around in your vendor and or site dir to find
it.

Sent from my iPhone

Erik Bryn

unread,
Nov 17, 2009, 12:12:54 AM11/17/09
to Rails SQLServer Adapter
So, I've tried that, and I get the following error message after
requiring 'odbc':

$ irb -rodbc
/Library/Ruby/Site/1.8/universal-darwin10.0/odbc.bundle: dlsym
(0x100465170, Init_odbc): symbol not found - /Library/Ruby/Site/1.8/
universal-darwin10.0/odbc.bundle (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/irb/init.rb:253:in `load_modules'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/irb/init.rb:251:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/irb/init.rb:251:in `load_modules'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/irb/init.rb:21:in `setup'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/irb.rb:54:in `start'
from /usr/bin/irb:13

- Erik

On Nov 16, 8:38 pm, Ken Collins <k...@metaskills.net> wrote:
> Yes. Just rename it. Dig around in your vendor and or site dir to find  
> it.
>
> Sent from my iPhone
>

Ken Collins

unread,
Nov 17, 2009, 7:20:58 AM11/17/09
to rails-sqlse...@googlegroups.com

It looks like you have a path issue. This is the Mac's ruby so somehow you do not have your path setup to pickup on the HomeBrew stuff?

- Ken
Reply all
Reply to author
Forward
0 new messages