Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
echo -e "My favorite color is \033[38;5;148mYellow-Green\033[39m"
If you want to install ncurses, install it using your distribution package manager. There is no need to compile it yourself.
jlinkels
the above code works but the package mgr doesn't have curses. Besides, I want to compile some of the sample programs. I tried worm and it couldn't find ncurses_cfg.h
I tried to run some of the precompiled samples in ./test but everytime it says "Error opening terminal: xterm
I'm very confused. It works on my Ubuntu box at home. I'm away from home on my laptop.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
As it seems, Ubuntu does not include the ncurses package [anymore]. So you are right that it is not in the package manager. (An incomprehensible decision by the Ubuntu maintainers BTW)
But the source package is still there, and it is always better to compile from the Ubuntu source, using the Ubuntu tools than use an independent package. If you use the Ubuntu tools, your own package becomes part of the package management system. If you do it outside the package manager sooner or later you might break your system.
In order to compile correctly, you should have installed libncurses5-dev. It has been reported it is not installed automatically when you install the source files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.