I want to compile my OCaml project into an executable file that can be run on other computers that do not have OCaml installed. Using ocamlbuild, when I compile the ".native" file, it works fine on other machines, but if I compile the ".byte" file, it does not work with the Cannot exec ocamlrun when I try to run the executable.
Since the bytecode version of my program is much smaller in file size, I would prefer to distribute it instead of my own code. Is there a way to associate ocamlrun with an executable when compiling it?
source share