LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-28-2009, 06:00 AM   #1
KevinH448d
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: libtinfo.so.5: 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

Thanks!
 
Old 11-28-2009, 06:21 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

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, 12:47 PM   #3
KevinH448d
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
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!
 
  


Reply


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-05-2008 11:55 PM
how to print text in color by ncurses without opening a ncurses window Greatrebel Programming 0 12-20-2006 09:15 AM
NCurses Mohsen Programming 7 10-07-2006 10:53 AM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 12:00 AM
Ncurses Mohsin Linux - Newbie 1 03-21-2002 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:52 PM.

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