Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  install trouble: diagrams (Gregory Guthrie)
   2.  Cabal problems - as usual.. (Gregory Guthrie)
   3. Re:  Cabal problems - as usual.. (Henk-Jan van Tuyl)
   4. Re:  install trouble: diagrams (Daniel P. Wright)
   5. Re:  Cabal problems - as usual.. (KC)


----------------------------------------------------------------------

Message: 1
Date: Fri, 30 Jan 2015 07:49:00 -0600
From: Gregory Guthrie <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Haskell-beginners] install trouble: diagrams
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

Trying to install Diagrams, but am stuck in a typical Cabal maze of install 
errors; any hints or help?

>cabal install Diagrams
Resolving dependencies...
Configuring arithmoi-0.4.1.1...
Building arithmoi-0.4.1.1...
Preprocessing library arithmoi-0.4.1.1...
...
<no location info>:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM
[ 1 of 34] Compiling Math.NumberTheory.Primes.Sieve.Indexing ( Math\NumberTheory
\Primes\Sieve\Indexing.hs, 
dist\dist-sandbox-b31b5bcf\build\Math\NumberTheory\Primes\Sieve\Indexing.o )

<no location info>:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM
Failed to install arithmoi-0.4.1.1
cabal: Error: some packages failed to install:
arithmoi-0.4.1.1 failed during the building phase. The exception was:
ExitFailure 1
diagrams-1.2 depends on arithmoi-0.4.1.1 which failed to install.
diagrams-contrib-1.1.2.5 depends on arithmoi-0.4.1.1 which failed to install.


> cabal install llvm
...
Failed to install type-level-0.2.4
cabal: Error: some packages failed to install:
llvm-3.2.0.2 depends on type-level-0.2.4 which failed to install.
llvm-base-3.2.0.2 failed during the configure step. The exception was:
ExitFailure 1
type-level-0.2.4 failed during the building phase. The exception was:
ExitFailure 1


>Cabal install type-level
...
src\Data\TypeLevel\Num\Ops.hs:336:10:
    Illegal instance declaration for `Div10 x q'
      The liberal coverage condition fails in class `Div10'
        for functional dependency: `q -> x'
      Reason: lhs type `q' does not determine rhs type `x'
    In the instance declaration for `Div10 x q'
Failed to install type-level-0.2.4
cabal: Error: some packages failed to install:
type-level-0.2.4 failed during the building phase. The exception was:
ExitFailure 1


??

-------------------------------------------


------------------------------

Message: 2
Date: Fri, 30 Jan 2015 07:54:36 -0600
From: Gregory Guthrie <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Haskell-beginners] Cabal problems - as usual..
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

I have a very basic usage pattern and installation on a few machines, and yet 
continually run into the often discussed cabal-maze of problems on all of them.

I have read all of the many explanations of why it is a hard problem, but so 
far the only solution I have heard for repair is to erase the installed library 
files, and start over. This can be hard if one has any external libraries 
installed which were themselves a lot of work to get functioning, an example 
are graphics libraries (like WxWin).

Has anyone created any scripts which would note everything which is installed, 
clear out all libraries, and then try to re-install everything? (This is on 
Windows....) Or would this typically just run into the same problems?

Doing a cabal update, it notes a new version of cabal -install, so trying that 
fails, and now it looks like cabal itself is broken (no installs work).
Any short-term \remedies, and/or long term better approaches?

>cabal update
Downloading the latest package list from hackage.haskell.org
Skipping download: Local and remote files match.
Note: there is a new version of cabal-install available.
To upgrade, run: cabal install cabal-install

>cabal install cabal-install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: Cabal-1.20.0.2/installed-a16... (user goal)
trying: ghc-syb-utils-0.2.3/installed-f83... (user goal)
next goal: ghc (dependency of ghc-syb-utils-0.2.3/installed-f83...)
rejecting: ghc-7.8.3/installed-a4e... (conflict:
Cabal==1.20.0.2/installed-a16..., ghc => Cabal==1.18.1.3/installed-421...)
rejecting: ghc-7.4.2/installed-4d6... (conflict: ghc-syb-utils => 
ghc==7.8.3/installed-a4e...)
Backjump limit reached (change with --max-backjumps).

Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20150130/fbc5168c/attachment-0001.html>

------------------------------

Message: 3
Date: Fri, 30 Jan 2015 23:33:42 +0100
From: "Henk-Jan van Tuyl" <[email protected]>
To: "[email protected]" <[email protected]>, "Gregory Guthrie"
        <[email protected]>
Subject: Re: [Haskell-beginners] Cabal problems - as usual..
Message-ID: <op.xtarmlrdpz0j5l@alquantor>
Content-Type: text/plain; charset=iso-8859-15; format=flowed;
        delsp=yes

On Fri, 30 Jan 2015 14:54:36 +0100, Gregory Guthrie <[email protected]>  
wrote:

> Doing a cabal update, it notes a new version of cabal -install, so  
> trying that fails, and now it looks like cabal itself is broken (no  
> installs work).
> Any short-term \remedies, and/or long term better approaches?

A method that usually works is as follows:
   md CabalInstall
   cd CabalInstall
   cabal sandbox init
   cabal install cabal-install
Then copy CabalInstall\.cabal-sandbox\bin\cabal.exe to the location of the  
old cabal.exe (probably something like "C:\Program Files\Haskell  
Platform\2014.2.0.0\lib\extralibs\bin\"
(Maybe rename the old cabal.exe to cabal-1.20.0.4.exe (or something  
similar) first)
Check with
   cabal --version
if the correct version of cabal.exe is run.

If you are using a sandbox, all locally installed packages are ignored, so  
there is less chance of dependency problems.

Regards,
Henk-Jan van Tuyl


-- 
Folding@home
What if you could share your unused computer power to help find a cure? In  
just 5 minutes you can join the world's biggest networked computer and get  
us closer sooner. Watch the video.
http://folding.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--


------------------------------

Message: 4
Date: Sat, 31 Jan 2015 08:54:19 +0900
From: "Daniel P. Wright" <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] install trouble: diagrams
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-2022-jp"

I've run into problems like this before; there seems to be some issues with 
certain versions of llvm. I got around it by compiling arithmoi without llvm 
support:

$ cabal install Diagrams --constrain "arithmoi -llvm"



30 Jan 2015 22:49?Gregory Guthrie <[email protected]> ??????:

> Trying to install Diagrams, but am stuck in a typical Cabal maze of install 
> errors; any hints or help?
> 
>> cabal install Diagrams
> Resolving dependencies...
> Configuring arithmoi-0.4.1.1...
> Building arithmoi-0.4.1.1...
> Preprocessing library arithmoi-0.4.1.1...
> ...
> <no location info>:
>    Warning: Couldn't figure out LLVM version!
>             Make sure you have installed LLVM
> [ 1 of 34] Compiling Math.NumberTheory.Primes.Sieve.Indexing ( 
> Math\NumberTheory
> \Primes\Sieve\Indexing.hs, 
> dist\dist-sandbox-b31b5bcf\build\Math\NumberTheory\Primes\Sieve\Indexing.o )
> 
> <no location info>:
>    Warning: Couldn't figure out LLVM version!
>             Make sure you have installed LLVM
> Failed to install arithmoi-0.4.1.1
> cabal: Error: some packages failed to install:
> arithmoi-0.4.1.1 failed during the building phase. The exception was:
> ExitFailure 1
> diagrams-1.2 depends on arithmoi-0.4.1.1 which failed to install.
> diagrams-contrib-1.1.2.5 depends on arithmoi-0.4.1.1 which failed to install.
> 
> 
>> cabal install llvm
> ...
> Failed to install type-level-0.2.4
> cabal: Error: some packages failed to install:
> llvm-3.2.0.2 depends on type-level-0.2.4 which failed to install.
> llvm-base-3.2.0.2 failed during the configure step. The exception was:
> ExitFailure 1
> type-level-0.2.4 failed during the building phase. The exception was:
> ExitFailure 1
> 
> 
>> Cabal install type-level
> ...
> src\Data\TypeLevel\Num\Ops.hs:336:10:
>    Illegal instance declaration for `Div10 x q'
>      The liberal coverage condition fails in class `Div10'
>        for functional dependency: `q -> x'
>      Reason: lhs type `q' does not determine rhs type `x'
>    In the instance declaration for `Div10 x q'
> Failed to install type-level-0.2.4
> cabal: Error: some packages failed to install:
> type-level-0.2.4 failed during the building phase. The exception was:
> ExitFailure 1
> 
> 
> ??
> 
> -------------------------------------------
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20150131/42b9ffc3/attachment-0001.html>

------------------------------

Message: 5
Date: Fri, 30 Jan 2015 17:34:22 -0800
From: KC <[email protected]>
To: Haskell Beginners <[email protected]>
Cc: Gregory Guthrie <[email protected]>
Subject: Re: [Haskell-beginners] Cabal problems - as usual..
Message-ID:
        <CAMLKXy=g3vzdCMEeGKc5MDnUn98VxBwNesZZj=cfnhtzhq-...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

If you're on Windows install development environments outside the Programs
Folder which has special protections on it.

--
--

Sent from an expensive device which will be obsolete in a few months! :D

Casey

On Jan 30, 2015 2:33 PM, "Henk-Jan van Tuyl" <[email protected]> wrote:

> On Fri, 30 Jan 2015 14:54:36 +0100, Gregory Guthrie <[email protected]>
> wrote:
>
>  Doing a cabal update, it notes a new version of cabal -install, so trying
>> that fails, and now it looks like cabal itself is broken (no installs work).
>> Any short-term \remedies, and/or long term better approaches?
>>
>
> A method that usually works is as follows:
>   md CabalInstall
>   cd CabalInstall
>   cabal sandbox init
>   cabal install cabal-install
> Then copy CabalInstall\.cabal-sandbox\bin\cabal.exe to the location of
> the old cabal.exe (probably something like "C:\Program Files\Haskell
> Platform\2014.2.0.0\lib\extralibs\bin\"
> (Maybe rename the old cabal.exe to cabal-1.20.0.4.exe (or something
> similar) first)
> Check with
>   cabal --version
> if the correct version of cabal.exe is run.
>
> If you are using a sandbox, all locally installed packages are ignored, so
> there is less chance of dependency problems.
>
> Regards,
> Henk-Jan van Tuyl
>
>
> --
> Folding@home
> What if you could share your unused computer power to help find a cure? In
> just 5 minutes you can join the world's biggest networked computer and get
> us closer sooner. Watch the video.
> http://folding.stanford.edu/
>
>
> http://Van.Tuyl.eu/
> http://members.chello.nl/hjgtuyl/tourdemonad.html
> Haskell programming
> --
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20150130/a7eb9729/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 79, Issue 38
*****************************************

Reply via email to