OCaml,

-caml unix.

, ocaml. , :

[~]# ocamllex

:

-bash: /home1/PATHTOMYHOME/local/bin/ocamllex: /usr/local/bin/ocamlrun: bad interpreter: No such file or directory

, - ocamlrun? $PATH (ocamlrun works).

+3
2

- ocamlrun:

/correct/path/to/ocamlrun /home1/PATHTOMYHOME/local/bin/ocamllex

, -: #! . - -, , ...

ocamllex.opt: ocamlrun.

+1

Unix- - Ocaml shebang, - (ocamlrun). , #!/usr/local/bin/ocamlrun. /home1/PATHTOMYHOME/local/bin/ocamlrun.

, ocamlrun $PATH, shebang #!/usr/bin/env ocamlrun.

- , . *.orig .

perl -i.orig -pe 's~^#!.*/ocamlrun.*~#!/usr/bin/env ocamlrun~ if $.==1; close ARGV if eof' *

OCaml ./configure -prefix /home1/PATHTOMYHOME/local. , .

+1

Source: https://habr.com/ru/post/1774622/


All Articles