The Accidental Rubyist

invalid byte sequence in UTF-8

ncurses gem failing on Snow Leopard under ruby 1.9.2

with 2 comments

I have ncurses gem working fine under ruby 1.9.1 (after some fixing and patching).
However, i just installed ruby 1.9.2 using rvm. The stock “gem install ncurses” of course fails. Then I downloaded and installed ncurses-0.9.1. This also of course fails. I patched it and got it to install. However, all examples fail. Here’s what i get:

dyld: lazy symbol binding failed: Symbol not found: _STR2CSTR
Referenced from: /Users/rahul/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/x86_64-darwin10/ncurses.bundle
Expected in: flat namespace dyld:
Symbol not found: _STR2CSTR
Referenced from: /Users/rahul/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/x86_64-darwin10/ncurses.bundle
Expected in: flat namespace
Trace/BPT trap

I also copied the working ncurses gem from 1.9.1 (and installed it under 1.9.2) and that too gives the same runtime error.

EDIT: SOLVED Pls see https://totalrecall.wordpress.com/2010/08/22/ncurses-working-with-ruby-1-9-2-snow-leopard/

Advertisements

Written by totalrecall

August 20, 2010 at 11:05 pm

Posted in ncurses, ruby

2 Responses

Subscribe to comments with RSS.

  1. Hi,

    according to the Ruby 1.9.2 ChangeLog, STR2CSTR has been removed. See http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_0/ChangeLog.

    Ralf Papenkordt

    August 21, 2010 at 5:55 am

  2. Thanks for the quick reply. But what should I do. I am not familiar with the ruby C interface.
    What should i replace STR2CSTR with in all the ncurses code ?

    thanks.

    totalrecall

    August 21, 2010 at 11:42 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: