Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-28-2009, 07:00 AM   #1
LQ Newbie
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
ncurses.h ?

Im having trouble running / linking with ncurses. From my understanding i should be able to find it in /usr/lib however i dont see it. Building, or even running any of the applications ive written for class fail. Linking through gcc - for example:

gcc -Wall main.c -lcurses

For already compiled versions I receive an error saying:

error while loading shared libraries: cannot open shared object file: no such file or directory

From other searches I understand that this library should come with unbuntu, and after trying to download the library it says i already have it. I also understand there are libraries in which to develop applications, as well as one to run the apps. Any semi-newb understandable help would be appreciated.

Im not sure if it helps but im running this version:

Linux version 2.6.31-15-generic (buildd@rothera) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #50-Ubuntu SMP Tue Nov 10 14:54:29 UTC 2009

Old 11-28-2009, 07:21 AM   #2
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 15.0
Posts: 8,235
Blog Entries: 61

Rep: Reputation: Disabled
Ubuntu splits libraries into runtime and development parts. You need to get the ncurses-whatever number-dev installed.
Old 11-29-2009, 01:47 PM   #3
LQ Newbie
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Originally Posted by brianL View Post
Ubuntu splits libraries into runtime and development parts. You need to get the ncurses-whatever number-dev installed.
Ohh alright I was trying to install the runtime part. I was confused about the trouble I had running already compiled projects. Thanks for your help!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use ncurses for g++? zensunni Linux - Newbie 1 03-06-2008 12:55 AM
how to print text in color by ncurses without opening a ncurses window Greatrebel Programming 0 12-20-2006 10:15 AM
NCurses Mohsen Programming 7 10-07-2006 11:53 AM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 01:00 AM
Ncurses Mohsin Linux - Newbie 1 03-21-2002 03:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration