Problem installing GHC 6.10.2 on Debian Etch
Daniel van den Eijkel
dvde at gmx.net
Thu Apr 16 14:23:23 EDT 2009
That helped.
$ aptitude remove ghc
did not remove or install any packages, but now ghc --version says 6.10.2
on the other hand, ghc 6.8.2 is still on the system
dpkg -l says
ghc6 6.8.2dfsg1-1 GHC - the Glasgow Haskell
Compilation system
ghc6-doc 6.8.2dfsg1-1 Documentation for the Glasgow
Haskell Compilation system
ghc6-libsrc 6.6-3 Library Sources of GHC, the
Glasgow Haskell Compilation system
ghc6-prof 6.8.2dfsg1-1 Profiling libraries for the Glasgow
Haskell Compilation system
$ ls -l /usr/bin/ghc*
/usr/bin/ghc -> /etc/alternatives/ghc
/usr/bin/ghc6 -> ../lib/ghc-6.8.2/bin/ghc
/usr/bin/ghc-6.8.2 -> ../lib/ghc-6.8.2/bin/ghc-6.8.2
/usr/bin/ghci -> /etc/alternatives/ghci
/usr/bin/ghci6 -> ../lib/ghc-6.8.2/bin/ghci
/usr/bin/ghci-6.8.2 -> ../lib/ghc-6.8.2/bin/ghci-6.8.2
/usr/bin/ghc-pkg -> /etc/alternatives/ghc-pkg
/usr/bin/ghc-pkg6 -> ../lib/ghc-6.8.2/bin/ghc-pkg
/usr/bin/ghc-pkg-6.8.2 -> ../lib/ghc-6.8.2/bin/ghc-pkg-6.8.2
/usr/bin/ghcprof -> /etc/alternatives/ghcprof
/usr/bin/ghcprof6 -> ../lib/ghc-6.8.2/bin/ghcprof
$ ls -l /etc/alternatives/ghc*
/usr/bin/ghc -> /etc/alternatives/ghc
/usr/bin/ghc6 -> ../lib/ghc-6.8.2/bin/ghc
/usr/bin/ghc-6.8.2 -> ../lib/ghc-6.8.2/bin/ghc-6.8.2
/usr/bin/ghci -> /etc/alternatives/ghci
/usr/bin/ghci6 -> ../lib/ghc-6.8.2/bin/ghci
/usr/bin/ghci-6.8.2 -> ../lib/ghc-6.8.2/bin/ghci-6.8.2
/usr/bin/ghc-pkg -> /etc/alternatives/ghc-pkg
/usr/bin/ghc-pkg6 -> ../lib/ghc-6.8.2/bin/ghc-pkg
/usr/bin/ghc-pkg-6.8.2 -> ../lib/ghc-6.8.2/bin/ghc-pkg-6.8.2
/usr/bin/ghcprof -> /etc/alternatives/ghcprof
/usr/bin/ghcprof6 -> ../lib/ghc-6.8.2/bin/ghcprof
$ ls -l /usr/local/bin/ghc*
/usr/local/bin/ghc -> ghc-6.10.2
/usr/local/bin/ghc-6.10.2
/usr/local/bin/ghci -> ghci-6.10.2
/usr/local/bin/ghci-6.10.2
/usr/local/bin/ghc-pkg -> ghc-pkg-6.10.2
/usr/local/bin/ghc-pkg-6.10.2
so /usr/local/bin shadows the /usr/bin directory? I am not sure if I'm
going to run into trouble with this installation, so I decided to
completely uninstall the old ghc6. It removed some other packages, too:
g++-4.1{u} ghc6 ghc6-prof{a} haskell-utils{u} libgmp3-dev{u}
libgmpxx4ldbl{u} libncurses5-dev{u} libreadline5-dev{u}
libstdc++6-4.1-dev{u}
After that, there was no ghc anymore except the 6.10.2 - as desired. But
a hello-world-compilation failed because of missing lgmp. So I installed
libgmp3-dev and libgmpxx4ldbl
Now it seems to work again, but I expect to run in trouble again. I'll
keep you up-to-date.
Thanks,
Daniel
Karel Gardas schrieb:
> What does happen if you uninstall ghc-6.8.2 by using dpkg/apt-get? IIRC
> ghc is completely linked statically (haskel libs) so your 6.10.2 does
> not depend on 6.8.2.
>
> Cheers,
> Karel
>
> Daniel van den Eijkel wrote:
>
>> Thanks for the answer.
>> I upgraded from Debian Etch to Lenny, and this upgraded ghc to version
>> 6.8.2. Then I tried again to install ghc-6.10.2 and it worked without
>> problems.
>>
>> But now I have 2 versions, and by default ghc-6.8 is called. Is there a
>> simple way to make ghc-6.10 the default ghc? Do I have to change the
>> symlinks by hand?
>>
>> Thanks,
>> Daniel
>>
>> Ian Lynagh schrieb:
>>
>>> On Thu, Apr 16, 2009 at 02:05:24PM +0200, Daniel van den Eijkel wrote:
>>>
>>>
>>>> I am trying to install GHC-6.10.2 on Debian Etch and I get the
>>>> following error:
>>>>
>>>> /usr/bin/strip: /usr/local/lib/ghc-6.10.2/ghc-pkg: File format not
>>>> recognized
>>>>
>>>>
>>> IIRC, this happens if you have binutils 2.17. Upgrading should fix it.
>>>
>>>
>>> Thanks
>>> Ian
>>>
>>>
>>>
>> _______________________________________________
>> Glasgow-haskell-users mailing list
>> Glasgow-haskell-users at haskell.org
>> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>>
>>
>>
>
>
More information about the Glasgow-haskell-users
mailing list