← Back to team overview

ocaml-maint team mailing list archive

Re: [Bug 516212] [NEW] wrong shebang line in camlp4rf

 

ben wrote:
> Public bug reported:
> 
> Binary package hint: ocaml
> 
> 
> Trying to run camlp4rf but getting a "bad interpreter" error.
> 
> error
> ------
> $ camlp4rf
> bash: /usr/local/bin/camlp4rf: /usr/local/bin/ocamlrun:
> bad interpreter: No such file or directory
> 

I really doubt you get this error with official Ubuntu packages.
First, camlp4rf is in «camlp4-extra» and not in «ocaml-nox» and
camlp4-extra is not a dependency of ocaml-nox.
I've downloaded [1] and verified:

$ head -n1 ./camlp4rf
#!/usr/bin/ocamlrun

[1]
http://mirrors.kernel.org/ubuntu/pool/universe/o/ocaml/camlp4-extra_3.11.1-2_i386.deb

I think that you mixed things together in your path environment variable
or something like that.

> workaround
> ---------------
> fix the shebang, or create a link:
> $ head -n 1 /usr/local/bin/camlp4rf
> #!/usr/local/bin/ocamlrun
> 
> sudo ln -s /usr/bin/ocamlrun /usr/local/bin/
> 

This seems very wrong. /usr/local/bin is not used by apt-get'ble software.

> 
> reproduction
> ----------------
>     $ sudo apt-get install ocaml-nox
>     $ camlp4rf
>     bash: /usr/local/bin/camlp4rf: /usr/local/bin/ocamlrun:
>     bad interpreter: No such file or directory
> 

Where are your packages downloaded from?

-- 
Mehdi Dogguy مهدي الدڤي
http://dogguy.org/



References