caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Francois Berenger <berenger@riken.jp>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Build OCaml on linux
Date: Tue, 25 Sep 2012 09:36:19 +0900	[thread overview]
Message-ID: <5060FC83.70204@riken.jp> (raw)
In-Reply-To: <CA+LkvyqbZxzY=Coj7v_XnkSBDyN8wGuQP9ZB41bCBHqsE6XfcQ@mail.gmail.com>

Did someone mentioned ocamlbrew in order to perform installation
automatically?

https://github.com/hcarty/ocamlbrew

It also installs a few useful stuffs (oasis, odb, etc.).
This is what I use in our lab to install OCaml in user's home
in case they have a non Debian-like Linux distro.

Regards,
F.

On 09/25/2012 06:42 AM, Didier Cassirame wrote:
> Hi,
>
> First of, my apologies, I made a few mistakes in my previous message,
> which probably contributed to confuse everyone:
> - the -stdlib parameter doesn't exist, the correct parameter is "-I
> <path/to/stdlib>"
> - I actually cannot tell if the ocamlrun binary relies on a bytecode
> executable version number (that said a version number exists in compiled
> libraries),
>
> Regarding your problem, according to my own tests, it is not safe to
> change the shebang line in bytecode executables. It is
> preferable to explicitely launch a bytecode program with the interpreter
> corresponding to the compiler used to build the program.
>
> Sorry again for the generated confusion,
>
> didier
>
> 2012/9/24 Zhi Han <Zhi.Han@mathworks.com <mailto:Zhi.Han@mathworks.com>>
>
>     Hi,
>
>     Thanks everyone for the help so far. I was going through the
>     Makefile and it appears that there is a native target 'ocamlnat'. If
>     I do 'make ocamlnat' after 'make world.opt' that should create a
>     native executable toplevel that does not require 'ocamlrun', right?
>     It is a little odd because I presume 'make world.opt' would make all
>     native targets.
>
>     The workflow we want to support is:
>     Build OCaml from source on a machine and copy the installation to a
>     server.
>
>     1) Store the OCaml at a shared file server, so that users can setup
>     a few environment variables to use the shared OCaml.
>
>     2) When the users have intermittent network problems, they shall be
>     able to copy the network version to their machine and setup the
>     environment to use the local version.
>
>     Having the byte code really adds complexity to these workflows. Is
>     it safe to simply edit the bytecode to modify the first line?
>
>     Zhi
>
>     -----Original Message-----
>     From: Didier Cassirame [mailto:didier.cassirame@gmail.com
>     <mailto:didier.cassirame@gmail.com>]
>     Sent: Saturday, September 22, 2012 4:59 PM
>     To: Zhi Han; caml-list@inria.fr <mailto:caml-list@inria.fr>
>     Subject: Re: [Caml-list] Build OCaml on linux
>
>     Hello Zhi and Everyone,
>
>     The first line of the bytecode executable is just a hint for the
>     shell to locate the bytecode interpreter. Nothing stops you from
>     running a given bytecode executable with the interpreter of your
>     choice, provided it supports the file revision of said executable.
>
>     So, you have two options :
>     the first one is to keep track of the location of the ocamlrun
>     binary, and prepend every command line running ocaml, ocamlc,
>     ocamlopt with the full path to ocamlrun, i.e. :
>
>     $ /path/to/ocamlrun ocamlc myfile.ml <http://myfile.ml>
>
>     instead of
>
>     $ ocamlc myfile.ml <http://myfile.ml>
>
>     You may have to give the full path to ocamlc as well, and perhaps
>     also indicate the location of the stdlib if they are also moved from
>     their default location (use the -stdlib command line parameter of
>     ocamlc).
>
>     The second option is to recompile the ocaml software from source
>     (you are perhaps already doing that, if you are moving the
>     executables around), specifying the final install location of the
>     binaries at the configuration step (see INSTALL in the source tar ball).
>
>     cheers,
>
>     didier
>
>


  parent reply	other threads:[~2012-09-25  0:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-20 19:50 Zhi Han
2012-09-22 19:52 ` Kristopher Micinski
     [not found] ` <sympa.1348346044.7674.559@inria.fr>
2012-09-23  0:33   ` Edgar Friendly
2012-09-23  0:56     ` Wojciech Meyer
     [not found]   ` <04644211E51C7E40BF64101089F97E4D0A7B38C9@exmb-01-ah.ad.mathworks.com>
     [not found]     ` <CA+LkvyqbZxzY=Coj7v_XnkSBDyN8wGuQP9ZB41bCBHqsE6XfcQ@mail.gmail.com>
2012-09-25  0:36       ` Francois Berenger [this message]
2012-09-25  9:25 ` Fabrice Le Fessant

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=5060FC83.70204@riken.jp \
    --to=berenger@riken.jp \
    --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).