This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Please help me get ncurses running under Ubuntu

Other Parts Discussed in Thread: THS7303

Per http://processors.wiki.ti.com/index.php/GSG:_Building_Software_Components_for_OMAP-L1/AM1x#Driver_configuration_in_the_Linux_kernel 
I should be running "make menuconfig ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-".

However, I get error "Unable to find the ncurses libraries or the required header files ... Install ncurses (ncurses-devel) and try again."

(THIS MAY BE THE WRONG THING TO DO) I have downloaded from http://packages.ubuntu.com/source/lucid/ncurses the file ncurses_5.7+20090803.orig.tar.gz.  I chose "lucid" because my Ubuntu is version 10.04 and my research says that version is called "lucid".

Per the INSTALL file I find in it, I run "./configure" followed by "make".  But the make dies while working in the c++ folder.  I determine it's because CXX is not defined.  I figure out to define it as "g++".  But g++ needs to be installed.  I research then run "sudo apt-get install g++".  

I now get past that error and onto the next error.  Now CXX_AR is not defined.  I don't know what to set it to.  There's no such thing as "ar++", I think.  I try "ar" but now I believe it needs parameters defined in CXX_ARFLAGS.

At this point I have ZERO confidence in where I'm going.

Can someone please "hold my hand" to get me past this?  Was ncurses always there in Ubuntu 10.04 but somehow not setup?  Am I following the correct or wrong path?  What should I do next?

By the way, this is all because I'm trying to do "make menuconfig..." to rebuild my kernel with the removal of THS7303 and addition of ADV7170 drivers, for my custom DM6467T board.

Thanks very much,

Helmut

  • Hi Helmut,

     

    Did you try "sudo apt-get install ncurses-dev"? I did this and ncurses got installed.

     

    Regards,

    Yan

  • Helmut:

    The environment setup scripts for the Sitara ARM MPU SDKs includes the following command to get ncurses:

    sudo apt-get install libncurses5-dev

    That should work for you as well.

    Regards,

    Michael T

    PS: Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

  • Michael,

    This worked.  Thanks.

    FWIW, I think this means I wasted all my time trying to download and install ncurses myself.  All I needed to do was this apt-get.  You know, when I tried to run "g++", something printed out a message suggesting an apt-get for it.  I wish the "make menuconfig..." error about needing ncurses similarly suggested doing an apt-get.  I guess this goes back to the people who manage "git".  Can someone perhaps suggest to someone who knows someone who might be able to add just this simple text for other folks!!!!

    Thanks again,

    Helmut