
-----Ursprüngliche Nachricht----- Von: Ian Lynagh
Gesendet: 17.03.07 00:03:44 An: daniel.is.fischer@web.de Betreff: Re: Installing GHC
On Fri, Mar 16, 2007 at 11:55:03PM +0100, daniel.is.fischer@web.de wrote:
I'm trying to install a ghc on a sidux box (something akin to debian, I believe). apt-get install seemed to work, but running ghc results in: /usr/local/lib/ghc-6.6/ghc-6.6: error while loading shared libraries: libreadline.so.4: cannot open shared object file: No such file or directory
Do you mean you did "apt-get install ghc" and it installed it into /usr/local?
I did "apt-get install ghc6 ghc6-prof ghc6-doc", so I guess that's the debian-package, more so, because the sid in idux is debian's Still In Development. It did install in usr/local without complaints, just doesn't work without libreadline.so.4
The Debian package is compiled against readline5, not 4, and doesn't install into /usr/local. This definitely sounds like a sidux package to me. It is a debian package, only it doesn't work here. In the sidux forum, I've heard of people having no problems installing ghc, it's just me who gets bitten. Here's a session:
root@macduff:/home/dafis# apt-get -s install ghc6 Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut... Fertig Vorgeschlagene Pakete: ghc6-prof haskell-doc Die folgenden NEUEN Pakete werden installiert: ghc6 0 aktualisiert, 1 neu installiert, 0 zu entfernen und 195 nicht aktualisiert. Inst ghc6 (6.6-3 Debian:unstable) Conf ghc6 (6.6-3 Debian:unstable) root@macduff:/home/dafis# apt-get install ghc6 Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut... Fertig Vorgeschlagene Pakete: ghc6-prof haskell-doc Die folgenden NEUEN Pakete werden installiert: ghc6 0 aktualisiert, 1 neu installiert, 0 zu entfernen und 195 nicht aktualisiert. Es müssen noch 0B von 22,7MB Archiven geholt werden. Nach dem Auspacken werden 108MB Plattenplatz zusätzlich benutzt. Wähle vormals abgewähltes Paket ghc6. (Lese Datenbank ... 99769 Dateien und Verzeichnisse sind derzeit installiert.) Entpacke ghc6 (aus .../archives/ghc6_6.6-3_i386.deb) ... Richte ghc6 ein (6.6-3) ... root@macduff:/home/dafis# ghc --version /usr/local/lib/ghc-6.6/ghc-6.6: error while loading shared libraries: libreadline.so.4: cannot open shared object file: No such file or directory One confusing thing is that libreadline4 isn't listed as one of the dependencies of ghc6. Any ideas anybody?
Thanks Ian
Thanks, Daniel
__________________________________________________________________________ Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach! Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131

On Sun, Mar 18, 2007 at 12:30:15PM +0100, daniel.is.fischer@web.de wrote:
It is a debian package, only it doesn't work here. In the sidux forum, I've heard of people having no problems installing ghc, it's just me who gets bitten. Here's a session:
root@macduff:/home/dafis# apt-get -s install ghc6
[...]
Inst ghc6 (6.6-3 Debian:unstable) Conf ghc6 (6.6-3 Debian:unstable) root@macduff:/home/dafis# apt-get install ghc6 [...] Entpacke ghc6 (aus .../archives/ghc6_6.6-3_i386.deb) ... Richte ghc6 ein (6.6-3) ...
OK, that does look suspiciously like it's using the Debian package. What do dpkg -L ghc6 | grep /bin dpkg -s ghc6 ls -l /usr/bin/ghc /usr/bin/ghc6 /usr/lib/ghc-6.6/bin/ghc-6.6 zcat /usr/share/doc/ghc6/changelog.Debian.gz | head -32 ls -l /usr/local/bin/ghc /usr/local/lib/ghc-6.6/ghc-6.6 say? You may just also have a locally installed ghc in /usr/local
root@macduff:/home/dafis# ghc --version /usr/local/lib/ghc-6.6/ghc-6.6: error while loading shared libraries: libreadline.so.4: cannot open shared object file: No such file or directory
Thanks Ian
participants (2)
-
daniel.is.fischer@web.de
-
Ian Lynagh