caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Mr. Herr" <misterherr@freenet.de>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Can't run the program with ocamlrun
Date: Fri, 25 Sep 2015 10:32:08 +0200	[thread overview]
Message-ID: <56050688.5070908@freenet.de> (raw)
In-Reply-To: <tencent_26E60F19307CC0983985E9EE@qq.com>

[-- Attachment #1: Type: text/plain, Size: 773 bytes --]



On 25.09.2015 04:57, 心如烛光 wrote:
> Hi,everybody,
> I wanna run the program with ocamlrun.After that I input "./paparazzi"in the
> directory, it just returns:"-bash: ./paparazzi: /opt/local/bin/ocamlrun: bad
> interpreter: No such file or directory"  And I have installed opam and ocaml
> with homebrew for my osx(10.10.5).What may cause the problem like this?Thank you!
>
> Yours!
Hi,

your description about what you exactly did, how the program was compiled, is not
very clear,
so this is a guess:

Maybe your executable was compiled with a version of ocamlc different from the
version of ocamlrun.

Solution: recompile.
Recommendation: if compiling with "ocamlc -o someexe ..." add option -custom to avoid
the version problem.

/Str.


[-- Attachment #2: Type: text/html, Size: 1491 bytes --]

      reply	other threads:[~2015-09-25  8:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-25  2:57 =?gb18030?B?0MTI59byueI=?=
2015-09-25  8:32 ` Mr. Herr [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=56050688.5070908@freenet.de \
    --to=misterherr@freenet.de \
    --cc=caml-list@inria.fr \
    /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).