Quantcast

some problem with Cabal

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

some problem with Cabal

Qi Qi
Hi,

When I tried the haskell platform 2011.2 source, from here
http://code.galois.com/darcs/haskell-platform/download-website/linux.html
.

Configuration passed successfully. But when making, it gives the following
error:

scripts/build.sh
**************************************************
Scanning system for any installed Haskell Platform components...

Found:None.

New packages to install: None! All done.

**************************************************
Building
"/usr/local/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal-1.10.1.0"
<command line>: cannot satisfy -package Cabal-1.10.1.0:
    Cabal-1.10.1.0-64e8f05722ea5bbdf07df2e5a3491105 is unusable due to missing or recursive dependencies:
      directory-1.1.0.0-85d1d0f9d96dffdacf64f3cc6fba6f2f process-1.0.1.5-4cab1bf0666275ac101dd48c7565b64c
    (use -v for more information)

Error:
Compiling the Setup script failed
make: *** [build.stamp] Error 2


I think this is the same problem as I got during installing some other
packages via cabal such as hmatrix, ghc-mod, happy and etc.

Does anyone have any idea about how to solve it?

Thanks!



--
Qi Qi

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: some problem with Cabal

Daniel Fischer
On Wednesday 09 March 2011 12:16:30, Qi Qi wrote:
> I think this is the same problem as I got during installing some other
> packages via cabal such as hmatrix, ghc-mod, happy and etc.
>
> Does anyone have any idea about how to solve it?


I think it may be a problem with your GHC. I have no problems cabal
install'ing packages using

$ cabal --version
cabal-install version 0.10.0
using version 1.10.1.0 of the Cabal library

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.2

Does compiling a simple module using the Cabal library work?
(for example

module Main (main) where

import Distribution.Simple.Setup

main :: IO ()
main = print defaultGlobalFlags

)

If your Cabal package is really unusable, that should break too (but then,
why doesn't ghc-pkg check report it as broken?). Re-installing Cabal would
be an option then.
If it works, on the other hand, the problem may be with your cabal and re-
installing that may be worth a try.

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: some problem with Cabal

Qi Qi
Thank you, Daniel.

The problem is solved! I found out that both global and local package db get directory-1.1.0.0 and process-1.0.1.5. I unregistered them and other caused broken packages in the local package db. Then I successfully installed back hmatrix, ghc-mod, happy and etc. It seems that xmobar will install directory-1.1.0.0 again in the local package db.

Did you succeed in installing haddock 2.9? Mine got some syntax oriented error duing cabal install haddock. But it's fine.


Daniel Fischer wrote
On Wednesday 09 March 2011 12:16:30, Qi Qi wrote:
> I think this is the same problem as I got during installing some other
> packages via cabal such as hmatrix, ghc-mod, happy and etc.
>
> Does anyone have any idea about how to solve it?


I think it may be a problem with your GHC. I have no problems cabal
install'ing packages using

$ cabal --version
cabal-install version 0.10.0
using version 1.10.1.0 of the Cabal library

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.2

Does compiling a simple module using the Cabal library work?
(for example

module Main (main) where

import Distribution.Simple.Setup

main :: IO ()
main = print defaultGlobalFlags

)

If your Cabal package is really unusable, that should break too (but then,
why doesn't ghc-pkg check report it as broken?). Re-installing Cabal would
be an option then.
If it works, on the other hand, the problem may be with your cabal and re-
installing that may be worth a try.

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: some problem with Cabal

Daniel Fischer
On Wednesday 09 March 2011 00:34:39, qiqi wrote:
> The problem is solved! I found out that both global and local package db
> get directory-1.1.0.0 and process-1.0.1.5. I unregistered them and
> other caused broken packages in the local package db.

D'oh, I should've seen that.

> Then I
> successfully installed back hmatrix, ghc-mod, happy and etc. It seems
> that xmobar will install directory-1.1.0.0 again in the local package
> db.

That's not good. And it doesn't seem to do that here:

$ cabal install xmobar --dry-run
Resolving dependencies...
In order, the following would be installed (use -v for more details):
stm-2.2.0.1
syb-0.3
X11-1.5.0.0
utf8-string-0.3.6
xmobar-0.12

What does

$ cabal install xmobar --dry-run -v3 say for you about directory?

>
> Did you succeed in installing haddock 2.9?

That was built with the compiler (I built from source), no problems.

$ haddock --version
Haddock version 2.9.2, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008

> Mine got some syntax oriented
> error duing cabal install haddock. But it's fine.

The same as
http://haskell.org/pipermail/haskell-cafe/2011-March/089902.html ?
I don't know if that's been solved.

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: some problem with Cabal

Don Stewart
In reply to this post by Qi Qi
This is fixed in the new release of cabal-install  ( I think) so we're
rolling new installers.

Discussion around the installers is taking place on the haskell-platform list.

-- Don

On Wed, Mar 9, 2011 at 3:16 AM, Qi Qi <[hidden email]> wrote:

> Hi,
>
> When I tried the haskell platform 2011.2 source, from here
> http://code.galois.com/darcs/haskell-platform/download-website/linux.html
> .
>
> Configuration passed successfully. But when making, it gives the following
> error:
>
> scripts/build.sh
> **************************************************
> Scanning system for any installed Haskell Platform components...
>
> Found:None.
>
> New packages to install: None! All done.
>
> **************************************************
> Building
> "/usr/local/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal-1.10.1.0"
> <command line>: cannot satisfy -package Cabal-1.10.1.0:
>    Cabal-1.10.1.0-64e8f05722ea5bbdf07df2e5a3491105 is unusable due to missing or recursive dependencies:
>      directory-1.1.0.0-85d1d0f9d96dffdacf64f3cc6fba6f2f process-1.0.1.5-4cab1bf0666275ac101dd48c7565b64c
>    (use -v for more information)
>
> Error:
> Compiling the Setup script failed
> make: *** [build.stamp] Error 2
>
>
> I think this is the same problem as I got during installing some other
> packages via cabal such as hmatrix, ghc-mod, happy and etc.
>
> Does anyone have any idea about how to solve it?
>
> Thanks!
>
>
>
> --
> Qi Qi
>
> _______________________________________________
> Haskell-Cafe mailing list
> [hidden email]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: some problem with Cabal

Qi Qi
In reply to this post by Daniel Fischer
I used cabal install xmobar --flags="all_extensions" .

Part of it returns:

In order, the following would be installed:
directory-1.1.0.0 (reinstall) changes: filepath-1.2.0.0 -> 1.1.0.4
hinotify-0.3.1 (reinstall) changes: containers-0.4.0.0 -> 0.3.0.0
mtl-1.1.1.1 (new version)
network-2.2.1.10 (new version)
process-1.0.1.5 (reinstall) changes: filepath-1.2.0.0 -> 1.1.0.4
time-1.1.4 (new version)
libmpd-0.5.0 (new package)
random-1.0.0.3 (reinstall) changes: time-1.2.0.3 -> 1.1.4
haskell98-1.1.0.1 (reinstall)
X11-xft-0.3 (reinstall)
xmobar-0.12 (new package)

See those reinstallation in which directory is included.


Is it true that every package installed from hackage should not install any package, which already exists in the global with the same version number , in the local db?


Daniel Fischer wrote
On Wednesday 09 March 2011 00:34:39, qiqi wrote:
> The problem is solved! I found out that both global and local package db
> get directory-1.1.0.0 and process-1.0.1.5. I unregistered them and
> other caused broken packages in the local package db.

D'oh, I should've seen that.

> Then I
> successfully installed back hmatrix, ghc-mod, happy and etc. It seems
> that xmobar will install directory-1.1.0.0 again in the local package
> db.

That's not good. And it doesn't seem to do that here:

$ cabal install xmobar --dry-run
Resolving dependencies...
In order, the following would be installed (use -v for more details):
stm-2.2.0.1
syb-0.3
X11-1.5.0.0
utf8-string-0.3.6
xmobar-0.12

What does

$ cabal install xmobar --dry-run -v3 say for you about directory?

>
> Did you succeed in installing haddock 2.9?

That was built with the compiler (I built from source), no problems.

$ haddock --version
Haddock version 2.9.2, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008

> Mine got some syntax oriented
> error duing cabal install haddock. But it's fine.

The same as
http://haskell.org/pipermail/haskell-cafe/2011-March/089902.html ?
I don't know if that's been solved.

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: some problem with Cabal

Daniel Fischer
On Wednesday 09 March 2011 02:51:35, qiqi wrote:
> I used cabal install xmobar --flags="all_extensions" .

Whoa:

In order, the following would be installed:
containers-0.3.0.0 (new version)
filepath-1.1.0.4 (new version)
directory-1.1.0.0 (reinstall) changes: filepath-1.2.0.0 -> 1.1.0.4
hinotify-0.3.1 (new package)
mtl-1.1.1.1 (new version)
network-2.2.1.10 (new version)
process-1.0.1.5 (reinstall) changes: filepath-1.2.0.0 -> 1.1.0.4
stm-2.2.0.1 (new package)
syb-0.3 (new package)
X11-1.5.0.0 (new package)
time-1.1.4 (new version)
random-1.0.0.3 (reinstall) changes: time-1.2.0.3 -> 1.1.4
haskell98-1.1.0.1 (reinstall)
utf8-string-0.3.6 (new package)
X11-xft-0.3 (new package)
libmpd-0.5.0 (new package)
xmobar-0.12 (new package)

I haven't looked further, but libmpd is at least partially responsible, it
depends on filepath < 1.2, time < 1.2 and a couple other old packages.

> Is it true that every package installed from hackage should not install
> any package, which already exists in the global with the same version
> number , in the local db?

Generally, it shouldn't (and doesn't), but here some packages have to be
reinstalled because they have to be built against different dependencies.

I'd prefer cabal install to refuse here (overridable with a --force flag)
because reinstalling boot libs (containers, filepath, directory, process,
time) tends to be a bad idea.

However, xmobar is an executable and no library, so if you unregister the
packages (from the user db!) after installing before they can cause
trouble, you should be fine (but no guarantees).

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: some problem with Cabal

Qi Qi
"However, xmobar is an executable and no library, so if you unregister the
packages (from the user db!) after installing before they can cause
trouble, you should be fine (but no guarantees)."

This is exactly what I am doing. I unregistered those packages but kept the xmobar's executable under ~/.cabal/bin. It works fine.

Thanks Daniel. I appreciate it!


Daniel Fischer wrote
On Wednesday 09 March 2011 02:51:35, qiqi wrote:
> I used cabal install xmobar --flags="all_extensions" .

Whoa:

In order, the following would be installed:
containers-0.3.0.0 (new version)
filepath-1.1.0.4 (new version)
directory-1.1.0.0 (reinstall) changes: filepath-1.2.0.0 -> 1.1.0.4
hinotify-0.3.1 (new package)
mtl-1.1.1.1 (new version)
network-2.2.1.10 (new version)
process-1.0.1.5 (reinstall) changes: filepath-1.2.0.0 -> 1.1.0.4
stm-2.2.0.1 (new package)
syb-0.3 (new package)
X11-1.5.0.0 (new package)
time-1.1.4 (new version)
random-1.0.0.3 (reinstall) changes: time-1.2.0.3 -> 1.1.4
haskell98-1.1.0.1 (reinstall)
utf8-string-0.3.6 (new package)
X11-xft-0.3 (new package)
libmpd-0.5.0 (new package)
xmobar-0.12 (new package)

I haven't looked further, but libmpd is at least partially responsible, it
depends on filepath < 1.2, time < 1.2 and a couple other old packages.

> Is it true that every package installed from hackage should not install
> any package, which already exists in the global with the same version
> number , in the local db?

Generally, it shouldn't (and doesn't), but here some packages have to be
reinstalled because they have to be built against different dependencies.

I'd prefer cabal install to refuse here (overridable with a --force flag)
because reinstalling boot libs (containers, filepath, directory, process,
time) tends to be a bad idea.

However, xmobar is an executable and no library, so if you unregister the
packages (from the user db!) after installing before they can cause
trouble, you should be fine (but no guarantees).

This is exactly what I am doing. I unregistered those packages but kept the xmobar's executable under ~/.cabal/bin. It works fine.

Thanks Daniel. I appreciate it!

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Loading...