Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Mark Alexander <marka@pobox.com>
To: Karl Schudt <byzkarl@yahoo.com>
Cc: sup-talk@rubyforge.org
Subject: Re: [sup-talk] Crash of Sup 0.9.1
Date: Fri, 29 Jan 2010 16:16:05 -0800	[thread overview]
Message-ID: <a412e2a71001291616s1afbe19cr25f01d71440721c4@mail.gmail.com> (raw)
In-Reply-To: <20091214212804.GA4198@linux-vk5u.ben.pri>

On Mon, Dec 14, 2009 at 1:28 PM, Karl Schudt <byzkarl@yahoo.com> wrote:
> I installed Sup on Opensuse, and it seems to run fine, indexing my gmail
> account. But when I type a "\" to search, it crashes.
>
>
> --- NoMethodError from thread: main
> undefined method `new_field' for Ncurses::Form:Module

I had this problem on my OpenSUSE 11.1 machines, and I finally figured
out the solution today.  The problem is that in OpenSUSE, certain
ncurses header files aren't found in /usr/include like in other
distros.  Specifically, panel.h, form.h, and menu.h are in
/usr/include/ncurses, not /usr/include.  Strangely, OpenSUSE chose to
make a symlink to ncurses/ncurses.h in /usr/include, but did not
provide symlinks for the other files.

The result was that when extconf.rb for the ncursesw gem was executed,
it could not find these header files.  You can see that at the bottom
of the output of extconf.rb if you run it manually:

  checking for the panel library...
  checking for panel.h... no
  checking for the form library...
  checking for form.h... no
  checking for the menu library...
  checking for menu.h... no

So I fixed it by manually creating the missing symlinks:

  cd /usr/include
  ln -s ncurses/form.h
  ln -s ncurses/panel.h
  ln -s ncurses/menu.h

Then I reran 'gem install ncursesw'.  It wasn't enough to do a 'make
clean && make && make install' in the ncursesw gem source directory.
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


      parent reply	other threads:[~2010-01-30  0:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-14 21:28 Karl Schudt
2009-12-14 21:51 ` Andrei Thorp
2009-12-19 19:06   ` William Morgan
2010-01-30  0:16 ` Mark Alexander [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a412e2a71001291616s1afbe19cr25f01d71440721c4@mail.gmail.com \
    --to=marka@pobox.com \
    --cc=byzkarl@yahoo.com \
    --cc=sup-talk@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox