[Dclug] [Novalug] PowerTop
Eric Dantan Rzewnicki
eric at zhevny.com
Fri Aug 22 10:22:28 EDT 2008
On Tue, Aug 12, 2008 at 05:20:57PM -0400, Nino Pereira wrote:
> > http://www.lesswatts.org/projects/powertop/
> > I'm just curious as to how many people are using this amazing utility?
> > For those who don't know it is an application similar to the classic
> > unix 'top' command that shows what processes are using up CPU time.
> This sounded so interesting that I immediately downloaded it. But,
> on trying to install, I get an error from the loader:
>
> cc -O1 -g -Wall -W -Wshadow powertop.o config.o process.o misctips.o
> bluetooth.o display.o suggestions.o wireless.o cpufreq.o sata.o xrandr.o
> ethernet.o cpufreqstats.o usb.o urbnum.o intelcstates.o -lncursesw -o
> powertop
> /usr/bin/ld: cannot find -lncursesw
> collect2: ld returned 1 exit status
> make: *** [powertop] Error 1
>
> I tried 'apt-get install lncursesw, but there's no such package.
>
> What is the command again to find where these things (lncursesw) hide?
As stated later in the thread you probably should be able to use the
binary deb packages. But, to answer this question:
the -l is a compiler option to link to the ncursesw library.
To search for a library development package could you do something like:
aptitude search ~nncursesw.*dev
p lib32ncursesw5-dev - developer's libraries for ncursesw (32-bit)
p libkaya-ncursesw-dev - Ncurses binding for kaya
p libncursesw5-dev - developer's libraries for ncursesw
"~n" means search by package name.
But, this is what you really want when building something from source:
apt-get build-dep powertop
Which will pull in all of the packages needed to build powertop. Often
this will be sufficient.
-Eric Rz.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Dclug
mailing list