On Tue, 21 Jul 2009 09:39:59 +0200, silent_stream <silent_str...@126.com> wrote:

When I compile curl-1.3.5 on Windows xp. I run the prompt "runghc Setup.hs configure " I got the following error
Setup.hs: 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.
I don't know how to fix this problem. Who knows? Please come to help me .

This message means that the curl package depends on the curl package written in C; to get the C curl package, go to http://curl.haxx.se/download.html and download the
proper package (for example
  http://curl.haxx.se/download/curl-7.19.5-win32-ssl-sspi.zip
) and unpack it into a directory with no space in the path name, e.g.:
  C:\temp\curl-7.19.5

If you do not have MingW/MSYS installed, do it now[1], you will need it for
other packages as well.

Open a DOS shell and go to the curl C package directory, give command:
  make
; it will take several minutes to build.
Copy the contents of directory
  C:\temp\curl-7.19.5\include\curl
to a directory where you collect .h files for linking, e.g.:
  C:\usr\local\include\curl
Copy the contents of directory
  C:\temp\curl-7.19.5\lib\.libs
to a directory where you collect library files for linking, e.g.:
  C:\usr\local\lib\curl

To let the compiler find the necessary files, set environment variables:
  set C_INCLUDE_PATH=C:\usr\local\include
  set LIBRARY_PATH=C:\usr\local\lib;C:\usr\local\lib\curl

Now you will be able to compile the Haskell curl package.


[1] http://www.haskell.org/haskellwiki/Windows#Tools_for_compilation


--
Met vriendelijke groet,
Henk-Jan van Tuyl


--
http://functor.bamikanarie.com
http://Van.Tuyl.eu/
--


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to