LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-06-2009, 05:01 AM   #1
srose
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Rep: Reputation: 0
Can't get ghci to run


Hi
I am trying to run the Haskell ghci interpreter through Terminal but I get this error:


/usr/local/lib/ghc-6.10.4/ghc: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

I have installed ncurses but still get this problem

Can anyone help? I need this for a university assignment.

Thanks
 
Old 10-06-2009, 05:14 AM   #2
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu, arch
Posts: 110

Rep: Reputation: 18
What distro are you using ?
 
Old 10-06-2009, 05:24 AM   #3
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu, arch
Posts: 110

Rep: Reputation: 18
Mandrake (and redhat and probably others) compile ncurses without the
"--with-termlib" option. The "--with-termlib" option splits ncurses into
two: libncurses and libtinfo. It's not "wrong" to do it one way or the
other, but applications compiled against it need to match.

In other words, grab a source rpm from somewhere and try rebuilding on
your machine it
from http://shoe.bocks.com/nlug/2003-Jul/3221.html
but the key thing here is how did you install ncurses( depends on your distro) and how did you install Haskell ghci

Last edited by mbostwick; 10-06-2009 at 05:27 AM.
 
Old 10-06-2009, 05:33 AM   #4
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by srose View Post
Hi
I am trying to run the Haskell ghci interpreter through Terminal but I get this error:


/usr/local/lib/ghc-6.10.4/ghc: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

I have installed ncurses but still get this problem

Can anyone help? I need this for a university assignment.

Thanks
If you had used your package manager to install Haskell, this wouldn't have happened.
 
Old 10-06-2009, 08:30 AM   #5
srose
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I am using Scientific Linux.

I did try compiling ncurses with --with-termlib

I typed ./configure --with-termlib
then make
then make install

but this did not work.

What exactly am I meant to do?
 
Old 10-06-2009, 12:21 PM   #6
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by srose View Post
I am using Scientific Linux.

I did try compiling ncurses with --with-termlib

I typed ./configure --with-termlib
then make
then make install

but this did not work.

What exactly am I meant to do?
Install Haskell using your package manager, not by trying to compile from source. A package manager would sort this all out for you automatically.
 
Old 10-06-2009, 01:57 PM   #7
srose
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hi
Sorry for the simple questions but how do I know what my package manager is? Does it install rpmīs?
 
Old 10-06-2009, 02:16 PM   #8
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by srose View Post
Hi
Sorry for the simple questions but how do I know what my package manager is? Does it install rpmīs?
I don't happen to know what Scientific Linux uses but I suspect it it "yum". So do this:

Code:
# yum install haskell-platform
And if anything is missing after that, do this:

Code:
# yum list | grep -i haskell
And choose additional packages.
 
Old 10-06-2009, 02:34 PM   #9
srose
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hi
I ran those commands but it said that not package was found. It doesnīt matter though because I downloaded a ghc source that did not require that libtinfo.so.5 file so now it works.

Thanks very much for you 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 enter graphical mode (run level 5) command line (run lenel 3) edmondgyampoh Linux - Newbie 3 05-15-2009 07:33 PM
trying to fix xwindows or just run command line... changing run levels dave247 Debian 2 11-18-2008 07:11 PM
I run Fedora 9 and I boot from USB, how I run at startup Firewall and antivirus? gginis Linux - Software 3 06-08-2008 04:19 AM
Is a script, run at boot time from init.d, run with root authority? tmbrwolf53 Linux - Server 2 03-31-2007 09:15 PM
Cannot get NVIDIA-Linux-x86_64-1.0-6629-pkg2.run to run properly doctorwebbox Linux - Hardware 0 02-06-2005 07:18 AM


All times are GMT -5. The time now is 08:36 AM.

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