[darcs-users] More on (Moron?) Mac OS X, GHC, and darcs
David Roundy
droundy at abridgegame.org
Sun Aug 31 10:26:53 UTC 2003
On Sat, Aug 30, 2003 at 08:53:20PM -0700, Paul Snively wrote:
> OK, I give up: what do I actually need to do to a darcs 0.9.12 distro
> to get it to work? You can assume that I have current libcurl in
> /usr/lib. That is, where do I actually add the -lssl -lcrypto?
>
> Thanks for digging into this!
Well, first thing to mention is that you don't actually need to link with
libcurl in order for darcs to work. If curl is installed somewhere in your
path and libcurl isn't used, darcs will simply use curl (similarly for
wget, if you install that). Oooops. That's not quite true. It seems that
in 0.9.12 the system is set to be windows if libcurl isn't found, which of
course will cause problems.
Plan a: (doesn't involve using libcurl, but only use if you have curl
installed, which should have come along with libcurl.)
First you should run autoconf, since the configure script seems a bit
messed up on the mac. :( Next release I'll have to be more careful about
which version of autoconf I use to create the configure script.
$ autoconf
$ ./configure
edit autoconf.mk to change the line that says "SYS := windows" to "SYS :=
mac".
$ make
(end of plan a)
Plan b:
Edit configure.in to change
AC_CHECK_LIB(curl -lz -L/usr/local/lib, curl_global_init, CURLFLAGS="$CURLFLAGS -lcurl -lz -L/usr/local/lib",
to
AC_CHECK_LIB(curl -lz -lcrypto -lssl -L/usr/local/lib, curl_global_init, CURLFLAGS="$CURLFLAGS -lcurl -lz -lcrypto -lssl -L/usr/local/lib",
Since your libcurl is in /usr/lib, you could remove the -L/usr/local/lib's
from the above, if you like.
Now we run autoconf to get a configure script.
$ autoconf
$ ./configure
This time configure should say that if found libcurl.
$ make
(end of plan b)
I think either of the above two procedures should work. While writing this
email I've only tested plan a (since it only just finished compiling).
Plan b is implemented (and working) in the latest darcs version (which I
guess I should get around to releasing pretty soon...), which you can get
via your compiled 0.9.12 version if you so choose, via
darcs get -v http://abridgegame.org/repos/darcs
--
David Roundy
http://www.abridgegame.org
More information about the darcs-users
mailing list