Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac OS X 10.8.3 build issue #69

Closed
stbose opened this issue May 24, 2013 · 6 comments
Closed

Mac OS X 10.8.3 build issue #69

stbose opened this issue May 24, 2013 · 6 comments

Comments

@stbose
Copy link

stbose commented May 24, 2013

after installing and relinking the homebrew ncurses following the previous instructions,

brew install ncurses
brew doctor
brew link --force ncurses

i run gem i sup, which succeeds. however, on execution, there seems to be a load error in the ncursesw library

~/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': dlopen(/Users/stbose/.rvm/gems/ruby-1.9.3-p392/gems/ncursesw-sup-1.3.1.1/lib/ncursesw_bin.bundle, 9): Symbol not found: _TYPE_ALNUM (LoadError)

I'd appreciate any insight that you can give.

@gauteh
Copy link
Member

gauteh commented May 24, 2013

Did you install the ncursesw-sup gem before installing ncurses with brew?

What version of ncurses do you have?

@stbose
Copy link
Author

stbose commented May 24, 2013

I wasn't sure about the order so I gem uninstall ncursesw-sup, cloned the git, and ran bundle install. during the dependency check, it re-installed the ncursesw-sup gem and successfully built. but, i got the same error at runtime.

The homebrew install of ncurses is 5.9.

@gauteh
Copy link
Member

gauteh commented May 24, 2013

Hm, could you try to build the ncursesw-sup gem from source: https://github.com/sup-heliotrope/ncursesw-ruby

after clone:

ruby extconf.rb
make
gem build ncursesw.gemspec
gem install ncursesw-sup-1.3.1.1.gem

please post the output of everything. The missing type is part of form.h which hopefully shows up in extconf.rb output.

Also: please verify that the homebrew version of ncurses is being used, try ncursesw5-config --version or similar and check the path of the binary.

@stbose
Copy link
Author

stbose commented May 24, 2013

I got it to work. I built the gem as you suggested, but still no luck. It turns out I had a ncursesw (1.2.4) gem installed on my system-- once I uninstalled that, then sup ran fine.

Thanks for the help.

@stbose stbose closed this as completed May 24, 2013
@stbose
Copy link
Author

stbose commented May 26, 2013

Sorry to ask again-- I got sup built and installed on Mac OS X, and it loads okay, but some of the features have a bit of difficulty. For instance, if you press / it shows the prompt to search. When you type any characters, they do not appear and when is pressed, sup crashes with the following dump

--- NoMethodError from thread: main
undefined method `unpost_form' for nil:NilClass
~/tmp/sup/lib/sup/textfield.rb:57:in `deactivate'
~/tmp/sup/lib/sup/buffer.rb:622:in `block in ask'
<internal:prelude>:10:in `synchronize'
~/tmp/sup/lib/sup/buffer.rb:27:in `sync'
~/tmp/sup/lib/sup/buffer.rb:621:in `ask'
~/tmp/sup/lib/sup/util.rb:573:in `method_missing'
~/tmp/sup/lib/sup/modes/scroll_mode.rb:82:in `search_in_buffer'
~/tmp/sup/lib/sup/mode.rb:59:in `handle_input'
~/sup/lib/sup/buffer.rb:274:in `handle_input'
bin/sup:266:in `<module:Redwood>'
bin/sup:74:in `<main>'

Please let me know fi this is insufficient information to debug. I will provide more.

@stbose stbose reopened this May 26, 2013
@gauteh
Copy link
Member

gauteh commented May 27, 2013

No problem, this is a different error. So thanks for posting it. It should however be in a separate bug report. It seems to be a ncurses problem. Are you sure you got the latest ncursesw-sup gem installed, and if you run rvm or similar, could you please try and run brew doctor before running sup and try again (to make sure the brew ncurses version is being used)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants