[Haskell-cafe] Installing Curl on Windows 7 - no longer a
permissions problem - due to dependency conflicts
Ralph Hodgson
rhodgson at topquadrant.com
Tue Jun 1 14:19:04 EDT 2010
Permissions issue was straight-forward to resolve.
Yesterday I tracked this down to a conflict with versions of bytestring.
ghc.6.10.4 needs bytestring-0.9.1.4
ghc-pkg: unregistering bytestring-0.9.1.4 would break the following
packages: ha
ddock-2.4.2 ghc-6.10.4 Win32-2.2.0.0 regex-base-0.72.0.2
regex-posix-0.72.0.3 re
gex-compat-0.71.0.1 zlib-0.5.0.0 HTTP-4000.0.6 cgi-3001.1.7.1 curl-1.3.5
QuickCh
eck-2.1.0.3 tagsoup-0.9 feed-0.3.7 tagsoup-0.10 utf8-string-0.3.6 xml-1.3.7
(use
--force to override)
other libraries need bytestring-09.1.6
ghc-pkg: unregistering bytestring-0.9.1.6 would break the following
packages: Wi
n32-2.2.0.0 Win32-2.2.0.2 HTTP-4000.0.9 (use --force to override)
Yesterday I could not access haskell.org to see if I can install a newer
version of GHC - network or server is done.
Today I am upgrading everything to ghc-6.12.2
There must be a tool somewhere that can assess potential conflicts :
A needs B (>2)
A needs C (>1) but
C needs B (<2)
I will look once I get passed these install issues
From: haskell-cafe-bounces at haskell.org
[mailto:haskell-cafe-bounces at haskell.org] On Behalf Of Ralph Hodgson
Sent: Monday, May 31, 2010 2:51 PM
To: 'Don Stewart'
Cc: 'Henning Thielemann'; haskell-cafe at haskell.org
Subject: [Haskell-cafe] Installing Curl on Windows 7 - permissions problem
Don,
More angst with Windows 7 permissions. I hope this is a simple thing for
you or someone else to help me with.
I have successfully installed other packages into my private cabal area.
When it came to the Haskell curl package, I got permission errors.
Just to prove that things go to the right places, here is a successful run
with the Parseargs Package.
C:\Users\Ralph>cabal install parseargs
Resolving dependencies...
Downloading parseargs-0.1.3...
Configuring parseargs-0.1.3...
Preprocessing library parseargs-0.1.3...
Preprocessing executables for parseargs-0.1.3...
Building parseargs-0.1.3...
[1 of 1] Compiling System.Console.ParseArgs ( System\Console\ParseArgs.hs,
dist\
build\System\Console\ParseArgs.o )
Registering parseargs-0.1.3...
[1 of 2] Compiling System.Console.ParseArgs ( System\Console\ParseArgs.hs,
dist\
build\parseargs-example\parseargs-example-tmp\System\Console\ParseArgs.o )
[2 of 2] Compiling Main ( parseargs-example.hs,
dist\build\parseargs
-example\parseargs-example-tmp\Main.o )
Linking dist\build\parseargs-example\parseargs-example.exe ...
Installing library in
C:\Users\Ralph\AppData\Roaming\cabal\parseargs-0.1.3\ghc-6.10.4
Installing executable(s) in C:\Users\Ralph\AppData\Roaming\cabal\bin
Registering parseargs-0.1.3...
Parseargs installed fine and the package list shows it in my cabal
directory.
C:\Users\Ralph>ghc-pkg list
C:/Program Files (x86)/Haskell Platform/2009.2.0.2\package.conf:
Cabal-1.6.0.3, GLUT-2.1.1.2, HTTP-4000.0.6, HUnit-1.2.0.3,
OpenGL-2.2.1.1, QuickCheck-1.2.0.0, Win32-2.2.0.0, array-0.2.0.0,
base-3.0.3.1, base-4.1.0.0, bytestring-0.9.1.4, cgi-3001.1.7.1,
containers-0.2.0.1, directory-1.0.0.3, (dph-base-0.3),
(dph-par-0.3), (dph-prim-interface-0.3), (dph-prim-par-0.3),
(dph-prim-seq-0.3), (dph-seq-0.3), extensible-exceptions-0.1.1.0,
fgl-5.4.2.2, filepath-1.1.0.2, (ghc-6.10.4), ghc-prim-0.1.0.0,
haddock-2.4.2, haskell-src-1.0.1.3, haskell98-1.0.1.0, hpc-0.5.0.3,
html-1.0.1.2, integer-0.1.0.1, mtl-1.1.0.2, network-2.2.1.4,
old-locale-1.0.0.1, old-time-1.0.0.2, packedstring-0.1.0.1,
parallel-1.1.0.1, parsec-2.1.0.1, pretty-1.0.1.0, process-1.0.1.1,
random-1.0.0.1, regex-base-0.72.0.2, regex-compat-0.71.0.1,
regex-posix-0.72.0.3, rts-1.0, stm-2.1.1.2, syb-0.1.0.1,
template-haskell-2.3.0.1, time-1.1.2.4, xhtml-3000.2.0.1,
zlib-0.5.0.0
C:\Users\Ralph\AppData\Roaming\ghc\i386-mingw32-6.10.4\package.conf:
Cabal-1.8.0.4, ListZipper-1.1.1.0, QuickCheck-2.1.0.3,
bytestring-0.9.1.6, deepseq-1.1.0.0, parseargs-0.1.3, tagsoup-0.9
C:\Users\Ralph>
Now for curl.
I installed Mingw32 (following the advice at
http://old.nabble.com/cURL-under-Windows-again-td21789068.html#a21789068)
This is what happened when I went to my windows shell:
C:\Users\Ralph\AppData\Roaming\cabal\curl-1.3.5>runhaskell setup build
Preprocessing library curl-1.3.5...
Building curl-1.3.5...
Registering curl-1.3.5...
C:\Users\Ralph\AppData\Roaming\cabal\curl-1.3.5>runhaskell setup install
setup: permission denied
I am wondering if the curl package is trying to put things in system
folders?
Help much appreciated - tight deadlines
Ralph
-----Original Message-----
From: haskell-cafe-bounces at haskell.org
[mailto:haskell-cafe-bounces at haskell.org] On Behalf Of Don Stewart
Sent: Wednesday, May 19, 2010 1:37 PM
To: Henning Thielemann
Cc: haskell-cafe at haskell.org
Subject: Re: [Haskell-cafe] TagSoup 0.9
schlepptop:
> Don Stewart schrieb:
> > Or use things from the download-curl package, which provides a nice
> > openURL function.
>
> The openURL function from TagSoup is lazy, which the proposed
> replacement 'getResponseBody =<< simpleHTTP (getRequest x)' is not. Is
> the openURL function from download-curl lazy?
>
Yes, see:
Network.Curl.Download.Lazy.openLazyURI
though I think it is possible that I strictified the code. Have a play
around with it if it doesn't meet your needs -- should be /trivial/ to
ensure it is chunk-wise lazy.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe at haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100601/ca31cb39/attachment.html
More information about the Haskell-Cafe
mailing list