caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] unable to install opam under cywgin
@ 2014-08-29 16:22 David Guaspari
  2014-08-30 10:53 ` Philippe Wang
  0 siblings, 1 reply; 3+ messages in thread
From: David Guaspari @ 2014-08-29 16:22 UTC (permalink / raw)
  To: caml-list

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.







^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] unable to install opam under cywgin
  2014-08-29 16:22 [Caml-list] unable to install opam under cywgin David Guaspari
@ 2014-08-30 10:53 ` Philippe Wang
  2014-08-30 11:28   ` Adrien Nader
  0 siblings, 1 reply; 3+ messages in thread
From: Philippe Wang @ 2014-08-30 10:53 UTC (permalink / raw)
  To: David Guaspari; +Cc: OCaml Mailing List

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"?

-- 
Philippe Wang
   mail@philippewang.info

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] unable to install opam under cywgin
  2014-08-30 10:53 ` Philippe Wang
@ 2014-08-30 11:28   ` Adrien Nader
  0 siblings, 0 replies; 3+ messages in thread
From: Adrien Nader @ 2014-08-30 11:28 UTC (permalink / raw)
  To: Philippe Wang; +Cc: David Guaspari, OCaml Mailing List

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-30 11:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-29 16:22 [Caml-list] unable to install opam under cywgin David Guaspari
2014-08-30 10:53 ` Philippe Wang
2014-08-30 11:28   ` Adrien Nader

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).