You are not logged in.

#1 2013-12-04 09:24:09

janoliver
Member
Registered: 2011-06-01
Posts: 54

[solved] Why can I not install haskell packages properly?

Hi, for some reason I cannot use the haskell repository and install haskell packages properly.

The following is an example log from pacman:

sudo pacman -Sy ghc haskell-json                                                            
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 haskell-core is up to date
resolving dependencies...
looking for inter-conflicts...

Packages (7):

Name                               New Version  Net Change

haskell-core/haskell-mtl           2.1.2-27       3.46 MiB
haskell-core/haskell-parsec        3.1.3-29       9.18 MiB
haskell-core/haskell-syb           0.4.1-2        3.48 MiB
haskell-core/haskell-text          0.11.3.1-1    30.30 MiB
haskell-core/haskell-transformers  0.3.0.0-27    10.71 MiB
extra/ghc                          7.6.3-1      735.76 MiB
haskell-core/haskell-json          0.7-8          6.92 MiB

Total Installed Size:   799.82 MiB

:: Proceed with installation? [Y/n] 
(7/7) checking keys in keyring                                                                                                           [###################################################################################] 100%
(7/7) checking package integrity                                                                                                         [###################################################################################] 100%
(7/7) loading package files                                                                                                              [###################################################################################] 100%
(7/7) checking for file conflicts                                                                                                        [###################################################################################] 100%
(7/7) checking available disk space                                                                                                      [###################################################################################] 100%
(1/7) installing ghc                                                                                                                     [###################################################################################] 100%
(2/7) installing haskell-transformers                                                                                                    [###################################################################################] 100%
Reading package info from stdin ... done.
(3/7) installing haskell-mtl                                                                                                             [###################################################################################] 100%
WARNING: cache is out of date: /usr/lib/ghc-7.6.3/package.conf.d/package.cache
  use 'ghc-pkg recache' to fix.
Reading package info from stdin ... done.
(4/7) installing haskell-text                                                                                                            [###################################################################################] 100%
Reading package info from stdin ... done.
/tmp/alpm_cR5zyf/.INSTALL: line 8: /usr/share/doc/ghc/html/libraries/arch-gen-contents-index: No such file or directory
error: command failed to execute correctly
(5/7) installing haskell-parsec                                                                                                          [###################################################################################] 100%
Reading package info from stdin ... done.
/tmp/alpm_Yob1yO/.INSTALL: line 8: /usr/share/doc/ghc/html/libraries/arch-gen-contents-index: No such file or directory
error: command failed to execute correctly
(6/7) installing haskell-syb                                                                                                             [###################################################################################] 100%
Reading package info from stdin ... done.
/tmp/alpm_fzcs5n/.INSTALL: line 8: /usr/share/doc/ghc/html/libraries/arch-gen-contents-index: No such file or directory
error: command failed to execute correctly
(7/7) installing haskell-json                                                                                                            [###################################################################################] 100%
Reading package info from stdin ... done.
/tmp/alpm_CCZe4X/.INSTALL: line 8: /usr/share/doc/ghc/html/libraries/arch-gen-contents-index: No such file or directory
error: command failed to execute correctly

It appears, as if ghc-pkg has problems. I tried uninstalling everything related to haskell and reinstalling everything from scratch, but that doesn't help. Any ideas?

Last edited by janoliver (2013-12-04 20:23:35)

Offline

#2 2013-12-04 15:35:59

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 470

Re: [solved] Why can I not install haskell packages properly?

did you try pacman suggestion?

ezik

Offline

#3 2013-12-04 15:48:41

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [solved] Why can I not install haskell packages properly?

  1. Don't install things with -Sy

  2. What repositories are these? They clearly are not the official repos

All the best,

-HG

Offline

#4 2013-12-04 15:51:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Why can I not install haskell packages properly?

Offline

#5 2013-12-04 16:09:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved] Why can I not install haskell packages properly?

Not an Installation issue. moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2013-12-04 18:12:59

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [solved] Why can I not install haskell packages properly?

You're using a mix of packages from haskell-core and the Arch repos. ghc from haskell-core has /usr/share/doc/ghc/html/libraries/arch-gen-contents-index.

Offline

#7 2013-12-04 20:23:23

janoliver
Member
Registered: 2011-06-01
Posts: 54

Re: [solved] Why can I not install haskell packages properly?

skottish wrote:

You're using a mix of packages from haskell-core and the Arch repos. ghc from haskell-core has /usr/share/doc/ghc/html/libraries/arch-gen-contents-index.

Hi skottish, thank you. I did use the wrong ghc, selecting the one from haskell-core solved it.

Offline

Board footer

Powered by FluxBB