caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Adrien Nader <adrien@notk.org>
To: Philippe Wang <mail@philippewang.info>
Cc: David Guaspari <dguaspari@atcorp.com>,
	OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] unable to install opam under cywgin
Date: Sat, 30 Aug 2014 13:28:02 +0200	[thread overview]
Message-ID: <20140830112802.GA12283@notk.org> (raw)
In-Reply-To: <CAAFfW_r=kCwRuCSQh6F4eirxRpfXSJmUHpPYyTaDbVc=aEvN-w@mail.gmail.com>

On Sat, Aug 30, 2014, Philippe Wang wrote:
> On Fri, Aug 29, 2014 at 6:22 PM, David Guaspari <dguaspari@atcorp.com> 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

      reply	other threads:[~2014-08-30 11:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-29 16:22 David Guaspari
2014-08-30 10:53 ` Philippe Wang
2014-08-30 11:28   ` Adrien Nader [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140830112802.GA12283@notk.org \
    --to=adrien@notk.org \
    --cc=caml-list@inria.fr \
    --cc=dguaspari@atcorp.com \
    --cc=mail@philippewang.info \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).