public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* pandoc installation problem, on unbuntu 12.04
@ 2014-11-11 11:43 Xiangwu Lu
       [not found] ` <1322cae8-c07d-4e81-aa69-2b20dbccb93b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Xiangwu Lu @ 2014-11-11 11:43 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 3626 bytes --]



Sorry for the long description, but does anyone know what happend here? 
Thanks.

**install pandoc first try:

apt-get install haskell-platform    (get haskell platform)
sudo apt-get install cabal-install  (install cabal tool)
cabal update                        (update cable package list)
cabal install pandoc                (install pandoc, took long time)

then, an error occurs:

Configuring pandoc-1.13.1...
setup: At least the following dependencies are missing:
http-client >=0.3.2 && <0.4 && ==0.4.2.2
cabal: Error: some packages failed to install:
pandoc-1.13.1 failed during the configure step. The exception was:
ExitFailure 1

So I searched on the internet, the possible cause:

problem might happen: cabal installed a too recent version of the http-client

and solution would be:

cabal install --reinstall --force-reinstalls 'http-client < 0.4'
ghc-pkg unregister http-client-tls-0.2.2
ghc-pkg unregister http-client-0.4.2.2
cabal install pandoc

That fix the error. Then I tried the steps on another machiens would act as 
a server (ubuntu 12.04), the steps as follow:

*install pandoc second try:*

apt-get install haskell-platform -y
apt-get install cabal-install 
cabal update 

cabal install --reinstall --force-reinstalls 'http-client < 0.4'  

*error:* src/Control/Monad/Catch.hs:99:1: Warning: The import of Control.Monad.Trans.Reader' 
is redundant except perhaps to import instances fromControl.Monad.Trans.Reader' 
To import instances alone, use: import Control.Monad.Trans.Reader()

ghc-pkg unregister http-client-tls-0.2.2

*error:* ghc-pkg: cannot find package http-client-tls-0.2.2

ghc-pkg unregister http-client-0.4.2.2

*error:* ghc-pkg: cannot find package http-client-0.4.2.2

cabal install pandoc 

*error message:* Resolving dependencies...
cabal: Could not resolve dependencies:
trying: pandoc-1.13.1 (user goal)
trying: yaml-0.8.9.3 (dependency of pandoc-1.13.1)
next goal: attoparsec (dependency of yaml-0.8.9.3)
rejecting: attoparsec-0.12.1.2, 0.12.1.1, 0.12.1.0, 0.12.0.0 (conflict: 
http-types => text==0.11.1.13/installed-9b6..., attoparsec => text>=1.1.1.3)
rejecting: attoparsec-0.11.3.4, 0.11.3.3, 0.11.3.2, 0.11.3.1, 0.11.3.0, 
0.11.2.1 (conflict: http-types => text==0.11.1.13/installed-9b6..., 
attoparsec => text>=0.11.3.1)
trying: attoparsec-0.11.1.0
next goal: aeson (dependency of pandoc-1.13.1)
rejecting: aeson-0.8.0.2, 0.7.0.6 (conflict: attoparsec==0.11.1.0, aeson => 
attoparsec>=0.11.3.4)
rejecting: aeson-0.7.0.4 (conflict: pandoc => aeson>=0.7.0.5 && <0.9)
rejecting: aeson-0.6.2.1, 0.6.2.0, 0.6.1.0, 0.6.0.2, 0.6.0.1, 0.6.0.0, 
0.5.0.0, 0.4.0.1, 0.4.0.0, 0.3.2.14, 0.3.2.13, 0.3.2.12, 0.3.2.11, 
0.3.2.10, 0.3.2.9, 0.3.2.8, 0.3.2.7, 0.3.2.6, 0.3.2.5, 0.3.2.4, 0.3.2.3, 
0.3.2.2, 0.3.2.1, 0.3.2.0, 0.3.1.1, 0.3.1.0, 0.3.0.0, 0.2.0.0, 0.1.0.0 
(conflict: pandoc => aeson>=0.7 && <0.9)
rejecting: aeson-0.8.0.1, 0.8.0.0, 0.7.0.5 (conflict: attoparsec==0.11.1.0, 
aeson => attoparsec>=0.11.3.4)
rejecting: aeson-0.7.0.3, 0.7.0.2, 0.7.0.1, 0.7.0.0 (conflict: pandoc => 
aeson>=0.7.0.5 && <0.9)

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1322cae8-c07d-4e81-aa69-2b20dbccb93b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: Type: text/html, Size: 11484 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pandoc installation problem, on unbuntu 12.04
       [not found] ` <1322cae8-c07d-4e81-aa69-2b20dbccb93b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2014-11-11 15:21   ` John MacFarlane
  2014-12-01 10:00   ` Xiangwu Lu
  1 sibling, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2014-11-11 15:21 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

A couple suggestions.  First, if you use an up-to-date version
of cabal-install, it will not have this problem, as I've bumped
the version bounds for http-client on the Hackage server.  (Older
versions of cabal-install don't know to look for this.)  You could
try 'cabal install cabal-install'.

(Newer versions of cabal-install also include sandboxes, which you
can use if things really get difficult.)

Second, instead of doing

    cabal install --reinstall --force-reinstalls 'http-client < 0.4'

and then trying to install pandoc, do everything at once, as you
did on the machine where it worked:

    cabal install pandoc 'http-client < 0.4'

That way cabal can figure out a harmonious set of libraries
to use. If you compile http-client first, it uses a version
of text that is too old for other pandoc libraries.

If things get too messed up, you can remove (backup) your
~/.ghc library and start again.


+++ Xiangwu Lu [Nov 11 14 03:43 ]:
>
>
>Sorry for the long description, but does anyone know what happend here?
>Thanks.
>
>**install pandoc first try:
>
>apt-get install haskell-platform    (get haskell platform)
>sudo apt-get install cabal-install  (install cabal tool)
>cabal update                        (update cable package list)
>cabal install pandoc                (install pandoc, took long time)
>
>then, an error occurs:
>
>Configuring pandoc-1.13.1...
>setup: At least the following dependencies are missing:
>http-client >=0.3.2 && <0.4 && ==0.4.2.2
>cabal: Error: some packages failed to install:
>pandoc-1.13.1 failed during the configure step. The exception was:
>ExitFailure 1
>
>So I searched on the internet, the possible cause:
>
>problem might happen: cabal installed a too recent version of the http-client
>
>and solution would be:
>
>cabal install --reinstall --force-reinstalls 'http-client < 0.4'
>ghc-pkg unregister http-client-tls-0.2.2
>ghc-pkg unregister http-client-0.4.2.2
>cabal install pandoc
>
>That fix the error. Then I tried the steps on another machiens would act as
>a server (ubuntu 12.04), the steps as follow:
>
>*install pandoc second try:*
>
>apt-get install haskell-platform -y
>apt-get install cabal-install
>cabal update
>
>cabal install --reinstall --force-reinstalls 'http-client < 0.4'
>
>*error:* src/Control/Monad/Catch.hs:99:1: Warning: The import of Control.Monad.Trans.Reader'
>is redundant except perhaps to import instances fromControl.Monad.Trans.Reader'
>To import instances alone, use: import Control.Monad.Trans.Reader()
>
>ghc-pkg unregister http-client-tls-0.2.2
>
>*error:* ghc-pkg: cannot find package http-client-tls-0.2.2
>
>ghc-pkg unregister http-client-0.4.2.2
>
>*error:* ghc-pkg: cannot find package http-client-0.4.2.2
>
>cabal install pandoc
>
>*error message:* Resolving dependencies...
>cabal: Could not resolve dependencies:
>trying: pandoc-1.13.1 (user goal)
>trying: yaml-0.8.9.3 (dependency of pandoc-1.13.1)
>next goal: attoparsec (dependency of yaml-0.8.9.3)
>rejecting: attoparsec-0.12.1.2, 0.12.1.1, 0.12.1.0, 0.12.0.0 (conflict:
>http-types => text==0.11.1.13/installed-9b6..., attoparsec => text>=1.1.1.3)
>rejecting: attoparsec-0.11.3.4, 0.11.3.3, 0.11.3.2, 0.11.3.1, 0.11.3.0,
>0.11.2.1 (conflict: http-types => text==0.11.1.13/installed-9b6...,
>attoparsec => text>=0.11.3.1)
>trying: attoparsec-0.11.1.0
>next goal: aeson (dependency of pandoc-1.13.1)
>rejecting: aeson-0.8.0.2, 0.7.0.6 (conflict: attoparsec==0.11.1.0, aeson =>
>attoparsec>=0.11.3.4)
>rejecting: aeson-0.7.0.4 (conflict: pandoc => aeson>=0.7.0.5 && <0.9)
>rejecting: aeson-0.6.2.1, 0.6.2.0, 0.6.1.0, 0.6.0.2, 0.6.0.1, 0.6.0.0,
>0.5.0.0, 0.4.0.1, 0.4.0.0, 0.3.2.14, 0.3.2.13, 0.3.2.12, 0.3.2.11,
>0.3.2.10, 0.3.2.9, 0.3.2.8, 0.3.2.7, 0.3.2.6, 0.3.2.5, 0.3.2.4, 0.3.2.3,
>0.3.2.2, 0.3.2.1, 0.3.2.0, 0.3.1.1, 0.3.1.0, 0.3.0.0, 0.2.0.0, 0.1.0.0
>(conflict: pandoc => aeson>=0.7 && <0.9)
>rejecting: aeson-0.8.0.1, 0.8.0.0, 0.7.0.5 (conflict: attoparsec==0.11.1.0,
>aeson => attoparsec>=0.11.3.4)
>rejecting: aeson-0.7.0.3, 0.7.0.2, 0.7.0.1, 0.7.0.0 (conflict: pandoc =>
>aeson>=0.7.0.5 && <0.9)
>
>-- 
>You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1322cae8-c07d-4e81-aa69-2b20dbccb93b%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pandoc installation problem, on unbuntu 12.04
       [not found] ` <1322cae8-c07d-4e81-aa69-2b20dbccb93b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2014-11-11 15:21   ` John MacFarlane
@ 2014-12-01 10:00   ` Xiangwu Lu
  1 sibling, 0 replies; 3+ messages in thread
From: Xiangwu Lu @ 2014-12-01 10:00 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 886 bytes --]

Hi John,

Thanks for your reply. 

I found that by the terminal command: apt-get and cabal install, will not 
give the correct (new) version of 'cabal-install' tool. I have downloaded 
the haskell package and installed it manually, and then use the 'cabal 
intall' tool installed the pandoc, it worked. 

Thanks. 

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/86dc33ca-95dc-459d-8eea-4b5aca352b4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1848 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-01 10:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-11 11:43 pandoc installation problem, on unbuntu 12.04 Xiangwu Lu
     [not found] ` <1322cae8-c07d-4e81-aa69-2b20dbccb93b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2014-11-11 15:21   ` John MacFarlane
2014-12-01 10:00   ` Xiangwu Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).