Really impossible to reinstall `base' using cabal?

In response to this: dbanas@dbanas-eeepc:~$ cabal install arrows Resolving dependencies... Configuring lazysmallcheck-0.6... Preprocessing library lazysmallcheck-0.6... Building lazysmallcheck-0.6... [1 of 1] Compiling Test.LazySmallCheck ( Test/LazySmallCheck.hs, dist/build/Test/LazySmallCheck.o ) Implicit import declaration: Could not find module `Prelude': Perhaps you haven't installed the "dyn" libraries for package `base'? Use -v to see a list of the files searched for. cabal: Error: some packages failed to install: Stream-0.4.6 depends on lazysmallcheck-0.6 which failed to install. arrows-0.4.4.0 depends on lazysmallcheck-0.6 which failed to install. lazysmallcheck-0.6 failed during the building phase. The exception was: ExitFailure 1 I did this: dbanas@dbanas-eeepc:~$ cabal install base and got this: Resolving dependencies... cabal: internal error: impossible Is it really impossible to use cabal to reinstall `base'? Thanks, -db

On Tuesday 25 October 2011, 22:32:23, Captain Freako wrote:
dbanas@dbanas-eeepc:~$ cabal install base
and got this:
Resolving dependencies... cabal: internal error: impossible
Is it really impossible to use cabal to reinstall `base'?
Fortunately, yes. Reinstalling base is impossible (at least with GHC, might be possible with other compilers), so it's good that cabal doesn't even try.

Thanks, Daniel.
So, do you have any advice for me, with regard to solving this issue:
Implicit import declaration:
Could not find module `Prelude':
Perhaps you haven't installed the "dyn" libraries for package `base'?
?
That is, how do I get the dynamic versions of the `base' package
libraries installed, if not via a `cabal install'?
Thanks,
-db
On Tue, Oct 25, 2011 at 1:45 PM, Daniel Fischer
On Tuesday 25 October 2011, 22:32:23, Captain Freako wrote:
dbanas@dbanas-eeepc:~$ cabal install base
and got this:
Resolving dependencies... cabal: internal error: impossible
Is it really impossible to use cabal to reinstall `base'?
Fortunately, yes. Reinstalling base is impossible (at least with GHC, might be possible with other compilers), so it's good that cabal doesn't even try.

On Wednesday 26 October 2011, 02:00:49, Captain Freako wrote:
So, do you have any advice for me, with regard to solving this issue:
Implicit import declaration: Could not find module `Prelude': Perhaps you haven't installed the "dyn" libraries for package `base'?
?
That is, how do I get the dynamic versions of the `base' package libraries installed, if not via a `cabal install'?
How did you get your ghc? If from your distro's package manager, you should be able to get the dyn- libs from that too. If downloaded from the ghc page or built from source, well, then they should already be there, if they aren't, something went wrong. Other methods?

On 26 October 2011 11:15, Daniel Fischer
On Wednesday 26 October 2011, 02:00:49, Captain Freako wrote:
So, do you have any advice for me, with regard to solving this issue:
Implicit import declaration: Could not find module `Prelude': Perhaps you haven't installed the "dyn" libraries for package `base'?
?
That is, how do I get the dynamic versions of the `base' package libraries installed, if not via a `cabal install'?
How did you get your ghc? If from your distro's package manager, you should be able to get the dyn- libs from that too.
Unless you distro hasn't built GHC with dynamic library support. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Hi, Am Mittwoch, den 26.10.2011, 13:10 +1100 schrieb Ivan Lazar Miljenovic:
How did you get your ghc? If from your distro's package manager, you should be able to get the dyn- libs from that too.
Unless you distro hasn't built GHC with dynamic library support.
Debian (and in extension, Ubuntu) builds a ghc-dynamic package (http://packages.debian.org/sid/ghc-dynamic) on i386 and amd64, but does not build -dyn variants of the packaged libraries. So you base and everything that comes with ghc is covered, everything else (including stuff like mtl) is not. Greetings, Joachim -- Joachim "nomeata" Breitner mail@joachim-breitner.de | nomeata@debian.org | GPG: 0x4743206C xmpp: nomeata@joachim-breitner.de | http://www.joachim-breitner.de/

On Wednesday 26 October 2011, 22:58:46, Joachim Breitner wrote:
Hi,
Am Mittwoch, den 26.10.2011, 13:10 +1100 schrieb Ivan Lazar Miljenovic:
How did you get your ghc? If from your distro's package manager, you should be able to get the dyn- libs from that too.
Unless you distro hasn't built GHC with dynamic library support.
Debian (and in extension, Ubuntu) builds a ghc-dynamic package (http://packages.debian.org/sid/ghc-dynamic) on i386 and amd64, but does not build -dyn variants of the packaged libraries. So you base and everything that comes with ghc is covered, everything else (including stuff like mtl) is not.
But everything that doesn't come with ghc *can* be reinstalled (though one has to be careful, and it may be inconvenient), so you provide a good starting point.

Thanks, Daniel. That was it.
On Tue, Oct 25, 2011 at 5:15 PM, Daniel Fischer
On Wednesday 26 October 2011, 02:00:49, Captain Freako wrote:
So, do you have any advice for me, with regard to solving this issue:
Implicit import declaration: Could not find module `Prelude': Perhaps you haven't installed the "dyn" libraries for package `base'?
?
That is, how do I get the dynamic versions of the `base' package libraries installed, if not via a `cabal install'?
How did you get your ghc? If from your distro's package manager, you should be able to get the dyn- libs from that too. If downloaded from the ghc page or built from source, well, then they should already be there, if they aren't, something went wrong. Other methods?
participants (4)
-
Captain Freako
-
Daniel Fischer
-
Ivan Lazar Miljenovic
-
Joachim Breitner