darcs

Issue 2071 Darcs won't build in Windows

Title Darcs won't build in Windows
Priority Status given-up
Milestone Resolved in
Superseder Nosy List andrew.pennebaker
Assigned To
Topics

Created on 2011-04-28.21:52:59 by andrew.pennebaker, last changed 2017-07-31.00:34:34 by gh.

Files
File name Uploaded Type Edit Remove
unnamed andrew.pennebaker, 2011-04-28.21:52:58 text/html
unnamed andrew.pennebaker, 2011-05-17.01:57:32 text/html
Messages
msg13970 (view) Author: andrew.pennebaker Date: 2011-04-28.21:52:58
There's a missing C library: curl.

C:\>ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.3
C:\>cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library
C:\>cabal install darcs
...
Configuring darcs-2.5.2...
Warning: Unknown extensions: NoMonoLocalBinds, NoMonoLocalBinds
setup.exe: Missing dependencies on foreign libraries:
* Missing (or bad) header file: curl/curl.h
* Missing C libraries: curl, curl
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
If the header file does exist, it may contain errors that are caught by the
C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
cabal: Error: some packages failed to install:
darcs-2.5.2 failed during the configure step. The exception was:
ExitFailure 1

Cheers,

Andrew Pennebaker
www.yellosoft.us
Attachments
msg13972 (view) Author: kowey Date: 2011-04-28.22:06:23
Could you triage this one, Alexey?

Thanks!

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
For a faster response, try +44 (0)1273 64 2905 or
xmpp:kowey@jabber.fr (Jabber or Google Talk only)
msg13973 (view) Author: exlevan Date: 2011-04-29.00:32:43
2011/4/29 Andrew Pennebaker <bugs@darcs.net>:
> There's a missing C library: curl.
>
> ...
> Configuring darcs-2.5.2...
> Warning: Unknown extensions: NoMonoLocalBinds, NoMonoLocalBinds
> setup.exe: Missing dependencies on foreign libraries:
> * Missing (or bad) header file: curl/curl.h
> * Missing C libraries: curl, curl
> This problem can usually be solved by installing the system packages that
> provide these libraries (you may need the "-dev" versions). If the libraries
> are already installed but in a non-standard location then you can use the
> flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.

Look like libcurl is not installed. Or is it? Note that you have to
install libcurl under MinGW to make it work, and provide the
additional paths to cabal. You can also build without curl (cabal
install -f-curl) at the cost of inferior networking performance.
There's a page on the wiki,
http://wiki.darcs.net/BuildingUnderWindows, feel free to check it
and/or edit it if it's missing something.
msg13974 (view) Author: ganesh Date: 2011-04-29.10:39:30
We talked on IRC the other day about making -f-curl the default on Windows 
so that darcs just works, albeit at the cost of the poor network 
performance. I'm inclined to make that change - any thoughts?
msg13975 (view) Author: exlevan Date: 2011-04-29.11:03:15
2011/4/29 Ganesh Sittampalam <bugs@darcs.net>:
> We talked on IRC the other day about making -f-curl the default on Windows
> so that darcs just works, albeit at the cost of the poor network
> performance. I'm inclined to make that change - any thoughts?

Looks like a good change to make, poorly performing darcs is better
than unbuildable darcs.  As for the users who can compile libcurl for
themselves, they probably know how to enable curl in darcs.
msg14444 (view) Author: andrew.pennebaker Date: 2011-05-17.01:57:32
Best option: Check for libcurl. If it's there, build normally. If not, print
a warning and use -f-curl.

Cheers,

Andrew Pennebaker
www.yellosoft.us



On Fri, Apr 29, 2011 at 7:03 AM, Alexey Levan <bugs@darcs.net> wrote:

>
> Alexey Levan <exlevan@gmail.com> added the comment:
>
> 2011/4/29 Ganesh Sittampalam <bugs@darcs.net>:
> > We talked on IRC the other day about making -f-curl the default on
> Windows
> > so that darcs just works, albeit at the cost of the poor network
> > performance. I'm inclined to make that change - any thoughts?
>
> Looks like a good change to make, poorly performing darcs is better
> than unbuildable darcs.  As for the users who can compile libcurl for
> themselves, they probably know how to enable curl in darcs.
>
> __________________________________
> Darcs bug tracker <bugs@darcs.net>
> <http://bugs.darcs.net/issue2071>
> __________________________________
>
Attachments
msg15106 (view) Author: mulander Date: 2012-02-10.00:27:50
I can confirm on this one. It seems better to disable it by default and 
maybe print an info message that the option is available if you have 
libcurl installed.
History
Date User Action Args
2011-04-28 21:52:59andrew.pennebakercreate
2011-04-28 22:06:24koweysetmessages: + msg13972
2011-04-29 00:32:44exlevansetmessages: + msg13973
2011-04-29 10:39:31ganeshsetmessages: + msg13974
2011-04-29 11:03:15exlevansetmessages: + msg13975
2011-05-17 01:57:33andrew.pennebakersetfiles: + unnamed
messages: + msg14444
2012-02-10 00:27:51mulandersetmessages: + msg15106
2017-07-31 00:34:34ghsetstatus: unknown -> given-up