can't install hackage package

Hello, I've been using this hackage package "rex" without problems on two computers (linux, windows) but now I fail setting it up on a third computer which confuses me, and the error message is not really enlightening for me: $ cabal update Downloading the latest package list from hackage.haskell.org $ cabal --version cabal-install version 1.16.0.2 using version 1.16.0.3 of the Cabal library $ cabal install rex Resolving dependencies... cabal: Could not resolve dependencies: trying: rex-0.3.1 Any idea? Thank you! Emmanuel

This is on fedora18 if it can help.
On 21 Jan 2013 20:53, "Emmanuel Touzery"
Hello,
I've been using this hackage package "rex" without problems on two computers (linux, windows) but now I fail setting it up on a third computer which confuses me, and the error message is not really enlightening for me:
$ cabal update Downloading the latest package list from hackage.haskell.org $ cabal --version cabal-install version 1.16.0.2 using version 1.16.0.3 of the Cabal library $ cabal install rex Resolving dependencies... cabal: Could not resolve dependencies: trying: rex-0.3.1
Any idea?
Thank you!
Emmanuel

Hi, I wanted to try this under Windows also, but there are even more problems, since "pcre-light" dependency is not available (perhaps in case of using MSys, MingW) Hartmut Windows, cabal 1.16.0.2, I got cabal install rex --dry-run Resolving dependencies... In order, the following would be installed (use -v for more details): hslogger-1.2.1 MissingH-1.2.0.0 pcre-light-0.4 split-0.2.1.1 th-lift-0.5.5 th-orphans-0.6 haskell-src-meta-0.6.0.1 rex-0.3.1 cabal install Resolving dependencies... Configuring pcre-light-0.4... cabal: Missing dependency on a foreign library: * *Missing C library: pcre* This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. cabal: Error: some packages failed to install: pcre-light-0.4 failed during the configure step. The exception was: ExitFailure 1 rex-0.3.1 depends on pcre-light-0.4 which failed to install. Am 21.01.2013 21:10, schrieb Emmanuel Touzery:
This is on fedora18 if it can help.
On 21 Jan 2013 20:53, "Emmanuel Touzery"
mailto:etouzery@gmail.com> wrote: Hello,
I've been using this hackage package "rex" without problems on two computers (linux, windows) but now I fail setting it up on a third computer which confuses me, and the error message is not really enlightening for me:
$ cabal update Downloading the latest package list from hackage.haskell.org http://hackage.haskell.org $ cabal --version cabal-install version 1.16.0.2 using version 1.16.0.3 of the Cabal library $ cabal install rex Resolving dependencies... cabal: Could not resolve dependencies: trying: rex-0.3.1
Any idea?
Thank you!
Emmanuel
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

I made it work on another windows computer by copying a pcre.dll i found on
internet and setting some environment variables. It's not difficult but
right now i forgot the details..
---------- Forwarded message ----------
From: "Hartmut"
Hello,
I've been using this hackage package "rex" without problems on two computers (linux, windows) but now I fail setting it up on a third computer which confuses me, and the error message is not really enlightening for me:
$ cabal update Downloading the latest package list from hackage.haskell.org $ cabal --version cabal-install version 1.16.0.2 using version 1.16.0.3 of the Cabal library $ cabal install rex Resolving dependencies... cabal: Could not resolve dependencies: trying: rex-0.3.1
Any idea?
Thank you!
Emmanuel
_______________________________________________ Beginners mailing listBeginners@haskell.orghttp://www.haskell.org/mailman/listinfo/beginners _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Yes i put the source then extra include dirs and extra lib dirs and
pcre.dll in the same folder and worked great.
On 21 Jan 2013 21:37, "Hartmut"
Hi, I wanted to try this under Windows also, but there are even more problems, since "pcre-light" dependency is not available (perhaps in case of using MSys, MingW) Hartmut
Windows, cabal 1.16.0.2, I got
cabal install rex --dry-run
Resolving dependencies... In order, the following would be installed (use -v for more details): hslogger-1.2.1 MissingH-1.2.0.0 pcre-light-0.4 split-0.2.1.1 th-lift-0.5.5 th-orphans-0.6 haskell-src-meta-0.6.0.1 rex-0.3.1
cabal install
Resolving dependencies... Configuring pcre-light-0.4... cabal: Missing dependency on a foreign library: * *Missing C library: pcre* This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. cabal: Error: some packages failed to install: pcre-light-0.4 failed during the configure step. The exception was: ExitFailure 1 rex-0.3.1 depends on pcre-light-0.4 which failed to install.
Am 21.01.2013 21:10, schrieb Emmanuel Touzery:
This is on fedora18 if it can help. On 21 Jan 2013 20:53, "Emmanuel Touzery"
wrote: Hello,
I've been using this hackage package "rex" without problems on two computers (linux, windows) but now I fail setting it up on a third computer which confuses me, and the error message is not really enlightening for me:
$ cabal update Downloading the latest package list from hackage.haskell.org $ cabal --version cabal-install version 1.16.0.2 using version 1.16.0.3 of the Cabal library $ cabal install rex Resolving dependencies... cabal: Could not resolve dependencies: trying: rex-0.3.1
Any idea?
Thank you!
Emmanuel
_______________________________________________ Beginners mailing listBeginners@haskell.orghttp://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Hi.
I've been using this hackage package "rex" without problems on two computers (linux, windows) but now I fail setting it up on a third computer which confuses me, and the error message is not really enlightening for me:
$ cabal update Downloading the latest package list from hackage.haskell.org $ cabal --version cabal-install version 1.16.0.2 using version 1.16.0.3 of the Cabal library $ cabal install rex Resolving dependencies... cabal: Could not resolve dependencies: trying: rex-0.3.1
That's a bad error message indeed ;) What's your GHC version? Is this an otherwise clean package database? Can you post the output of "cabal install rex --dry-run -v3"? If the log is too long to attach to a mailing list mail, just mail it to me personally. Cheers, Andres

it's ghc 7.4.1 that came with fedora.
yes i wiped ~/.ghc and ~/.cabal and it's still the same problem.
i didn't know those cabal flags.
i see some infos in the log, maybe i can even figure it by myself now:
https://dl.dropbox.com/u/22600720/rex-fail.txt
On Mon, Jan 21, 2013 at 9:44 PM, Andres Löh
Hi.
I've been using this hackage package "rex" without problems on two computers (linux, windows) but now I fail setting it up on a third computer which confuses me, and the error message is not really enlightening for me:
$ cabal update Downloading the latest package list from hackage.haskell.org $ cabal --version cabal-install version 1.16.0.2 using version 1.16.0.3 of the Cabal library $ cabal install rex Resolving dependencies... cabal: Could not resolve dependencies: trying: rex-0.3.1
That's a bad error message indeed ;)
What's your GHC version? Is this an otherwise clean package database? Can you post the output of "cabal install rex --dry-run -v3"? If the log is too long to attach to a mailing list mail, just mail it to me personally.
Cheers, Andres

i have now installed pcre-light separately, it still doesn't work.
i think the problem is that it claims that ghc is an unknown package. that
was working on other computers. maybe there's something note quite right
about the way it's all configured on the (just released) fedora18 haskell
platform setup?
On Mon, Jan 21, 2013 at 9:50 PM, Emmanuel Touzery
it's ghc 7.4.1 that came with fedora.
yes i wiped ~/.ghc and ~/.cabal and it's still the same problem.
i didn't know those cabal flags. i see some infos in the log, maybe i can even figure it by myself now:
https://dl.dropbox.com/u/22600720/rex-fail.txt
On Mon, Jan 21, 2013 at 9:44 PM, Andres Löh
wrote: Hi.
I've been using this hackage package "rex" without problems on two computers (linux, windows) but now I fail setting it up on a third computer which confuses me, and the error message is not really enlightening for me:
$ cabal update Downloading the latest package list from hackage.haskell.org $ cabal --version cabal-install version 1.16.0.2 using version 1.16.0.3 of the Cabal library $ cabal install rex Resolving dependencies... cabal: Could not resolve dependencies: trying: rex-0.3.1
That's a bad error message indeed ;)
What's your GHC version? Is this an otherwise clean package database? Can you post the output of "cabal install rex --dry-run -v3"? If the log is too long to attach to a mailing list mail, just mail it to me personally.
Cheers, Andres

Hi.
i think the problem is that it claims that ghc is an unknown package. that was working on other computers. maybe there's something note quite right about the way it's all configured on the (just released) fedora18 haskell platform setup?
That's indeed what seems strange about your log, bad error message aside. What does ghc-pkg list ghc say on your system? Cheers, Andres

Hello,
$ ghc-pkg list ghc
/usr/lib64/ghc-7.4.1/package.conf.d
/home/emmanuel/.ghc/x86_64-linux-7.4.1/package.conf.d
On Mon, Jan 21, 2013 at 10:06 PM, Andres Löh
Hi.
i think the problem is that it claims that ghc is an unknown package. that was working on other computers. maybe there's something note quite right about the way it's all configured on the (just released) fedora18 haskell platform setup?
That's indeed what seems strange about your log, bad error message aside. What does
ghc-pkg list ghc
say on your system?
Cheers, Andres

$ ghc-pkg list ghc /usr/lib64/ghc-7.4.1/package.conf.d /home/emmanuel/.ghc/x86_64-linux-7.4.1/package.conf.d
Aha. Is there something like a ghc-ghc package available on Fedora? Perhaps you need a ghc-ghc-dev as well, I don't know. I'm somewhat surprised that these aren't installed by default: strictly speaking, the HP contains GHC itself, and installing the HP should install GHC with all the core libraries. Cabal is confused here because "ghc" is a package internal to GHC which isn't available on Hackage, so if it's not installed together with GHC, then Cabal has absolutely no info about it. Nevertheless, it should quit with a meaningful message. Cheers, Andres

bingo...
i had to install the "ghc-ghc" and "ghc-ghc-devel" packages (at first I
installed only "ghc-ghc" and that wasn't enough". Now it's building and I'm
pretty sure it will go through.
Thank God for this mailing list, I could never find this out on my own.
Thank you!
Emmanuel
On Mon, Jan 21, 2013 at 10:13 PM, Andres Loeh
$ ghc-pkg list ghc /usr/lib64/ghc-7.4.1/package.conf.d /home/emmanuel/.ghc/x86_64-linux-7.4.1/package.conf.d
Aha. Is there something like a ghc-ghc package available on Fedora? Perhaps you need a ghc-ghc-dev as well, I don't know. I'm somewhat surprised that these aren't installed by default: strictly speaking, the HP contains GHC itself, and installing the HP should install GHC with all the core libraries.
Cabal is confused here because "ghc" is a package internal to GHC which isn't available on Hackage, so if it's not installed together with GHC, then Cabal has absolutely no info about it. Nevertheless, it should quit with a meaningful message.
Cheers, Andres
participants (4)
-
Andres Loeh
-
Andres Löh
-
Emmanuel Touzery
-
Hartmut