[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] Crash of Sup 0.9.1



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