From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 356D8BBAF for ; Wed, 6 May 2009 20:44:31 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApUBANh2AUrU436rkGdsb2JhbACBUJUoAQEBAQkJDAcRA7pFAYQABQ X-IronPort-AV: E=Sophos;i="4.38,431,1233529200"; d="scan'208";a="28863672" Received: from moutng.kundenserver.de ([212.227.126.171]) by mail1-smtp-roc.national.inria.fr with ESMTP; 06 May 2009 20:44:30 +0200 Received: from office1.lan.sumadev.de (dslb-094-219-213-148.pools.arcor-ip.net [94.219.213.148]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MKv1o-1M1m6W1LtN-000jva; Wed, 06 May 2009 20:44:28 +0200 Received: from [192.168.5.104] (dslb-094-219-213-148.pools.arcor-ip.net [94.219.213.148]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id A8606C0EAA; Wed, 6 May 2009 20:41:36 +0200 (CEST) Subject: Re: [Caml-list] ocamlfind question on cygwin From: Gerd Stolpmann To: Alan Schmitt Cc: caml-list@inria.fr In-Reply-To: <4EF1A68E-7137-4EA5-9391-2EA568062A54@polytechnique.org> References: <90823c940905060911v604a5fa4l3d93547ea9e08784@mail.gmail.com> <4EF1A68E-7137-4EA5-9391-2EA568062A54@polytechnique.org> Content-Type: text/plain Date: Wed, 06 May 2009 20:47:04 +0200 Message-Id: <1241635624.11478.7.camel@flake.lan.gerd-stolpmann.de> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/il3ifICbAX20HO8Q/sDKQ7psKSHQIJ9T+nYs U4APHBxt34GXxVW/uGbAqhWNwSY528kUyvifnok/CJtH65VPF+ SjIRk+YbFfD9I31eCF1Og== X-Spam: no; 0.00; ocamlfind:01 cygwin:01 gerd:01 stolpmann:01 gerd:01 schmitt:01 schmitt:01 mingw:01 ocamlfind:01 cygwin:01 lib:01 ocaml:01 mkdir:01 lib:01 ocaml:01 Am Mittwoch, den 06.05.2009, 19:23 +0200 schrieb Alan Schmitt: > On 6 mai 09, at 18:11, Dmitry Bely wrote: > > > On Wed, May 6, 2009 at 7:57 PM, Alan Schmitt > > wrote: > >> Hello, > >> > >> I'm trying to debug some installation issue on godi/mingw, and it > >> seems to > >> be a problem with ocamlfind using a cygwin console. When I try: > >> > >> $ ocamlfind install lwt -destdir > >> "/home/Administrateur/godi/lib/ocaml/pkg-lib" META > >> ocamlfind: Bad configuration: Cannot mkdir > >> /home/Administrateur/godi/lib/ocaml/pkg-lib\lwt because a path > >> component > >> does not exist or is not a directory > > > > Probably your ocamlfind is a mingw (native Win32) application, and so > > you cannot use cygwin paths (/home/...). > > As godi uses cygwin paths, does it mean that one cannot use ocamlfind > in godi packages for mingw? Actually, this is a big problem. In godi_console, I worked around by translating paths between cygwin and Win32 as needed. All other godi apps do not provide this convenience feature - they are win32 apps and require win32 paths. In order to help packages, there is LOCALBASE_NATIVE. It is LOCALBASE translated to Win32 style. Look into the godi-findlib package for an example how to use it. Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Phone: +49-6151-153855 Fax: +49-6151-997714 ------------------------------------------------------------