[darcs-devel] [issue1846] Darcs does not build in out-of-the-box Haskell Platform on Windows

Bob Calco bugs at darcs.net
Mon May 17 14:10:40 UTC 2010


Bob Calco <bob.calco at softcraft-solutions.com> added the comment:

I'm trying to get it working with my Cygwin install, but no bananas:

*$ cabal install curl
Resolving dependencies...
Configuring curl-1.3.5...
cygwin warning:
  MS-DOS style path detected:
C:\Users\Bob\AppData\Roaming\cabal/share/config.site
  Preferred POSIX equivalent is:
/cygdrive/c/Users/Bob/AppData/Roaming/cabal/share/config.site
  CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
configure: creating ./config.status
config.status: creating curl.buildinfo
cabal.exe: Missing dependency on a foreign library:
* Missing C library: curl
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.exe: Error: some packages failed to install:
curl-1.3.5 failed during the configure step. The exception was:
ExitFailure 1
*
I have libcurl 3 and every other package having to do with curl that is
provided by the cygwin setup.exe. Not sure why it can't find it from within
my cygwin bash shell. I don't think it has to do with the POSIX path
warning, all kinds of other things have compiled curl support (like some
Ruby gems for my Rails work).

I will go ahead and use the binary distribution (if I must choose, it's more
important at the moment that I get up and running with darcs than that I
compile it from the source), will be happy to test 2.4.4 for you.

As far as building on Windows: I happen to have cygwin for completely
unrelated development reasons, but in general I don't like having to compile
with the cygwin DLL requirement, so getting it working on MSYS with MinGW
(or even on Cygwin using MinGW) would be the more ideal approach.

I will definitely check out the wiki's advice along these when I have more
free time to play with building it.

Parenthetically I'll add: I so love my Ubuntu development machine! ;)

- Bob

On Mon, May 17, 2010 at 8:24 AM, Eric Kow <bugs at darcs.net> wrote:

>
> Eric Kow <kowey at darcs.net> added the comment:
>
> Thanks for the report, Bob.  This is slightly tricky:
>
> * the binary ships with curl support for best performance (incidentally,
> if you'd care to test the 2.4.4 release for us, it's
> http://darcs.net/binaries/windows/darcs-2.4.4-win1.zip )
>
> * http://wiki.darcs.net/BuildingUnderWindows suggests to build with
> -f-curl under Windows as this is the least painful way to get a running
> Darcs (but it's not in the manual).  It also provides instructions on
> building with Curl support (MSYS)
>
> How do you think we should approach this?  I'm not sure what is the
> right way for the wiki (relatively unstable) and the user manual
> (relatively stable) to relate to each other.  Maybe Trent has some
> thoughts on the matter.
>
> ----------
> nosy: +eivuokko, jaredj, kirby, kowey, twb, wglozer
> topic: +Documentation, Windows
>
> __________________________________
> Darcs bug tracker <bugs at darcs.net>
> <http://bugs.darcs.net/issue1846>
> __________________________________
>



-- 
Bob Calco
DBA Softcraft Solutions
16906 Harrierridge Pl.
Lithia, FL 33547
813.383.4968
bob.calco at softcraft-solutions.com

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1846>
__________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20100517/21ec8121/attachment.htm>


More information about the darcs-devel mailing list