Subject: [sup-talk] Errors installing ncursesw

From: Shadowfirebird <[email-masked]>
Date: Wed, 10 Nov 2010 12:07:40 +0000

Given the other thread on how ncursesw cures those odd character strings, I've revisited this myself and I wonder if I could get suggestions.

user@computer:$ sudo gem install ncursesw
Building native extensions.  This could take a while...
ERROR:  Error installing ncursesw:
	ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for unistd.h... yes
checking for locale.h... yes
checking for ncurses.h... yes
checking for wmove() in -lncursesw... no
checking for wmove() in -lpdcurses... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.
<<<<

Can anyone tell me where mkmf.log will be?  Not in the directory where I ran gem install.

I'm on Ubuntu 9.04 -- is that the problem?

-- 
It is easier for a camel to pass through the eye of a needle if it is
lightly greased.
		-- Kehlog Albran, "The Profit"
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: William Morgan <[email-masked]>
Date: Wed, 10 Nov 2010 10:04:15 -0500

> Can anyone tell me where mkmf.log will be?  Not in the directory where

I'm not sure where mkmf.log is (I think newer versions of Rubygems are
better about telling you) but the above messages are the clue that you
need to apt-get install libncursesw-dev or something like it.
-- 
William <[email-masked]>
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Mark Alexander <[email-masked]>
Date: Wed, 10 Nov 2010 10:46:53 -0500

> Can anyone tell me where mkmf.log will be?  Not in the directory where I ran gem install.

If you run 'gem env' you'll see something like this:

  ...
  - GEM PATHS:
     - /var/lib/gems/1.8
  ...

Then in that directory you'll see a directory called 'gems' that will
contain the source directories for the various gems.  mkmf.log should
be in the directory containing the failing gem.  If you look at the
log, there will often be a clue pointing to a missing header file or
library.  To fix this, you'll typically have to install some kind of
development library.  For example, on Ubuntu, if you're getting
failures installing the ncursesw gem, you'll probably have to install
the libncursesw5-dev package.  You can find a list of candidate
packages by doing 'aptitude search ncursesw'.
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk