Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't insatll Pandoc in Gentoo(KDE) , why?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
x4211
n00b
n00b


Joined: 01 Sep 2015
Posts: 5

PostPosted: Tue Sep 01, 2015 6:51 am    Post subject: Can't insatll Pandoc in Gentoo(KDE) , why? Reply with quote

Code:
{15-09-01 14:25}localhost:~ % sudo  emerge pandoc   
Password:

 * IMPORTANT: 16 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


 * IMPORTANT: 4 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.
Calculating dependencies... done!
[ebuild     UD#] dev-haskell/text-0.11.3.1 [1.1.1.3]
[ebuild  N     ] dev-haskell/transformers-0.3.0.0-r1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/blaze-builder-0.3.3.2  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/byteable-0.1.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/hashable-1.2.1.0  USE="-doc -hscolour -profile {-test}" CPU_FLAGS_X86="sse2 sse4_1"
[ebuild  N     ] dev-haskell/data-default-class-0.0.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/syb-0.4.3  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/random-1.0.1.1-r1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/cereal-0.4.0.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/base64-bytestring-1.0.0.1  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/zlib-0.5.4.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/attoparsec-0.10.4.0  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/utf8-string-0.3.8  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/extensible-exceptions-0.1.1.4  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/dlist-0.6.0.1  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/base-unicode-symbols-0.2.2.4  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/temporary-1.1.2.4  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/primitive-0.5.1.0  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/old-locale-1.0.0.7  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/asn1-types-0.2.0  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/text-stream-decode-0.1.0.5  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/binary-0.7.1.0  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/digest-0.0.1.2  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/mtl-2.1.2-r1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/vector-0.10.0.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/transformers-base-0.4.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/unordered-containers-0.2.3.3  USE="-debug -doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/cryptohash-0.11.1  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/securemem-0.1.3  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/blaze-markup-0.5.1.6  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/xml-1.3.13  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/case-insensitive-1.0.0.2-r1  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/crypto-pubkey-types-0.4.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/mmorph-1.0.0  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/tagsoup-0.13  USE="-doc -download -hscolour -profile"
[ebuild  N     ] dev-haskell/data-default-instances-containers-0.0.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/data-default-instances-dlist-0.0.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/data-default-instances-old-locale-0.0.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/data-default-instances-base-0.0.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/quickcheck-2.6  USE="template_haskell -doc -hscolour -profile"
[ebuild  N     ] dev-haskell/mime-types-0.1.0.3  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/failure-0.2.0.3  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/zlib-bindings-0.1.1.5  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/nats-0.2  USE="hashable -doc -hscolour -profile"
[ebuild  N     ] dev-haskell/parsec-3.1.4  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/crypto-random-0.0.7  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/data-default-0.5.3  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/monad-control-0.3.2.2  USE="instancest -doc -hscolour -profile"
[ebuild  N     ] dev-haskell/aeson-0.6.2.1  USE="-developer -doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/regex-base-0.93.2-r1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/blaze-html-0.6.1.2  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/http-types-0.8.3  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/asn1-data-0.7.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/crypto-cipher-types-0.0.9  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/pem-0.2.2  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/zip-archive-0.1.3.4  USE="-doc -executable -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/alex-3.1.3  USE="-doc {-test}"
[ebuild  N     ] dev-haskell/hslua-0.3.6.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/happy-1.19.4  USE="-doc {-test}"
[ebuild  N     ] dev-haskell/semigroups-0.12.2  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/network-2.4.1.2  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/lifted-base-0.2.1.1  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/void-0.6.1  USE="-doc -hscolour -profile -safe"
[ebuild  N     ] dev-haskell/certificate-1.3.9  USE="-doc -executable -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/pandoc-types-1.12.3  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/cipher-aes-0.2.5  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/cookie-0.4.0.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/publicsuffixlist-0.1  USE="-create -doc -hscolour -profile -runtimelist {-test}"
[ebuild  N     ] dev-haskell/cipher-rc4-0.1.4  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/crypto-numbers-0.2.3  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/regex-posix-0.95.2  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/regex-pcre-builtin-0.94.4.8.8.35  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/resourcet-0.4.9  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/crypto-pubkey-0.2.1  USE="-benchmark -doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/http-4000.2.8  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/highlighting-kate-0.5.5  USE="-doc -executable -hscolour -pcre-light -profile"
[ebuild  N     ] dev-haskell/texmath-0.6.4  USE="-cgi -doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/regex-compat-0.95.1  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/socks-0.5.4  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/cprng-aes-0.5.2  USE="-doc -hscolour -profile"
[ebuild  N     ] dev-haskell/conduit-1.0.15.1  USE="-doc -hscolour -nohandles -profile {-test}"
[ebuild  N     ] dev-haskell/tls-1.1.5  USE="compat -doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/yaml-0.8.5.2  USE="-doc -hscolour -no-exe -profile -system-libyaml {-test}"
[ebuild  N     ] dev-haskell/blaze-builder-conduit-1.0.0  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/tls-extra-0.6.6  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/zlib-conduit-1.0.0  USE="debug -doc -hscolour -profile {-test}"
[ebuild  N     ] dev-haskell/http-conduit-1.9.5.1  USE="-doc -hscolour -profile {-test}"
[ebuild  N     ] app-text/pandoc-1.12.1-r1  USE="http-conduit -doc -embed_data_files -hscolour -profile {-test}"

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-haskell/text:0

  (dev-haskell/text-1.1.1.3:0/1.1.1.3::gentoo, installed) pulled in by
    >=dev-haskell/text-1.1:=[profile?] required by (dev-haskell/text-stream-decode-0.1.0.5:0/0.1.0.5::gentoo, ebuild scheduled for merge)
    ^^                 ^^^                                                                                                                                                                                         

  (dev-haskell/text-0.11.3.1:0/0.11.3.1::gentoo, ebuild scheduled for merge) pulled in by
    <dev-haskell/text-1.1:=[profile?] required by (dev-haskell/blaze-html-0.6.1.2:0/0.6.1.2::gentoo, ebuild scheduled for merge)
    ^                 ^^^ ^                                                                                                                                                                               
    (and 2 more with the same problem)


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.

{15-09-01 14:26}localhost:~ %




Although,Repeatedly modified the mask and unmask files,then install dev-haskell/text ,get the same errror:


Code:
{15-09-01 14:26}localhost:~ % cd /etc/portage
{15-09-01 14:34}localhost:/etc/portage % package.use
{15-09-01 14:35}localhost:/etc/portage/package.use % cat pandoc

{15-09-01 14:35}localhost:/etc/portage/package.use % cd ../package.unmask
{15-09-01 14:35}localhost:/etc/portage/package.unmask % cat pandoc
=dev-haskell/text-1.1.1.3
=dev-haskell/text-0.11.3.1
{15-09-01 14:35}localhost:/etc/portage/package.unmask %



dev-haskell/text-1.1.1.3 and dev-haskell/text-0.11.3.1 can't coexist !

Code:
(dev-haskell/text-1.1.1.3:0/1.1.1.3::gentoo, installed) pulled in by
    >=dev-haskell/text-1.1:=[profile?] required by (dev-haskell/text-stream-decode-0.1.0.5:0/0.1.0.5::gentoo, ebuild scheduled for merge)
    ^^                 ^^^                                                                                                                                                                                         

  (c:0/0.11.3.1::gentoo, ebuild scheduled for merge) pulled in by
    <dev-haskell/text-1.1:=[profile?] required by (dev-haskell/blaze-html-0.6.1.2:0/0.6.1.2::gentoo, ebuild scheduled for merge)



is it a bug?
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Tue Sep 01, 2015 4:38 pm    Post subject: Reply with quote

I've found that Portage and Cabal don't play well together, and it's easiest to install GHC with Portage
and then everything else with Cabal. You need to be on line to use Cabal, and it can't remove
packages, but it's still the easier solution.

Will
Back to top
View user's profile Send private message
khumba
n00b
n00b


Joined: 16 Jun 2011
Posts: 51

PostPosted: Thu Sep 03, 2015 4:23 am    Post subject: Reply with quote

The interface to Portage is a lot more polished than cabal though :).

x4211, I'd recommend unkeywording everything Haskell, to use the unstable Haskell packages. Haskell packages usually have strict version bounds on all dependencies (lower and upper), so conflicts like this occur often as newer versions of dependencies are bumped and some of the depending packages aren't updated yet. I'm not sure about the state of stable Haskell on Gentoo, but unstable is where all the updates come in first, and it feels like unstable gets more love.

Put this in /etc/portage/package.accept_keywords/haskell and you should be good to emerge pandoc:

Code:
app-text/pandoc
dev-haskell/*
dev-lang/ghc


This works for me; I also have the Haskell overlay, but from a few cherry-picked packages I looked at, the main tree seems to be mirroring it pretty well, so you probably don't need to add the overlay.
Back to top
View user's profile Send private message
x4211
n00b
n00b


Joined: 01 Sep 2015
Posts: 5

PostPosted: Sat Sep 05, 2015 4:30 pm    Post subject: Reply with quote

thank you khumba ,but it comes a new problem ,like this:

Code:
....................
[ebuild  N    ~] dev-haskell/http-client-tls-0.2.2  USE="-doc -hscolour -profile {-test}"
[ebuild  N    ~] app-text/pandoc-1.15.0.6  USE="https network-uri -doc -embed_data_files -hscolour -profile {-test} -trypandoc"

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-lang/ghc:0

  (dev-lang/ghc-7.6.3-r1:0/7.6.3::gentoo, installed) pulled in by
    >=dev-lang/ghc-7.4.1:0/7.6.3= required by (dev-haskell/text-1.1.1.3:0/1.1.1.3::gentoo, installed)
                        ^^^^^^^^^                                                                                                       

  (dev-lang/ghc-7.10.2:0/7.10.2::gentoo, ebuild scheduled for merge) pulled in by
    >=dev-lang/ghc-7.8.2:= required by (dev-haskell/aeson-0.9.0.1:0/0.9.0.1::gentoo, ebuild scheduled for merge)
    ^^             ^^^^^                                                                                                                                                                 
    (and 2 more with the same problem)


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.
Back to top
View user's profile Send private message
khumba
n00b
n00b


Joined: 16 Jun 2011
Posts: 51

PostPosted: Sat Sep 05, 2015 4:53 pm    Post subject: Reply with quote

Hello,

Did you try increasing the --backtrack option, as the error message suggests? If you have a lot of Haskell packages installed, they need to be upgraded after unkeywording, and it looks like the backtrack value simply isn't high enough (since Portage is still deciding on dev-haskell/text-1.1.1.3 rather than upgrading it to -1.2.1.3). I'm not seeing a real dependency conflict there.

(Alternatively, as the message says, you could mask lower versions of packages, but Portage should be able to figure this out, and --backtrack is a lot easier, so start with that :).)
Back to top
View user's profile Send private message
x4211
n00b
n00b


Joined: 01 Sep 2015
Posts: 5

PostPosted: Sun Sep 20, 2015 9:00 am    Post subject: Reply with quote

thank you khumba
I have solved the the problem .

-----------------------------
first ,update haskell

then,

Code:
package.accept_keywords $ cat pandoc
app-text/pandoc
dev-haskell/*
=dev-lang/ghc-7.10.2-r1 ~x86


Code:

package.mask $ cat pandoc
<dev-lang/ghc-7.8.3


:D :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum