From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 4DB917F75C for ; Sat, 30 Aug 2014 13:28:04 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of adrien@notk.org) identity=pra; client-ip=91.121.71.147; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of adrien@notk.org designates 91.121.71.147 as permitted sender) identity=mailfrom; client-ip=91.121.71.147; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@nautica.notk.org) identity=helo; client-ip=91.121.71.147; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="postmaster@nautica.notk.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhIFAD20AVRbeUeT/2dsb2JhbABbgw2BKoJ8zEcBgREWd4QEAQUjVhALDgoCAgUTDgICDwUYHQETE4hGpwWUfgEXgSyOIQeCeTaBHQWcWwGVHoNjOy+CTwEBAQ X-IPAS-Result: AhIFAD20AVRbeUeT/2dsb2JhbABbgw2BKoJ8zEcBgREWd4QEAQUjVhALDgoCAgUTDgICDwUYHQETE4hGpwWUfgEXgSyOIQeCeTaBHQWcWwGVHoNjOy+CTwEBAQ X-IronPort-AV: E=Sophos;i="5.04,431,1406584800"; d="scan'208";a="92226658" Received: from nautica.notk.org ([91.121.71.147]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 30 Aug 2014 13:28:03 +0200 Received: by nautica.notk.org (Postfix, from userid 1003) id D1B5FC01A; Sat, 30 Aug 2014 13:28:02 +0200 (CEST) Date: Sat, 30 Aug 2014 13:28:02 +0200 From: Adrien Nader To: Philippe Wang Cc: David Guaspari , OCaml Mailing List Message-ID: <20140830112802.GA12283@notk.org> References: <005c01cfc3a5$dc247270$946d5750$@com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [Caml-list] unable to install opam under cywgin On Sat, Aug 30, 2014, Philippe Wang wrote: > On Fri, Aug 29, 2014 at 6:22 PM, David Guaspari wrote: > > I am trying to install opam 1.1.2. Under cygwin I do > > > > ./configure > > make lib-ext > > make > > make install > > > > The last of these fails with the error message > > > > -- begin > > > > OPAMROOT=/tmp/opam-install-install src/opam-installer --prefix /usr/local > > opam.install > > [ERROR] Could not find "C:\\opam-full-1.1.2\\src\\opam" > > [ERROR] Could not find "C:\\opam-full-1.1.2\\src\\opam-admin" > > [ERROR] Could not find "C:\\opam-full-1.1.2\\src\\opam-installer" > > doc/man\opam.1 => /usr/local\man\man1\opam.1 > > Fatal error: exception Unix.Unix_error(20, "create_process", "/bin/sh") > > Makefile:52: recipe for target 'install' failed > > make: *** [install] Error 2 > > > > -- end > > > > In fact, the directory C:opam-full-1.1.2\src contains the executables > > opam.exe > > opam-admin.exe > > opam-installer.exe > > > > I made copies of these named opam, opam-admin, opam-installer and > > reran > > > > make install. > > > > Now the error message is shorter > > > > -- begin > > > > OPAMROOT=/tmp/opam-install-install src/opam-installer --prefix /usr/local > > opam.install > > src\opam => /usr/local\bin\opam > > Fatal error: exception Unix.Unix_error(20, "create_process", "/bin/sh") > > Makefile:52: recipe for target 'install' failed > > make: *** [install] Error 2 > > > > -- end > > > > Here's a guess. The installation wants to execute files whose names do not > > end > > in ".exe", but create_process (on a Windows machine) fails because it > > wants a file whose > > name ends in ".exe". If my guess is right, I'm not sure how to fix the > > problem. > > > > Any help would be appreciated. > > > > Fatal error: exception Unix.Unix_error(20, "create_process", "/bin/sh") > > ===> Error 20 is Unix.ENOENT, which means "No such file or directory". > That means it can't find "/bin/sh". Are you sure that you have > "/bin/sh"? If the program is "native windows", it cannot understand posix paths like /bin/sh. It is a very likely issue in this context. On Windows, you can ask to run either "foo" or "foo.exe" and you get the same behaviour (well, iirc: you'd have to check the doc for CreateProcess to be sure). -- Adrien Nader