Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: /usr/bin/ld: cannot find -lncursesw

  1. #1
    Join Date
    Feb 2013
    Beans
    13

    Exclamation /usr/bin/ld: cannot find -lncursesw

    hey currently 'm working with some developmental issues of powertop
    but 'm having trouble in "make"ing the code
    and the error report from terminal is as shown below..
    'm in need of some help... 'm glad if u do so..

    THE STARRED LINES ARE SPOTS OF ERRORS

    sac@sac-pc$ make -w
    make: Entering directory `/home/student/powertop-1.13'
    cc -O1 -g -Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-int -D VERSION=\"1.13\" 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 wifi-new.o perf.o alsa-power.o ahci-alpm.o dmesg.o devicepm.o -lncursesw -o powertop
    /usr/bin/ld: cannot find -lncursesw
    collect2: ld returned 1 exit status
    make: *** [powertop] Error 1
    make: Leaving directory `/home/student/powertop-1.13'

    kindly help me

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: /usr/bin/ld: cannot find -lncursesw

    Code:
    sudo apt-get install libncursesw5-dev

  3. #3
    Join Date
    Feb 2013
    Beans
    13

    Re: /usr/bin/ld: cannot find -lncursesw

    actually i want to remove tat libaray an make my code run wit out it..
    how to know where exactly the error is coming from
    mean to say which of the file o lines lik that..
    I DONT WANT MY FILE TO RUN USING NCURSES

  4. #4
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: /usr/bin/ld: cannot find -lncursesw

    PowerTop's README states
    in addition to that, PowerTOP requires the following components:

    pciutils-devel (is only required if you have PCI)
    ncurses-devel (required)
    libnl-devel (required)
    kernel version => 2.6.38
    But if you're sure that it's not needed then you can try
    Code:
    make NCURSES_LIBS=

  5. #5
    Join Date
    Feb 2013
    Beans
    13

    Re: /usr/bin/ld: cannot find -lncursesw

    the same error pop up again...
    any other ways...???

  6. #6
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: /usr/bin/ld: cannot find -lncursesw

    Quote Originally Posted by sachin0091 View Post
    the same error pop up again...
    any other ways...???
    You're trying to build a source tree that either a) requires curses or b) thinks that it does, hence the -lncurses flag.

    Solutions:

    a) Install ncurses.
    b) Remove that flag from the makefile (or whichever build system you're using)

  7. #7
    Join Date
    Feb 2013
    Beans
    13

    Question Re: /usr/bin/ld: cannot find -lncursesw

    how to remove it from make file

  8. #8
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: /usr/bin/ld: cannot find -lncursesw

    Quote Originally Posted by sachin0091 View Post
    how to remove it from make file
    What build system does powertop use? (If you don't know, what files are in the top-level directory?)

  9. #9
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: /usr/bin/ld: cannot find -lncursesw


  10. #10
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: /usr/bin/ld: cannot find -lncursesw

    Quote Originally Posted by schragge View Post
    Tbh I have no clue how to do that, and no wish to find out either. I suggest the OP reads up on autoconf.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •