Re: [Haskell-cafe] Cabal install pandoc

2013-04-02 Thread Roger Mason

Hello Albert,

On 04/01/2013 11:41 PM, Albert Y. C. Lai wrote:

On 13-04-01 06:26 AM, Roger Mason wrote:

It turned out that there was a stale version of 'array' lurking in the
ghc package db.  In spite of reinstalling ghc it did not go away until I
unregistered it.  I think it was persisting because re-installing ghc
simply unpacked over the old directory leaving that pre-existing file
intact.


See my http://www.vex.net/~trebla/haskell/sicp.xhtml for how does GHC 
know or not know what libs you have. In particular, it has very little 
to do with files, and clearing GHC is only half the story.


And how to have the same kind of problems recur in the future.
Thank you.  I have read and filed away the article for future 
reference.  I guess the best (least error prone) method of installing 
ghc and packages is to obtain a binary ghc (outside one's package 
manager), build haskell platform and then maintain ghc and packages 
outside the distro package manager.


Comments welcome.

Roger

This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php

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


Re: [Haskell-cafe] cabal install pandoc

2013-04-01 Thread Roger Mason

Hello Brent,

On 03/31/2013 04:53 PM, Brent Yorgey wrote:

It looks like your entire Haskell Platform installation is completely
hosed.  Sad to say, but I think your best bet is to simply reinstall
the Haskell Platform.

-Brent

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
It turned out that there was a stale version of 'array' lurking in the 
ghc package db.  In spite of reinstalling ghc it did not go away until I 
unregistered it.  I think it was persisting because re-installing ghc 
simply unpacked over the old directory leaving that pre-existing file 
intact.


'ghc-pkg check' shows no errors and I have successfully installed pandoc 
and some other packages.


Roger

This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php

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


Re: [Haskell-cafe] cabal install pandoc

2013-04-01 Thread Albert Y. C. Lai

On 13-04-01 06:26 AM, Roger Mason wrote:

It turned out that there was a stale version of 'array' lurking in the
ghc package db.  In spite of reinstalling ghc it did not go away until I
unregistered it.  I think it was persisting because re-installing ghc
simply unpacked over the old directory leaving that pre-existing file
intact.


See my http://www.vex.net/~trebla/haskell/sicp.xhtml for how does GHC 
know or not know what libs you have. In particular, it has very little 
to do with files, and clearing GHC is only half the story.


And how to have the same kind of problems recur in the future.

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


Re: [Haskell-cafe] cabal install pandoc

2013-03-31 Thread Brent Yorgey
On Fri, Mar 29, 2013 at 08:05:47AM -0230, Roger Mason wrote:
 Thank you for your response.  'ghc-pkg check' shows some problems:
 
 http://pastebin.ca/2344794
 
 On 03/28/2013 08:01 PM, Patrick Wheeler wrote:
 So I printed off the requirements for pandoc on a empty ghc-7.6.2
 install you can find it at:
 http://hpaste.org/84794
 
 I do not see any odd package versions listed in what you posted so far.
 
 No promise I will be able to help afterwards but it might help to
 see the full log, and then again with verbosity turned on. So
 seperate pastes for:
 
 * `cabal install pandoc --dry-run`
 * `cabal install pandoc --dry-run --verbose=2`
 * `cabal install pandoc --dry-run --verbose=3`
 
 You might also want to run a `ghc-pkg check` to check to see if
 your packages are consistent/unbroken.
 
 
 'ghc-pkg check' shows some problems:
 
 http://pastebin.ca/2344794
 

It looks like your entire Haskell Platform installation is completely
hosed.  Sad to say, but I think your best bet is to simply reinstall
the Haskell Platform.

-Brent

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


Re: [Haskell-cafe] cabal install pandoc

2013-03-29 Thread Henk-Jan van Tuyl

On Thu, 28 Mar 2013 19:08:46 +0100, Roger Mason rma...@mun.ca wrote:

I installed ghc (7.6.2) on an Arch Linux machine.  I'm trying to install  
pandoc via cabal but it fails:


...
Configuring text-0.11.2.3...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package deepseq-1.3.0.1 requires array-0.4.0.1
package text-0.11.2.3 requires array-0.4.0.1
Building text-0.11.2.3...
Preprocessing library text-0.11.2.3...
command line: cannot satisfy -package-id  
array-0.4.0.1-db49bb8b0087ae85b5875d4c0cc12874

 (use -v for more information)
Failed to install text-0.11.2.3
...


I had something similar with Ubuntu (before there was a binary package  
available for this platform); I installed several packages, that gave such  
message, again. That solved it.


Regards,
Henk-Jan van Tuyl


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

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


Re: [Haskell-cafe] cabal install pandoc

2013-03-29 Thread Roger Mason

Thank you for your response.  'ghc-pkg check' shows some problems:

http://pastebin.ca/2344794

On 03/28/2013 08:01 PM, Patrick Wheeler wrote:
So I printed off the requirements for pandoc on a empty ghc-7.6.2 
install you can find it at:

http://hpaste.org/84794

I do not see any odd package versions listed in what you posted so far.

No promise I will be able to help afterwards but it might help to see 
the full log, and then again with verbosity turned on. So seperate 
pastes for:


* `cabal install pandoc --dry-run`
* `cabal install pandoc --dry-run --verbose=2`
* `cabal install pandoc --dry-run --verbose=3`

You might also want to run a `ghc-pkg check` to check to see if your 
packages are consistent/unbroken.




'ghc-pkg check' shows some problems:

http://pastebin.ca/2344794

Thanks for any help you can offer.

Roger

This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php

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


Re: [Haskell-cafe] cabal install pandoc

2013-03-29 Thread Roger Mason

Hello,

On 03/29/2013 06:47 AM, Henk-Jan van Tuyl wrote:

On Thu, 28 Mar 2013 19:08:46 +0100, Roger Mason rma...@mun.ca wrote:

I installed ghc (7.6.2) on an Arch Linux machine.  I'm trying to 
install pandoc via cabal but it fails:


...
Configuring text-0.11.2.3...
Warning: This package indirectly depends on multiple versions of the 
same

package. This is highly likely to cause a compile failure.
package deepseq-1.3.0.1 requires array-0.4.0.1
package text-0.11.2.3 requires array-0.4.0.1
Building text-0.11.2.3...
Preprocessing library text-0.11.2.3...
command line: cannot satisfy -package-id 
array-0.4.0.1-db49bb8b0087ae85b5875d4c0cc12874

 (use -v for more information)
Failed to install text-0.11.2.3
...


I had something similar with Ubuntu (before there was a binary package 
available for this platform); I installed several packages, that gave 
such message, again. That solved it.


Regards,
Henk-Jan van Tuyl

It appears in my case that cabal may be looking in a strange place for 
installed pacckages.  At least, that is how I interpret the output I 
just pasted here:

http://pastebin.ca/2344794

Thanks,
Roger



This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php

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


Re: [Haskell-cafe] cabal install pandoc [solved]

2013-03-29 Thread Roger Mason

Hello,

On 03/29/2013 08:13 AM, Roger Mason wrote:

Hello,

It appears in my case that cabal may be looking in a strange place for 
installed pacckages.  At least, that is how I interpret the output I 
just pasted here:

http://pastebin.ca/2344794

Thanks,
Roger
ghc-pkg check showed that there were problems with 'array'. ghc-pkg 
unregister and a fresh installation of ghc and cabal-install have fixed 
the problem.


Thanks to all who responded.

Roger

This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php

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


[Haskell-cafe] cabal install pandoc

2013-03-28 Thread Roger Mason

Hello,

I installed ghc (7.6.2) on an Arch Linux machine.  I'm trying to install 
pandoc via cabal but it fails:


...
Configuring text-0.11.2.3...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package deepseq-1.3.0.1 requires array-0.4.0.1
package text-0.11.2.3 requires array-0.4.0.1
Building text-0.11.2.3...
Preprocessing library text-0.11.2.3...
command line: cannot satisfy -package-id 
array-0.4.0.1-db49bb8b0087ae85b5875d4c0cc12874

(use -v for more information)
Failed to install text-0.11.2.3
...

There are then errors for other packages that depend on 'text' or 'array'.

I will be grateful for any help.

Thanks,
Roger

This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php

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


Re: [Haskell-cafe] cabal install pandoc

2013-03-28 Thread Mark Fredrickson
To side step the issue, Pandoc is available via the ArchHaskell repos
(package name `haskell-pandoc`):

https://wiki.archlinux.org/index.php/Haskell_package_guidelines

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


Re: [Haskell-cafe] cabal install pandoc

2013-03-28 Thread Roger Mason

hello,

On 03/28/2013 04:11 PM, Mark Fredrickson wrote:
To side step the issue, Pandoc is available via the ArchHaskell repos 
(package name `haskell-pandoc`):


https://wiki.archlinux.org/index.php/Haskell_package_guidelines

-M


Yes, I know.  I wanted to avoid having a mixture of packages installed 
by pacman and others (not available in the repo) installed using cabal.


Thanks,
Roger

This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php

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


Re: [Haskell-cafe] cabal install pandoc

2013-03-28 Thread Patrick Wheeler
So I printed off the requirements for pandoc on a empty ghc-7.6.2 install
you can find it at:
http://hpaste.org/84794

I do not see any odd package versions listed in what you posted so far.

No promise I will be able to help afterwards but it might help to see the
full log, and then again with verbosity turned on. So seperate pastes for:

* `cabal install pandoc --dry-run`
* `cabal install pandoc --dry-run --verbose=2`
* `cabal install pandoc --dry-run --verbose=3`

You might also want to run a `ghc-pkg check` to check to see if your
packages are consistent/unbroken.


On Thu, Mar 28, 2013 at 7:52 PM, Roger Mason rma...@mun.ca wrote:

 hello,


 On 03/28/2013 04:11 PM, Mark Fredrickson wrote:

 To side step the issue, Pandoc is available via the ArchHaskell repos
 (package name `haskell-pandoc`):

 https://wiki.archlinux.org/**index.php/Haskell_package_**guidelineshttps://wiki.archlinux.org/index.php/Haskell_package_guidelines

 -M


 Yes, I know.  I wanted to avoid having a mixture of packages installed by
 pacman and others (not available in the repo) installed using cabal.


 Thanks,
 Roger

 This electronic communication is governed by the terms and conditions at
 http://www.mun.ca/cc/policies/**electronic_communications_**
 disclaimer_2012.phphttp://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php

 __**_
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe




-- 
Patrick Wheeler
patrick.john.whee...@gmail.com
patrick.j.whee...@rice.edu
patrick.whee...@colorado.edu
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe